[MECH] OtherDrops 2.8- Ultimate block/mob/player drop editing [1.5.2]

Discussion in 'Archived: Plugin Releases' started by Zarius, Jun 12, 2011.

  1. Offline



    Want to fix glass/stairs/boat drops? Want to gather ice/glowstone/grass in a balanced manner? Want to smelt ore with golden tools? Want to cause chaos with undead that rise again? Now you can, simply by enabling the included example files or delve into the more advanced customisation and make drops work the way you want.

    OtherBlocks aims to give you ultimate control over what item that blocks/entities drop when destroyed, depending on how they were destroyed. Compatible with WorldGuard. Lightweight! Only scans what it needs to and ignores the rest.
    Download: BukkitDev (download link on there) | Source Code

    Included Modules
    * Fix undroppables: fix drops for stairs, glass (don't use your hands - ouch), boats & bookshelves (1.8 stairs included)
    * Gold tools (basic): gold tools have a chance of dropping the complete block for grass, ice & glowstone.
    * Gold tools (smelt): gold tools have a chance of mining an ingot directly from ores.
    * Ore Extraction: using the usual tools, ingots are ripped out of ores, leaving the stone behind.
    * Leaf overhaul: adds leaf drops (apples, cocoa, leaves, sticks & a very small chance of golden apple).
    * Undead Chaos: beware the night! Zombies & skeletons rise again and even players rise back from the dead (player deaths spawn more zombies/skeletons).
    * and more...

    Custom Configuration Examples
        # Simple glass drop fix
          - drop: GLASS
        # Players drop Zombies on death, 50% of the time
          - 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
          - tool: ANY_SWORD
            time: NIGHT
            drop: WEB
            chance: 10%
        # Trees drop apples (or cocoa from birch trees)
          - drop: APPLE
            chance: 5%
          - drop: DYE@BROWN
            chance: 5%
    If you are getting errors with the word "snakeyaml" in it, your config file isn't properly formatted.
    Test it on this website (or this one).

    See the dev.bukkit page for full details on how to set up OtherDrops, a complete parameters list and further examples.


    Newest changelog details here.

    Main author: @Zarius
    Contributors: @Celtic Minstrel, raws
    Original author: @cyklo
  2. Offline


    Is this going to be updated for R6 soon?
  3. Offline


    Read the latest replies made by Zarius
  4. Offline


    Waiting the version for 1.2.3 game <3
  5. Offline


    I just want to say: I LOVE THIS PLUGIN!! Thanks for making it so awesome and versatile. This is definitely THE greatest drops plugin period. Keep up the good work!
  6. Offline


    PseudoKnight Sorrow123444 notjerem

    Try the latest version (2.5-pre4) posted to BukkitDev. I've uploaded a new file but it's awaiting approval. There's a link in the BukkitDev comments whilst you wait.


    Thanks :)

    Here's an example:

        - tool: projectile_arrow
          drop: money/20-35    # drop 20 to 35 units of currency (eg. dollars)


    You need to make sure it's all indented properly (see example below). Also try putting the "verbosity" setting in otherdrops-config.yml to high and reloading the plugin - it should give you a lot more details in the console of what it's loading from the config.

    You can use dropgroups to save having to type tool: wood_pickaxe every time as you've asked - here's an example:

        - dropgroup: woodpickaxegroup
          tool: WOOD_PICKAXE
            - drop: COBBLESTONE
            - drop: COAL
              chance: 1
              permissions: [miner1, miner2]
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jul 15, 2016
  7. Offline


    ah, guess that should work, but why doesnt

    - tool: all


  8. Offline



    Odd - tool: all should work fine if you want to cover all methods of killing a mob. If you're saying it doesn't include kills with a bow/arrow that's a bug and I'll look into it.
  9. Offline


                - tool: ANY
                  drop: 0
                  chance: 75%
                  message: "ALTER A"
                  permissions: "default"
                  quantity: 1
                  damage: 2
                - tool: ANY_PICKAXE
                  drop: 4
                  permissions: "miner"
                  message: "ALTER B"
                  chance: 100%
                  quantity: 1
                  damage: 1
    I try to make Jobs so miners get a full 100% of cobblestone blocks and normal players only about 25%
    the Problem is that 'miner' inherits the default group, so he has the default restriction too in the end he gets about the same result of 25% drops. Any idea how i can solve this ?

    We used PEX and the latest Build of this theard 2.5pre3
  10. Offline



    Hmm.. perhaps try permissions: [miner, -default]?
  11. Edit: Never mind, my fault.
  12. Offline


    Just out of curiousity - what was the problem? (I'd already started debugging and was about to say that it works fine for me :D)
  13. Zarius
    I was adding plugins to my test server, Logblock disabled itself after created all the sql tables. Otherdrops did not like that :)
  14. Offline

    Celtic Minstrel

    I would say that's not actually entirely your fault. OtherDrops should probably be able to handle that situation.
  15. Offline


    well, example:"

          - tool: ALL
            drop: MONEY
            quantity: 0.5-2
            message: bla bla died en bla got money bla
    doesnt give money neither a message
  16. Offline


            - tool: ANY_SWORD
              drop: WEB
              chance: 1
              message: ["Puncturing the abdomen of the arachnid reveals it's sticky web glands."]
            - tool: ANY_SWORD
              drop: MONEY
              chance: 100
              quantity: 20
              message: ["You got $20 for killing a spider!."]
    This only seems to give me $1 instead of $20.. Any ideas why. Using BOSEconomy..
  17. Offline



    i have some problems with the {} charactere. I use it for the smoothy stone (98) to obtain the new stonebrick (98@3) and the two others.

    I use

    - tool: ANY_PICKAXE
    drop: {98@0/10%, 98@1/10%, 98@2/10%, 98@3/70%}

    but in fact, i don't have 98@1 and 98@2, only got 98@3 (apr 40%) and 98 (apr 60%)

    Any mistake ?
  18. Offline


    Doesn't give money with any weapon at all? Perhaps check the startup messages - is OtherDrops hooking into your economy plugin properly?

    Odd, I'll try testing with BOSEconomy later.

    Doesn't seem to be a mistake but not sure the {} distribution works correctly yet. I started to debug it then got sidetracked by needing to update to BukkitR5. Will be testing this soon.
  19. Offline


    no only with the bow

  20. Offline


    I've added try/catch blocks around each dependency load method now :D


    Preliminary testing results: money is being given but the message doesn't work with the bow, looking into that.


    There was a problem with the quantity: parameter, I've fixed that and will release a new build soon.

    Release 2.5-beta1 (download)

    * fix issue reading "quantity:" parameter
    * fix "message:" parameter so it works with projectile_arrow
    * plugin dependencies loading made more robust (will continue to load if one fails)
    * added LEAVES@JUNGLE decay support (ie. datavalue=7)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jul 15, 2016
  21. Offline

    Celtic Minstrel

    Uh, jungle leaves are data value 3,* not 7. You do need to mask out the upper bits since they're irrelevant, though. I'll also note that if they do have data value 7, they'll never decay.

    (*More precisely, in the world they have data value 3 initially, then change to data value 11 [ie added 8] when a block is changed near them, and once harvested with shears they have data value 7 [ie added 4] forevermore. So, in the hand they'll be 7 as you say, but you shouldn't be checking "data == 7"; you should be checking "(data & 0x3) == 3", or if you prefer, "data % 4 == 3". This applies for all leaves, except replace 3 with 0, 1, or 2.)
  22. Offline


    Ah, that's cool - I was just trying to cover my bases until Bukkit adds jungle to treespecies.java and forgot about it potentially being 11. I've fixed the check to "if ((byte)((0x3) & data) == 3) return "JUNGLE";" - this is already the case for 0,1,2.
  23. Offline



    i set otherdrops to drop money from mobkills, i also noticed mobs dont drop their usual stuff (bones, rotten flesh etc)
    does is have anything to do with otherdrops? i mean does it take over the whole dropping of monsters i configured to drop money?
  24. Offline



    2 other issues.

    I tried using the wool dye config that comes stock with your plugin. At first I thought it didn't work.. Until I broke a block. Then I realized block_break is the default action. So it's not reading the DEFAULTS': section(which says it should be right_click). I also noticed it does not consume an item when using the dye on the wool (consume: 1 is set). Again this is the stock "od-dyewool.yml" that comes with your plugin.

    Thanks for your work!
  25. Offline


    Thanks for the report - is this with version 2.5-beta1 or the pre-release? Fixes in beta1 seem to have fixed it - I just tested with 2.5-beta1 and od-dyewool seems to be working fine.

    Yes - OtherDrops is primarily designed for "redefining" your mob drops and any 100% drops (including money & xp, although I'm thinking maybe these two shouldn't) overwrite the default drop normally - you can add "- drop: default" to each mob you customise, or use this below if you want all mobs to drop the default item when defining money drops:

        - drop: DEFAULT
    This means that any subsequent mob definitions will include a default drop. Let me know if you're having trouble with a particular configuration.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jul 15, 2016
  26. Offline


    yes thanks, that works!

    the only thing is, the drop chances are 100%,
    do you happen to know the default drop chances? (or are they 100% default :))
  27. Offline

    Celtic Minstrel

    Most default drop chances are 100%. Some, such as leaves, are different; I'm not sure what they are.
  28. Offline


  29. Offline


    This works for 1.2.3, right? I kept getting errors....
  30. Offline


    Should work fine with version 2.5 of OtherDrops. What errors are you getting? And what version of OtherDrops are you trying?
  31. Offline



    I've just one question : i want to do that a wolf attack (only) drop an item.

    How can i do it ?

Share This Page