Hello Bukkit-World ! I am helping create a French RolePlay server and our main coder is trying to add loot from different trees (walnuts instead of cocoa from chestnut trees, apples from birch trees and honney from redwoods). I showed them Chocolate Fever mod and said that the creator had done exactly what they were looking for : he make the loot change depending on the color of leaves ! I would be quite grateful if someone could help us isolate the code that takes care of this issue. Long Live the Ender!
Maybe you could tell your developer this Try too hook into the blockbreak and leafdecay event Then you can find out what type of leaf it is using the datavalue of leaves http://www.minecraftwiki.net/wiki/Leaf id: leaf=18 data: 0=normal 1=birch 2=pine finally you must find a way to let the itemDrop pop out of the leaf... jd.bukkit.org But you'd better ask the developer of Choclate Fever, @aPunch to give you the source code. 3rd option, is to try this http://forums.bukkit.org/threads/me...er-drop-editing-supports-1-8-1060-1185.21074/ EDIT by Moderator: merged posts, please use the edit button instead of double posting.
The example config is implies it is already possible Code: # Simple glass drop fix GLASS: - drop: GLASS # Players drop Zombies on death, 50% of the time PLAYER: - drop: CREATURE_ZOMBIE chance: 50% # Spiders killed with any sword at night have a 10% chance to drop web, # otherwise they drop whatever they normally would CREATURE_SPIDER: - tool: ANY_SWORD time: NIGHT drop: WEB chance: 10% # Trees drop apples (or cocoa from birch trees) SPECIAL_LEAFDECAY@GENERIC: - drop: APPLE chance: 5% SPECIAL_LEAFDECAY@BIRCH: - drop: DYE@BROWN chance: 5% But I haven't tried it myself, though.