DropEdit - Get different drops when destroying blocks Version: v1.4.4 (05/21/2011) Tested on: 798 This is my first plugin. It allows you to define what your players get when they destroy certain types of blocks with a given tool. A good use for it is to allow your players to get sponge or nether blocks without having to use portals. This plugin was inspired by Jerry's NetherBlocks. I wanted the ability to add more blocks without having to edit the code every time. If you only want to use blocks from the Nether on a server where it can't be accessed, I recommend you to use his plugin instead, which will be more lightweight as its use is more specific. I would like to thank sk89q for his help, and all of you for your support and for reporting bugs. Features: Make anything drop from broken or burned blocks, or decaying leaves. A random number of items can be dropped. You can define what percentage of chance players have to get a certain item. Support for wool color and dye type. Support for Permissions. Support for CraftbukkitUpToDate. Compatible with WorldGuard. How to configure: All details are given on the Wiki. A sample config file is joined with the plugin. Example: Code: items: GlowstoneDust: id: 348 min: 1 max: 3 chance : 100 groups: - * break: '2': '284': - GlowstoneDust With this setup, if you destroy (break) a grass ('2') block with a gold shovel ('284'), you will always (chance: 100) get 1 to 3 (min: 1; max: 3) of glowstone dust (id: 348). For each item, only the "id" key is required, all other are optionals. Event The event here is "break". You can also use "burn", and "decay". These last two don't require a tool, so the list of items must appear in the block's section. Event > Block The block here is '2'. You can set it to '*', to refer to any block. You can also restrict the event to certain damage value by separating the two values with a comma. For example, '35,11' is a blue wool block. Event > Tool If you set the tool to * (or '*', both will work), the specified item will be dropped regardless of the tool used to destroy the block. Just like with the block, you can set a damage value. Item > Durability "durability" is optional (Default: 1). It allows you to select the wool color of type of dye you want. Item > Groups "groups" is optional (Default: '*'). It allows to define custom drops that will apply only for given groups. You need the Permissions plugin for that. This feature has been tested on Permissions 2.5.5. If Permissions is not installed, this field will be ignored. A list is expected, so you should use the list notation (as showed in the example above) even if you want to specify only one group. Item > Message "message" is optional (Default: none). It allows you to define a message that will be sent to the player. I strongly recommend that you use it only for very rare items, and only for the "break" event. Otherwise, the chat will overflow with messages from the plugin. Download: Important: The configuration file structure has changed in v1.4.0, do not forget to update your config.yml file. Latest version - Source Code - Wiki Old versions: 1.4.3 - 1.4.2 - 1.4.1 - 1.4.0 - 1.3 - 1.2 - 1.1 Permissions Plugin Getting help & reporting problems: I 'll be glad to help you if you're having difficulties using my plugin, just post your questions in this thread. I will be able to help you faster if you provide the following: A precise description of your problem, and explanations on what you are trying to do. Your config file (if it is too long to post here, use codepaste.net). A quick list of the other plugins you are using. Certain problems can be caused by conflicts between plugins. Any particular output of my plugin visible in the logs (exceptions or other messages). Before you post, make sure that you are using the latest version of my plugin. The most recent version is indicated at the top of this post. I can't offer support for old versions. Also check that you are using the Bukkit's latest recommended build. Known Issues: You will not always get items from burning blocks because they may be destroyed by the fire. Exceptions will be thrown if the Permissions config file doesn't contain any group. This is a problem in the Permissions plugin, I can't do anything about it. You can't use it to get spawners when you break them. If you need to work with spawners, I suggest CreatureBox. Todo: I can't tell for sure when the next version will be available. iConomy support Information for developers: Used events: BLOCK_BREAK (High), BLOCK_BURN (High), LEAVES_DECAY (High) This plugin will not cancel any event. You can simulate any of these events using the appropriate methods in the plugin class (breakBlock, burnBlock, blockDecays). Changelog: Version 1.4.4 (05/21/2011) Added "message" parameter, be careful with it (Requested by m5k). Version 1.4.3 (05/05/2011) Fixed potential compatibility problem with the next versions of WorldGuard (thanks to sk89q) Added methods to the main plugin class to allow other plugins to interact with DropEdit. Version 1.4.2 (05/02/2011) Fixed compatibility problems with WorldGuard (Reported by JacKlink01). Fixed potential compatibility problems with other plugins, Residence is likely working now. Version 1.4.1 (04/27/2011) Fixed a bug that caused the Minecraft client to crash if the config file contained invalid YAML syntax. Yes, really. Works with 733. Version 1.4.0 (04/24/2011) Changed config file structure. Added leaves decay event. Added ability to restrict blocks and tools to a certain damage value. Added support for CraftbukkitUpToDate (will be ready soon). Added properly working way to make multiple items drop for the same event. Tested on 684. Works. Created a Wiki: https://github.com/NuxlyStardust/DropEdit/wiki Version 1.3.4 (04/14/2011) Updated for 677. Version 1.3.3 (04/12/2011) Fixed a bug that prevented the plugin from dropping multiple items of the same type. Version 1.3.2 (04/09/2011) Fixed a bug that caused undefined blocks not to drop anything. (Reported by DjinnRutger) Version 1.3.1 (04/08/2011) Fixed a bug that caused the iron hoe not to get damage when used to break blocks. Fixed a bug that prevented the plugin from dropping multiple different items. The config file structure has changed ! Make sure to update your file. This structure is temporary and will be replaced by a more tidy one in the next version. Version 1.3.0 (04/05/2011) Added ability to make block drops a certain item regardless of the tool used. (Idea by Andrew0085) Added ability to restrict drops to more than one group. (Requested by Andrew0085 and SpyDaniel) Replaced "group" by "groups" in the configuration, do not forget to update your file ! Version 1.2.1 (04/03/2011) Fixed a bug that caused hoes to be unbreakable. (Reported by Leemur) Version 1.2.0 (04/03/2011) Added ability to restrict drops to certain groups. Uses the Permissions plugin. Version 1.1.0 (04/02/2011) Added ability to select what item is dropped when a block is destroyed by fire. Added support for dyes/wool color. Version 1.0.1 (04/02/2011) Renamed project to DropEdit. Version 1.0.0 (04/01/2011) First build. _______________________________ - Thanks a lot for your support !