Minecraft Bukkit plugin that drops a different block when a block is removed.
To use this plugin on your Minecraft server you have to follow these steps.
- download the .jar file of the plugin here
- open the directory of your server, open the "plugins" folder and copy the .jar file to it
- restart your server
- /drop reload
- Remixes the connections between the real and the dropped block.
- available for Op's
The plugin listens to the BlockBreakEvent. When a block is destroyed, the EventListener accesses the event object and executes the method setDropItems, thus deactivating the regular dropping of an item. Then the method "getRandomMaterial()" is called and checks whether a material has already been defined. If this is not the case, a new one is defined. In the end this material is dropped at the place of the destroyed block.
Feel free to have a look into the code, I have commented a relatively detailed description for most of the methods.
You may download this plugin or source code, modify it and become part of your Minecraft project. You must always mention me and this website as the author in a clearly visible place. It is strictly prohibited to use this plugin commercially or resell it, even if modified, without prior agreement.
If you have further questions, ideas or wishes, just contact me via the issues feature of the project.
I used the bukkit library of version 1.15.2 to develop the plugin. I also used the Java SDK 11.
Made with ❤️ Bukkit