KonstntinM / RandomDrop

Minecraft Bukkit plugin that drops a different block when a block is removed.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

random drop logo

RandomDrop

Minecraft Bukkit plugin that drops a different block when a block is removed.

Installation

To use this plugin on your Minecraft server you have to follow these steps.

  1. download the .jar file of the plugin here
  2. open the directory of your server, open the "plugins" folder and copy the .jar file to it
  3. restart your server

Minecraft Commands

  • /drop reload
    • Remixes the connections between the real and the dropped block.
    • available for Op's

Short code description

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.

The License

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.

Questions?

If you have further questions, ideas or wishes, just contact me via the issues feature of the project.

About the libraries used

I used the bukkit library of version 1.15.2 to develop the plugin. I also used the Java SDK 11.


Made with ❤️ Bukkit

bukkit logo

About

Minecraft Bukkit plugin that drops a different block when a block is removed.


Languages

Language:Java 100.0%