[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

    Zarius

    [​IMG]


    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
    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%
    
    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.


    Changelog

    Newest changelog details here.


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

    Sh8kezula

    I have lightstone dust set to drop from grass durring the day at a high light lever with shovels.

    I also have clay that drops from stone and a low % but they haven't been working sense I updated.
     
  3. Offline

    Zarius

    Hmm - nothing should have changed with that - can you post the config for those and I'll test it?
     
  4. Offline

    ClearTranquil

    Hi there. Ever since installing this I haven't been able to break minecarts or boats but I don't believe they're touched in my config file. Could this be your plugin or something else? I'm running Permissions 3.16 btw.
     
  5. Offline

    Zarius

    Someone else mentioned that earlier, but it works fine on my server and not sure why minecarts wouldn't break... version 2.0 will but a big change internally so perhaps try when that comes out (should only be a couple of days)?
     
  6. Offline

    ClearTranquil

    Hi, after removing OtherBlocks to test this I can definitely say that it was OtherBlocks causing boats and minecarts to not be broken when hit. I tried downgrading to 1.83 but I still have the same issues. I'm trying to remember what I was running before so I can use that until version 2.0 comes out.

    Thanks for being so quick to keep my up to date on what's up.
     
  7. Offline

    Zarius

    No worries - I think it might have something to do with Permissions 3.16? Someone said that PermissionsEx fixed some problems for them. edit: Chronx6 - here

    @ClearTranquil

    btw: 1.8 should work - I updated the permissions routines in 1.81 and I think that's where it's not compatible with Permissions 3.16.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  8. Offline

    ClearTranquil

    Ah thanks! 1.7 works for me too with the same config file.
     
  9. Offline

    EMOberger

    @Zarius I think this plugin and mcMMO have problems. any way to fix? no error appears but mobs don't drop money anymore.
     
  10. Offline

    Zarius

    Hmm... shouldn't stop money drops - I would have expected the conflict is that you may not get mcMMO experience...
     
  11. Offline

    m5k

    Any plans to switch to PermissionsBukkit?
     
  12. Offline

    Celtic Minstrel

    Yes, 2.0 has PermissionsBukkit support.
     
  13. Offline

    Sh8kezula

    This was working for me on bukkit 1000 but now it isn't on 1060.
    Code:
    otherblocks:
        STONE:
            - tool: ANY_PICKAXE
              drop: DEFAULT
            - tool: ANY_PICKAXE
              drop: CLAY_BALL
              toolexcept: GOLD_PICKAXE
              quantity: 2-6
              chance: 3
              message: ["You found some clay in those rocks."]
            - tool: ANY_PICKAXE
              drop: BONE
              quantity: 2-5
              chance: 1
              message: ["You found some bones inside the stone."]
            - tool: GOLD_PICKAXE
              drop: CLAY_BALL
              chance: 5
              quantity: 12-24
              message: ["You found clay."]
        GRASS:
            - tool: ANY_SPADE
              drop: DEFAULT
            - tool: ANY_SPADE
              drop: GLOWSTONE_DUST
              chance: 5
              time: DAY
              quantity: 1-5
              message: ["That piece of grass was infused with the sun."]
    
    Anyone able to help?
     
  14. Offline

    EMOberger

    Some times the server will not start, after restarting it over and over again it will eventually work but when it does work no one gets money drops, (money drops is all i have so for all i know this plugin could not even be on still this is most likely a conflict between mcMMO and your plugin.)

    -----edit------
    Yea your plugin is ignored completely when mcMMO is on >.> any help?

    actually now that i think about it it may be the fact that mcMMO and permissions 3.1.6 causes high cpu usage.
    ------------EDIT------------
    ...OK really weird this plugin stopped working when i put mcMMO in but both work together if i take choptree plugin out o.0 oh well i can live without choptree
     
  15. Offline

    Zarius

    Are you using Permissions 3.16?
     
  16. Offline

    Sh8kezula

    no.. I am using permissionsBukkit
     
  17. Offline

    Zarius

    Yeah, that's odd but glad you got it working. I'm working on migrating my server to PermissionsEx (hopefully it goes well :D) so that's probably what will be best supported (although I will try to get it working with other permissions sytems).

    @Sh8kezula - odd, will test it out with 1060.
     
  18. Offline

    Kamilio

    Does this work with Bow/Arrows? I'm trying to set it up so when I kill a monster, with a any tool OR a bow, it will drop custom things.

    I tried doing this, but it didn't work.

    tool: ANY, BOW
    i also tried
    tool: ANY, ARROW

    Is that feature not implemented yet?
     
  19. Offline

    Zarius

    ANY already includes a bow, you can't put more than one item in the "tool:" section yet. If you want just the bow use "tool: BOW" (arrow doesn't work unless you're hitting the creature over the head with an arrow :D).

    Version 2.0 will have a new projectile system for RB1060.

    If you change OtherBlocks priority to high then it will take affect after mcMMO and you therefore get experience even with configured drops.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  20. Offline

    Sh8kezula

    @Zarius

    I did a little test on bukkit 1060. Plugin works perfectly (Block drops and Mob Drops) With no permissions or the other main stream permission managers.

    But the second I install permissionsBukkit and SuperpermBridge all Block Drops stop working.. All my drops from Mobs still work tho.. It is only the block changes.
     
  21. Offline

    Kamilio

    Oh I see. So when you say the bow is included, does that mean shooting arrows will trigger the drop? Or just smacking a mob with your bow?

    Is there a way to make it so that the monsters drop the custom items by any type of death?
    For example, I have classes on my server and it would be awesome if a mage could cast a spell, (lets just say lightning strike,) and the monster would drop the custom drop i set for it. So in other words, make it so when the creature is killed by fire, or any type of weapon, he will drop the custom stuff.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  22. Offline

    wezzz91

    Doesnt "tool: ALL" work for what you are asking?
     
  23. Offline

    Zarius

    Shooting arrows too - if you want to make sure that it's just shooting the bow and not smacking the mob with the bow you need to use something like:

    range: ">3"

    Or wait until OtherBlocks 2.0.
     
  24. Offline

    Kamilio

    I'm not sure. I'm pretty sure it doesnt

    ah ok thank you

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  25. Offline

    Zarius

    "tool: ALL" will cover any type of entity death, it should work - unless a plugin "removes" the mob instead of killing it.

    If you have a problem with a particular plugin let me know.
     
  26. Offline

    Kamilio

    Alrighty thank you very much. Great plugin btw :) All my buddies love it! I set it up so you get money by killing mobs and also mobs randomly drop equipment. (Modified catballs's config)
     
  27. Offline

    Hopium

    i have the same symptoms as well there is no error in server log on start up all the configs load and the plugin loads properly, just the block drops are broken, mob drops are working flawless
     
  28. Offline

    Zarius

    Working on version 2.0 - will work on compatibility with PermissionsEx first then look into SuperPermsBridge (that's where the problem is I believe.
     
    Hopium likes this.
  29. Offline

    Celtic Minstrel

    Chances are that if it works with PermissionsEx it'll also work with PermissionsBukkit and bPermissions, since all of those manage Bukkit permissions.
     
  30. Offline

    Zarius

    Yeah, Permissions 3.16 might still be a pain though :/
     
  31. Offline

    Nytmare

    Any chance you can implement list syntax for the drop line so that it pulls a random element off that list?

    For example:

    drop: [{WOOD_SWORD, STONE_SWORD}]
    chance 20%

    Would give a 20% of dropping either a wooden sword or a stone sword?


    EDIT: Of course I only find the other posts asking for this AFTER I write the post. Was there a way of doing exclusive drops that I'm missing?
     

Share This Page