Looting from specific trees !

Discussion in 'Archived: Plugin Requests' started by DreamingDwarfLord, Oct 8, 2011.

  1. 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!
     
  2. Nothing new... :/
     
  3. Offline

    Unset

    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.
     
    Last edited by a moderator: May 20, 2016
    DreamingDwarfLord likes this.
  4. Why thank you !
    I have relayed the info and contacted the creator of OtherMods... Wait and See....
     
  5. Offline

    Unset

    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.
     
  6. I think my "bosses" are quite pleased with the mod...
    =)
     

Share This Page