[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

    kahlilnc

    I was using Beat 6
     
  3. Offline

    diannetea

    Unique makes it so the seeds ALWAYS drop :(

    And the MobArena flag isn't working either. I tried with both flag: and flags:

    Code:
    
        CREEPER@UNPOWERED:
            - tool: ANY
              drop: [TNT/20%, GUNPOWDER/1-3/80%]
            - tool: ANY
              flags: IN_MOB_ARENA
              drop: COOKED_FISH
    
    That should make it so it only drops fish in the arena right?
     
  4. Offline

    Celtic Minstrel

    Oh, come on... why don't you work! :(
     
  5. Offline

    Juze

    I just started my config again from scratch after updating to v2.0, haven't configured anything yet but I saw this:

    http://pastebin.com/A5y62pku

    I've seen this in v1.95 too. CB#1337.

    PermissionsEx v1.1.5
     
  6. Offline

    EmpiricalDepth

    In reg to MONEY not being paid... heres my config's only call for MONEY or XP
    Code:
        MOB_SPAWNER:
            - tool: ANY_PICKAXE
              drop: MONEY
              quantity: 2500
              chance: 100
              message: You were rewarded %q gold for destroying a mob spawner!
            - drop: [XP/25/100%,CONTENTS/1/100%,THIS/1/2%]
    heres what showed on my server loading
    Code:
    2011-10-24 11:02:18 [INFO] [OtherDrops:2.0-beta7] Events node created.
    2011-10-24 11:02:18 [INFO] [OtherDrops:2.0-beta7] Events loaded: [EXPLOSION, SHEAR, UNSHEAR, SHEARTOGGLE, DYE, TREE, FORCETREE, LIGHTNING, STORM, THUNDER]
    2011-10-24 11:02:18 [INFO] [OtherDrops:2.0-beta7] Loading file: otherdrops-drops.yml
    2011-10-24 11:02:18 [INFO] [OtherDrops:2.0-beta7] Loading file: includes/overhaul-diannetea.yml
    2011-10-24 11:02:18 [WARNING] [OtherDrops:2.0-beta7] Invalid data for MONEY: 0
    2011-10-24 11:02:18 [WARNING] [OtherDrops:2.0-beta7] Invalid data for XP: 0
    2011-10-24 11:02:18 [INFO] [OtherDrops:2.0-beta7] Using Bukkit superperms.
    2011-10-24 11:02:18 [INFO] [OtherDrops:2.0-beta7] Couldn't load WorldGuard.
    2011-10-24 11:02:18 [INFO] [OtherDrops:2.0-beta7] OtherDrops loaded.
    2011-10-24 11:02:18 [INFO] [OtherDrops:2.0-beta7] Payment method found (iConomy version: 6)
    i was thinking the "invalid data" lines saying "0" may point in the right direction..
    Thanx! and goodluck

    EDIT: also if it helps.. I get the message saying i got paid but no change in account

    how about

    Code:
    include-files:
    aliases:
    defaults:
    otherdrops:
        GLASS:
            - drop: GLASS
              permissionsgroup: default
    bPermissions Config:
    Code:
    default: default
    groups:
        default:
        - bPermissions.build
     ##### - otherblocks.custom.test (commented out)
        - essentials.afk
    players:
          p000ison:
          - default
    and as in any YML you need 2 have 4 "spaces" to reperesent any "TAB" or it will not work, your permissions file has 2 spaces for each tab rather than 4 . hope this helps and works for you...

    EDIT: wasnt sure if bP worked with it but guess someone said it did

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

    p000ison

    No doesnt work. I think its impossible to get with superperms groups, right?
    I think its only possible to check for permissions with the superperms api.
    :'(:'(:'(
     
  8. Offline

    Kane

    This is still beta 6 correct? I just making sure not missing something since its been a while.
     
  9. Offline

    EmpiricalDepth

    Beta 7 is avail via bukkit.dev link in first post
     
  10. Offline

    Celtic Minstrel

    @Juze – Found that one already, but thanks anyway.

    @EmpiricalDepth – I believe the money warning is extraneous and harmless, though I can't quite remember.

    Beta 7 is not on BukkitDev. If you want it you'll have to hunt through the last few pages of this thread.
     
  11. Offline

    diannetea

    Erm, yes it is, second link under downloads.
     
  12. Offline

    EmpiricalDepth

    was just pointing it out.. the fact that beta 7 will not payout.. beta 6 pays out just fine

    lol its on the front page of your dev.bukkit
     
    Juze likes this.
  13. Offline

    jazzman170

    Ok i have a goooood idea but i dunno if its possible with this plugin.

    I want it so at weather stormy, if players are on the surface of the world, there is a 0.10% chance of being struck by lightning resulting in half of players whole health damaged. Players underground are safe of course cause the lightning may have struck them but they wont know it due to they are safe underground or in a building.

    Anything close to this would be nice as well.
     
  14. Offline

    EmpiricalDepth

    Im trying to make it so if you left-click cobblestone with vine, the cobblestone is replaced by mossy cobble... can someone show me an example of how to do this?
    I tried :
    Code:
        COBBLESTONE:
            - tool: vine
              ACTION: LEFT_CLICK
              REPLACEMENTBLOCK: MOSSY_COBBLESTONE
     
  15. Offline

    p000ison

    Yeah Yeah Yeah!!
    Now it works!
    For all which have problems with OtherDrops and bPermissions.
    You only have to switch the config to:
    useyetipermissions: true

    I dont know why, because bpermissons is a superperms manager....
     
    EmpiricalDepth likes this.
  16. Offline

    slimpyman

    Mine all of a sudden stopped working... ores, creature drops, it all stopped. i did add in the showcase plugin, but once i noticed drops stopped working, i removed and deleted the plugin. but now otherdrops is botched and doesnt work at all, when it used to work perfectly. i try doing /odr or od reload from the console and it just echos all the od commands and doesnt look like it actually is trying to run any commands. and on server startup it does indeed show that the 3 config files are loading as usual...

    Code:
    defaults:
    
    # TODO: Zarius to add durability values to armor and weapon drops so mobs drop wornout armor
    otherdrops:
        CREATURE_SPIDER:
            - tool: ANY
              chance: 100
              drop: NOTHING
            - tool: ANY
              drop: ROTTEN_FLESH
              chance: 100
            - tool: ANY
              drop: STRING
              chance: 6
            - tool: [GOLD_SWORD, DIAMOND_SWORD]
              drop: STRING
              chance: 16
        CREATURE_CAVE_SPIDER:
            - tool: ANY
              chance: 100
              drop: NOTHING
            - tool: ANY
              drop: ROTTEN_FLESH
              chance: 100
            - tool: ANY
              drop: STRING
              chance: 10
            - tool: [GOLD_SWORD, DIAMOND_SWORD]
              drop: STRING
    
    
    this thing just seems like it keeps default drops.
              chance: 20
        CREATURE_CREEPER:
            - tool: ANY
              chance: 100
              drop: NOTHING
            - tool: ANY
              drop: ROTTEN_FLESH
              chance: 100
            - tool: ANY
              drop: FEATHER
              chance: 6
            - tool: [DIAMOND_SWORD, GOLD_SWORD]
              drop: FEATHER
              chance: 16
        CREATURE_ENDERMAN:
            - tool: ANY
              chance: 100
              drop: NOTHING
            - tool: ANY
              drop: FLINT
              chance: 8
            - tool: ANY
              drop: ROTTEN_FLESH
              chance: 100
            - tool: [GOLD_SWORD, DIAMOND_SWORD]
              drop: FLINT
              chance: 18
        CREATURE_SKELETON:
            - tool: ANY
              chance: 100
              drop: NOTHING
            - tool: ANY
              drop: ROTTEN_FLESH
              chance: 100
            - tool: ANY
              drop: ARROW
              chance: 5
            - tool: [GOLD_SWORD, DIAMOND_SWORD]
              drop: ARROW
              chance: 15
        CREATURE_PIG_ZOMBIE:
            - tool: ANY
              chance: 100
              drop: NOTHING
            - tool: ANY
              drop: ROTTEN_FLESH
              quantity: 2
              chance: 100
        CREATURE_SQUID:
            - tool: ANY
              chance: 100
              drop: NOTHING
            - tool: ANY
              drop: RAW_FISH
              chance: 3
            - tool: [DIAMOND_SWORD, GOLD_SWORD]
              drop: RAW_FISH
              chance: 8
        CREATURE_ZOMBIE:
            - tool: ANY
              chance: 100
              drop: NOTHING
            - tool: ANY
              drop: ROTTEN_FLESH
              chance: 100
            - tool: ALL
              drop: CREATURE_ZOMBIE
              quantity: 2
              chance: 3
            - tool: ANY
              drop: BONE
              chance: 10
            - tool: [DIAMOND_SWORD, GOLD_SWORD]
              drop: ROTTEN_FLESH
              chance: 100
              quantity: 2
            - tool: [DIAMOND_SWORD, GOLD_SWORD]
              drop: BONE
              chance: 22
        CREATURE_GHAST:
            - tool: ANY
              chance: 100
              drop: NOTHING
            - tool: ANY
              drop: ROTTEN_FLESH
              chance: 100
        CREATURE_COW:
            - tool: ANY
              drop: AIR
              chance: 100
            - tool: ANY
              drop: RAW_BEEF
              chance: 22
            - tool: ANY
              drop: LEATHER
              quantity: 2-3
              chance: 13
            - tool: [GOLD_SWORD, DIAMOND_SWORD]
              drop: LEATHER
              quantity: 2
              chance: 20
        CREATURE_PIG:
            - tool: ANY
              chance: 100
              drop: NOTHING
            - tool: ANY
              drop: RAW_PORK
              chance: 29
            - tool: [GOLD_SWORD, DIAMOND_SWORD]
              drop: ROTTEN_FLESH
              chance: 35
        CREATURE_CHICKEN:
            - tool: ANY
              chance: 100
              drop: NOTHING
            - tool: ANY
              drop: RAW_CHICKEN
              chance: 20
            - tool: [GOLD_SWORD, DIAMOND_SWORD]
              drop: EGG
              chance: 7
    Code:
    defaults:
    
    otherdrops:
        # The goal of this module is to allow a server to set ore to seem to be "extracted"
        # from stone, leaving behind the stone.  Drops should be set to equal the default drops
        # (as "replacementblock" cannot work with drop: DEFAULT)
        DIAMOND_ORE:
            - tool: [IRON_PICKAXE, DIAMOND_PICKAXE, GOLD_PICKAXE]
              drop: IRON_ORE
              quantity: 2-3
              drop: GOLD_ORE
              quantity: 2-3
        GRAVEL:
            - tool: ANY
              drop: GRAVEL
              chance: 100
            - tool: [GOLD_SPADE, DIAMOND_SPADE]
              drop: GRAVEL
              quantity: 2
        DIRT:
            - tool: [GOLD_SPADE, DIAMOND_SPADE]
              drop: DIRT
              quantity: 2
        STONE:
            - tool: [GOLD_PICKAXE, DIAMOND_PICKAXE]
              drop: STONE
              quantity: 2
        WOOD_STAIRS:
            - tool: [DIAMOND_PICKAXE, GOLD_PICKAXE]
              drop: WOOD_STAIRS
        COBBLESTONE_STAIRS:
            - tool: [DIAMOND_PICKAXE, GOLD_PICKAXE]
              drop: COBBLESTONE_STAIRS
        BRICK_STAIRS:
            - tool: [DIAMOND_PICKAXE, GOLD_PICKAXE]
              drop: BRICK_STAIRS
        SMOOTH_STAIRS:
            - tool: [DIAMOND_PICKAXE, GOLD_PICKAXE]
              drop: SMOOTH_STAIRS
    it used to work, i wonder why the mobs just drop default stuff now

    i did update to beta7, but i dont know if that made the problem worse

    also, does the stopmobfarms example with the package work again?

    also, when i do /od reload or /od show stone or anything
    sometimes it just shows me all the possible commands like the command doesnt do anything

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

    Sepulzera

    Is "exclusive" broken?
    Can't get it working the way I assumed it would work:

    Code:
        WOOD_STAIRS:
            - tool: ANY
              drop: THIS
            - tool: ANY
              drop: NOTHING
              chance: 50
              exclusive: 1
              message: "Stairs shattered!"
    It should drop WOOD_STAIRS with a chance of 50%, otherwise leave a message that it shattered. But it drops WOOD_STAIRS even when it should drop NOTHING+give this message?!

    Using OtherDrops 2.0, CB 1337
     
  18. Offline

    diannetea

    That's how I thought it would work too. If you read the documentation you are supposed to put exclusive on each. I couldn't get that to work either. It DOES work if you put exclusive on the top one, but percentages are a bit.. broken right now.

    There is a UNIQUE flag, but I couldn't currently get that working. Hopefully it will be fixed soon because despite the few bugs this plugin is amazing and there's really not anything else quite like it.
     
  19. Offline

    loulou68

    Hello
    Got a problem with OtherDrop.
    I would like to add Apple drop so i put this in otherdrop-drop.yml :
    Code:
            SPECIAL_LEAFDECAY@GENERIC:
                - tool: ALL
                  drop: APPLE
                  quantity: 1
                  chance: 5
            LEAVES@GENERIC:
                - tool: ALL
                  drop: APPLE
                  quantity: 1
                  chance: 15

    Ingame i do a relaod and a /od show leaves.

    I got response like this :
    breaks : (1) text..... (2) text....

    After that (in creative mode) i break log from wood and i wait for leavesdecay and there is no drop...

    I don't understand :'(

    Sorry for bad english skills...
     
  20. Offline

    Celtic Minstrel

    Oh there. I actually didn't notice that (probably Rofang put it there). However the file is not hosted on BukkitDev.

    Also, I may be mistaken, but I believe your keys (such as "replacementblock") need to be in lowercase.

    @Sepulzera – Exclusive is supposed to work the same way as {} when you attach it to multiple drops; that is, the following two configs should be equivalent:

    Code:
      BLOCK1:
      - drop: STONE
        chance: 60%
        exclusive: Hello
      - drop: SAND
        chance: 40%
        exclusive: Hello
      BLOCK2:
      - drop: {STONE/60%, SAND/40%}
    
    So, of all the drops with a given value of "exclusive", exactly one should occur (provided all its conditions are met). It differs from {} in that it allows more options.

    The UNIQUE flag on the other hand should ensure that if that drop occurs, no other drop will occur. Drops with the UNIQUE flag are always processed before drops that don't have it in order to ensure that that works properly.

    If this behaviour seems to not be what you're getting, please try to explain what you are getting. Maybe put your verbosity up to HIGHEST or even EXTREME and try some stuff.
     
  21. Offline

    Sepulzera

    Ok, so if I define this:
    Code:
        STONE:
            - tool: ALL
              drop: NOTHING
            - tool: ALL
              drop: GOLD_SWORD
              chance: 30.5
              exclusive: 1
            - tool: ALL
              drop: GOLD_HELMET
              chance: 30.5
              exclusive: 1
            - tool: ALL
              drop: GOLD_CHESTPLATE
              chance: 30.5
              exclusive: 1
            - tool: ALL
              drop: GOLD_LEGGINGS
              chance: 31.5
              exclusive: 1
            - tool: ALL
              drop: GOLD_BOOTS
              chance: 31.5
              exclusive: 1
    Stone should drop NOTHING, or one of these gold-items, shouldn't it?
    But it doesn't. It will only drop NOTHING or GOLD_SWORD.



    And another thing I've noticed:
    To define "tool: ALL" doesn't include water-damage (damage the enderman gets)
     
  22. Offline

    Celtic Minstrel

    Great, another bug. :(

    It should, but it may be that Bukkit doesn't yet recognize Enderman water damage.
     
  23. Offline

    EmpiricalDepth

    Thanks for the help.. you were right about being case sensative cause I tried both examples here and the one uppercase doesnt work

    Code:
    ## doesnt work
        COBBLESTONE:
            - action: LEFT_CLICK
              tool: VINE
              REPLACEMENTBLOCK: MOSSY_COBBLESTONE
              consumetool: 1
    
    ## works!
        COBBLESTONE:
            - action: LEFT_CLICK
              tool: VINE
              replacementblock: MOSSY_COBBLESTONE
              consumetool: 1
     
  24. Offline

    Celtic Minstrel

    Block names and anything that appears after a colon is case insensitive, but the fixed keys are not. Sorry. I may add that to the enormous list of things to implement, though I don't think it would be easy. I suppose I could at least make it accept some of the most common case variants though (eg, Replacementblock, ReplacementBlock, REPLACEMENTBLOCK).
     
    EmpiricalDepth likes this.
  25. Offline

    jazzman170

    Ok i have a goooood idea but i dunno if its possible with this plugin.

    I want it so at weather stormy, if players are on the surface of the world, there is a 0.10% chance of being struck by lightning resulting in half of players whole health damaged. Players underground are safe of course cause the lightning may have struck them but they wont know it due to they are safe underground or in a building.

    Anything close to this would be nice as well.
     
  26. Offline

    p000ison

    I think there is a bug. I get this exeption:


    Code:
    7:45 [WARNING] Unexpected exception while parsing console command
    bukkit.command.CommandException: Unhandled exception executing command 'od' in plugin OtherDrops v2.0-beta7
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:355)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:351)
        at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:506)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:485)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    ed by: java.lang.NullPointerException
        at com.gmail.zariust.otherdrops.OtherDropsConfig.loadDropsFile(OtherDropsConfig.java:268)
        at com.gmail.zariust.otherdrops.OtherDropsConfig.loadDropsFile(OtherDropsConfig.java:285)
        at com.gmail.zariust.otherdrops.OtherDropsConfig.loadConfig(OtherDropsConfig.java:188)
        at com.gmail.zariust.otherdrops.OtherDropsConfig.load(OtherDropsConfig.java:123)
        at com.gmail.zariust.otherdrops.OtherDropsCommand.onCommand(OtherDropsCommand.java:88)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
        ... 7 more
    With this config:

    Code:
    defaults:
    otherdrops:
        ALL:
          - tool: IRON_PICKAXE
            drop: NOTHING
            permission: test
    I think the problem is with the ALL:
    If i replace it with STONE: there are no exeptions...
     
  27. Offline

    Legolas75893

    Is it still not working? A couple friends and I have been having the same problem...OtherDrops just isn't working. Our configs are fine, but...
     
  28. Offline

    kahlilnc

    Hey leg. As soon as we switched to pex it stopped working. Maybe all permissions plugins that use p3/pex format are not compatible with this ;(
     
  29. Offline

    Legolas75893

    Idk, I use bPerms right now. Could that be it? I have permissions off in config, though...
     
  30. Offline

    kahlilnc

    :/ It just worked for permissionsbukkit for me. Or maybe switching to 1337 broke it idk :O
     
  31. Offline

    Legolas75893

    It wasn't working before 1337 for me.
     

Share This Page