[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

    Celtic Minstrel

    Okay, I'm fairly sure it's a side-effect of negating the default drops. Unfortunately, I don't think there's much we can currently do about that, since the only way at present to negate the default drops is to cancel the event, which of course cancels every aspect of the event. (Ideally, only a drop: DENY should cancel the event.) I do have a pull request in Bukkit which will make it possible to cancel the default drops without cancelling the event, but it's not likely to be pulled before 1.9 comes around since they've asked me to fix a few things in it. In the meantime, you should be able to replicate default damage using the tooldamage: option; don't forget you'll need to have at least two versions, one to do 1 damage if the tool is right and one to do 2 damage if it's wrong.

    On a totally unrelated note, I somehow managed to trigger the "OnEntityDeath: entity has no 'lastDamageCause'." message. Has anyone else gotten this message? It's a situation that should be impossible (something dying without previously being damaged). The only possible clue is that it might've ben cause by my client timing out as I logged in.
     
  3. Offline

    Ed Marshall

    Looks to be the case. Your tooldamage workaround is working, so, problem solved on my end. Thanks for all your help. This is an excellent (and powerful) plugin and I'm glad to see such professional support for it.
     
  4. Offline

    grinch843

    I gave this a try with

    Code:
        STONE:
            - tool: ANY
              drop: ANY_ITEM
    I checked the drop with /ods stone and it list's all the items, but the only drop I get is cobblestone.

    Thanks,
    Grinch......
     
  5. Offline

    Celtic Minstrel

    Is cobblestone the first in the list?
     
  6. Offline

    grinch843

    Went back on looked at my server log and saw this. It happens whenever I use ANY_ITEM, also does this when I use the alias setup that Zarius suggested.

    Code:
    2011-10-03 10:12:05 [SEVERE] Could not pass event BLOCK_BREAK to OtherDrops
    java.lang.NullPointerException
        at com.gmail.zariust.otherdrops.drop.DropType.drop(DropType.java:114)
        at com.gmail.zariust.otherdrops.drop.ItemDrop.performDrop(ItemDrop.java:74)
        at com.gmail.zariust.otherdrops.drop.DropType.drop(DropType.java:92)
        at com.gmail.zariust.otherdrops.drop.ExclusiveDropGroup.performDrop(ExclusiveDropGroup.java:57)
        at com.gmail.zariust.otherdrops.drop.DropType.drop(DropType.java:92)
        at com.gmail.zariust.otherdrops.drop.DropType.drop(DropType.java:83)
        at com.gmail.zariust.otherdrops.event.SimpleDropEvent.run(SimpleDropEvent.java:281)
        at com.gmail.zariust.otherdrops.event.CustomDropEvent.perform(CustomDropEvent.java:520)
        at com.gmail.zariust.otherdrops.OtherDrops.performDrop(OtherDrops.java:352)
        at com.gmail.zariust.otherdrops.listener.OdBlockListener.onBlockBreak(OdBlockListener.java:87)
        at org.bukkit.plugin.java.JavaPluginLoader$39.execute(JavaPluginLoader.java:511)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at net.minecraft.server.ItemInWorldManager.c(ItemInWorldManager.java:195)
        at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:159)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:500)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:160)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:43)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:500)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-10-03 10:12:07 [SEVERE] Could not pass event BLOCK_BREAK to OtherDrops
    java.lang.NullPointerException
        at com.gmail.zariust.otherdrops.drop.DropType.drop(DropType.java:114)
        at com.gmail.zariust.otherdrops.drop.ItemDrop.performDrop(ItemDrop.java:74)
        at com.gmail.zariust.otherdrops.drop.DropType.drop(DropType.java:92)
        at com.gmail.zariust.otherdrops.drop.ExclusiveDropGroup.performDrop(ExclusiveDropGroup.java:57)
        at com.gmail.zariust.otherdrops.drop.DropType.drop(DropType.java:92)
        at com.gmail.zariust.otherdrops.drop.DropType.drop(DropType.java:83)
        at com.gmail.zariust.otherdrops.event.SimpleDropEvent.run(SimpleDropEvent.java:281)
        at com.gmail.zariust.otherdrops.event.CustomDropEvent.perform(CustomDropEvent.java:520)
        at com.gmail.zariust.otherdrops.OtherDrops.performDrop(OtherDrops.java:352)
        at com.gmail.zariust.otherdrops.listener.OdBlockListener.onBlockBreak(OdBlockListener.java:87)
        at org.bukkit.plugin.java.JavaPluginLoader$39.execute(JavaPluginLoader.java:511)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at net.minecraft.server.ItemInWorldManager.c(ItemInWorldManager.java:195)
        at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:159)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:500)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:160)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:43)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:500)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    
    Here's my test config...

    Code:
    aliases:
      - &LOOT1 {APPLE, DIAMOND, DIRT, LEAVES, COW, GRASS, ICE, FENCE}
    
    otherdrops:
    STONE:
        - tool: ANY
          drop: *LOOT1
    COBBLESTONE:
        - tool: ANY
          drop: ANY_ITEM
    
    Thanks,
    Grinch.....
     
  7. Offline

    Celtic Minstrel

    Looks like there's a null location. I'll see if the issue still exists in the current code.

    I traced through the path of execution and couldn't see a way for the location to be null at that place (if it were null it should've failed earlier); however, I found a different issue that would probably break drop lists, which is that it was offsetting the location, then using the resulting location to offset the location again. (That issue doesn't exist in beta6; it was introduced later.)

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

    Raycrash

    Code:
    2011-10-04 01:22:51 [SEVERE] Could not pass event PLAYER_INTERACT_ENTITY to OtherDrops
    java.lang.NullPointerException
        at com.gmail.zariust.otherdrops.data.ContainerData.<init>(ContainerData.java:50)
        at com.gmail.zariust.otherdrops.subject.VehicleTarget.getVehicleData(VehicleTarget.java:50)
        at com.gmail.zariust.otherdrops.subject.VehicleTarget.<init>(VehicleTarget.java:36)
        at com.gmail.zariust.otherdrops.event.OccurredDropEvent.getEntityTarget(OccurredDropEvent.java:425)
        at com.gmail.zariust.otherdrops.event.OccurredDropEvent.<init>(OccurredDropEvent.java:186)
        at com.gmail.zariust.otherdrops.listener.OdPlayerListener.onPlayerInteractEntity(OdPlayerListener.java:50)
        at org.bukkit.plugin.java.JavaPluginLoader$12.execute(JavaPluginLoader.java:321)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:902)
        at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:500)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    
    Code:
    2011-10-04 00:47:15 [SEVERE] Could not pass event VEHICLE_DESTROY to OtherDrops
    java.lang.NullPointerException
        at com.gmail.zariust.otherdrops.data.ContainerData.<init>(ContainerData.java:50)
        at com.gmail.zariust.otherdrops.subject.VehicleTarget.getVehicleData(VehicleTarget.java:50)
        at com.gmail.zariust.otherdrops.subject.VehicleTarget.<init>(VehicleTarget.java:36)
        at com.gmail.zariust.otherdrops.event.OccurredDropEvent.<init>(OccurredDropEvent.java:161)
        at com.gmail.zariust.otherdrops.listener.OdVehicleListener.onVehicleDestroy(OdVehicleListener.java:23)
        at org.bukkit.plugin.java.JavaPluginLoader$81.execute(JavaPluginLoader.java:811)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at net.minecraft.server.EntityMinecart.damageEntity(EntityMinecart.java:126)
        at net.minecraft.server.EntityHuman.d(EntityHuman.java:720)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:915)
        at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:500)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
     
  9. Offline

    a_iver

    Getting this message once in a while

    Code:
    16:45:24 [WARNING] [OtherDrops:2.0-beta6] Error: unknown entity target (CraftFallingSand) - please let the developer know.
    
    Also I got one with falling gravel too

    Also I threw an egg once and 4 or 5 chickens came out.. I'm not sure if that was from this plugin but I don't have any other plugins that modify drops, and my .yml was not configured that way.

    lol and this one

    Code:
    3:50:38 [SEVERE] Could not pass event PAINTING_BREAK to OtherDrops
    java.lang.NullPointerException
        at com.gmail.zariust.otherdrops.event.OccurredDropEvent.<init>(OccurredDropEvent.java:145)
        at com.gmail.zariust.otherdrops.listener.OdEntityListener.onPaintingBreak(OdEntityListener.java:121)
        at org.bukkit.plugin.java.JavaPluginLoader$60.execute(JavaPluginLoader.java:662)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at net.minecraft.server.EntityPainting.damageEntity(EntityPainting.java:207)
        at net.minecraft.server.Entity.burn(Entity.java:671)
        at net.minecraft.server.Entity.a(Entity.java:1269)
        at net.minecraft.server.EntityWeatherStorm.s_(EntityWeatherStorm.java:117)
        at net.minecraft.server.World.cleanUp(World.java:1052)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:460)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 15, 2016
  10. Offline

    Celtic Minstrel

    The storage minecart issue I believe is already fixed in the latest code; the eggs was probably just a coincidence, and the painting issue... I actually have no idea how that could even happen.

    @a_iver – Are you able to reproduce the CraftFallingSand issue? It should be able to happen with gravel as well as sand, by the way. Also, for the painting issue, what's your CraftBukkit version and what caused the error?
     
  11. Offline

    a_iver

    it doesn't happen every time i dig gravel or sand, but it has happened sometimes and i don't know why. for the paintings, it was caused by somebody else on the server so I don't know what caused it, but I can tell you I'm running 1185

    if that helps :-P

    by the way i LOVE this plugin. it has made my server so much funner :)
    thanks again

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

    Celtic Minstrel

    Unfortunately, that information doesn't really help. Oh well.

    For gravel/sand, does it occur consistently if you're digging a stack out from the bottom up?
     
  13. Offline

    grinch843

    Is there a problem on my end or something with Otherdrops?

    Thanks,
    Grinch...
     
  14. Offline

    WGMasterMPH

    I've updated my server to #1240 and it look's like since this update "command: " doesn't work.
     
  15. Offline

    slimpyman

    how do you negate all the "default" server drops. does something have to have a 100 percent chance to drop nothing or something to omit the default drops?
     
  16. Offline

    Celtic Minstrel

    Your config looks fine, so it's probably OtherDrops, but I'm not really sure.

    Yeah, command is at least broken on 1240 due to changes in Bukkit. Plain commands (with just a / prefix, no ! or $) may work though. Of course, those use the player's permissions, so they might not be what you want.

    Either 100% chance or a drop of NOTHING (this will just negate default drops, not other drops you specify). I recommend NOTHING since the 100% case is a bit buggy at the moment.

    Since Zarius hasn't been around much in the past week, I went ahead and built a beta7 release. Note that not all the changes were properly tested; it'll fix some issues, but may break other things. If something doesn't work for you, don't feel bad about regressing to beta6; however, before reporting an issue, please verify that it exists in beta7 since quite a few things have been fixed.

    2.0-beta7 download

    Changes include:
    • CONTENTS drop for endermen, to make them drop the block they're carrying
    • MONEY and MONEY_DROP now work quite differently. MONEY_STEAL is gone; you now add @STEAL to either MONEY or MONEY_DROP to get the stealing effect. This also means you can no longer do MONEY@5 to drop 5 of your currency unit; you need to switch your configs to use MONEY/5 instead. This also applies to experience, by the way.
    • PLAYER is a valid tool, as is PLAYER@name. The support for this was already in place, I just forgot to make it check for that case.
    • Drop groups are now nestable; you can put a drop group in another drop group. Note: Be careful if you're using YAML aliases, since I believe they could be used to lock up the plugin in an infinite loop resulting in a stack overflow issue. The rule of thumb is, don't refer to an alias within its definition.
    • Data values for smooth brick, monster eggs, new slabs, and monster spawners. (Note: Spawners for things that aren't mobs, eg arrow spawners, are not supported.)
    • Any keyword of the form ANY_BLAHBLAHBLAH may be replaced with EVERY_BLAHBLAHBLAH when used as a drop (alternatively, you can just throw a ^ on the beginning; this'll work for CREATURE_BLAH groups as well). The effect of this is probably obvious, but I'll say it anyway; it'll drop one of each thing the synonym could possibly represent.
    • Jukeboxes are now supported! You can do a CONTENTS drop for them, or match them by data (eg JUKEBOX@GREEN_RECORD).
    • flag: UNIQUE will, if present, force a drop to be the only drop that occurs, if it occurs. This ability was already present but no longer relies on you putting the drops with flag: UNIQUE before the ones that don't have it (it'll still behave as if you did though; the drops are sorted to make this work). Note: If anyone has problems that seem to imply drops are being checked in the wrong order even when there are no UNIQUE flags present, let me know; I'm not sure if Collections.sort performs a stable sort.
    • Exclusive drop lists (the {} syntax) and groups (the exclusive: key) now work differently if you provide a chance parameter; the given chances form a distribution. If they add up to 100 or less, it's a percentage; otherwise it's out of the total of the chances. This could be a little confusing, so feel free to ask for clarification; however, in general I believe it will be more intuitive.
    • Allowing ranges in embedded quantity, eg EGG/1-2/10%
    • You can include %t in a message: parameter to substitute the tool used. This likely doesn't work correctly; it'll definitely work, but may not produce the result you'd expect.
    • Data for paintings! You can match by data (eg PAINTING@KEBAB) now. The list of painting names is available somewhere in the javadoc; I'm not going to hunt it down right now though.
    • ANY_VEHICLE as a drop will randomly spawn some kind of minecart or a boat.
    • Various bugfixes.

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

    grinch843

    Just wanted to give you a heads up that after installing beta7 it fixed my problems with the drop ANY_ITEM and ANY_BLOCK commands....

    Thanks
    Grinch......
     
  18. Offline

    Celtic Minstrel

  19. Offline

    RugRats

    @Celtic Minstrel
    Code:
    2011-10-06 17:19:17 [SEVERE] Error occurred while enabling OtherDrops v2.0-beta7 (Is it up to date?): null
    java.lang.UnsupportedOperationException
        at java.util.AbstractList.add(Unknown Source)
        at java.util.AbstractList.add(Unknown Source)
        at com.gmail.zariust.otherdrops.OtherDropsConfig.loadBlockDrops(OtherDropsConfig.java:292)
        at com.gmail.zariust.otherdrops.OtherDropsConfig.loadDropsFile(OtherDropsConfig.java:279)
        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.OtherDrops.onEnable(OtherDrops.java:244)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:920)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
     
  20. Offline

    Celtic Minstrel

    Well, it didn't happen for me when I started the server, so it's probably related to your config somehow. Judging from the code, it's SPECIAL_LEAFDECAY that causes it.
     
  21. Offline

    Rofang

    The list of painting types is here, in case anyone wants it.
     
  22. Offline

    Malaras

    Any Help Please, CB 1185

    I killed a chicken and a cow and got same error's..
    The monsters work but has decimals in the amount.
    Thanks,

    Code:
    2011-10-06 12:05:59 [SEVERE] Could not pass event ENTITY_DEATH to OtherDrops
    java.lang.NullPointerException
        at com.gmail.zariust.otherdrops.drop.DropType.drop(DropType.java:114)
        at com.gmail.zariust.otherdrops.drop.ItemDrop.performDrop(ItemDrop.java:74)
        at com.gmail.zariust.otherdrops.drop.DropType.drop(DropType.java:92)
        at com.gmail.zariust.otherdrops.drop.ExclusiveDropGroup.performDrop(ExclusiveDropGroup.java:57)
        at com.gmail.zariust.otherdrops.drop.DropType.drop(DropType.java:92)
        at com.gmail.zariust.otherdrops.drop.DropType.drop(DropType.java:83)
        at com.gmail.zariust.otherdrops.event.SimpleDropEvent.run(SimpleDropEvent.java:281)
        at com.gmail.zariust.otherdrops.event.CustomDropEvent.perform(CustomDropEvent.java:520)
        at com.gmail.zariust.otherdrops.OtherDrops.performDrop(OtherDrops.java:352)
        at com.gmail.zariust.otherdrops.listener.OdEntityListener.onEntityDeath(OdEntityListener.java:110)
        at org.bukkit.plugin.java.JavaPluginLoader$62.execute(JavaPluginLoader.java:677)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callEntityDeathEvent(CraftEventFactory.java:285)
        at net.minecraft.server.EntityChicken.a(EntityChicken.java:92)
        at net.minecraft.server.EntityLiving.die(EntityLiving.java:528)
        at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:469)
        at net.minecraft.server.EntityAnimal.damageEntity(SourceFile:20)
        at net.minecraft.server.EntityHuman.d(EntityHuman.java:720)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:915)
        at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:500)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    
    Config,

    Code:
    include-files:
    ##########
    # The plugin will scan through and load these files after loading the main config below.
    # Note: drops from included files will are inclusive and will all be added to the drop list.
    ##########
    #  - includes/od-fix_undroppables.yml    # fix glass, bookshelf, boat and stairs drops
    #  - includes/od-goldtools-basic.yml    # allow gold tools chance to get ice, glowstone and grass
    #  - includes/od-goldtools-smelt.yml    # gold-pickaxe smelts ores to ingots, sand to glass, etc
    #  - includes/od-ore_extraction.yml      # allow ores to be "extracted" - leaving behind the stone
    #  - includes/od-leaf_overhaul.yml      # overhaul leaf drops (apples, cocoa beans, leaves, sticks & a very small chance of golden apple)
    #  - includes/od-playerdeath_zombie.yml # players drop zombies on death
    #  - includes/od-undead_chaos.yml      # the undead shall rise again! Includes players dropping zombies/skeletons
    #  - includes/od-random_examples.yml    # For crazy testing only :) Read through examples before activating.
    #  - includes/od-dyewool.yml            # Dye wool after placing!
    
    ## Other users overhauls
    #  - includes/overhaul-catballs.yml    # great example/playable config from Catballs (disable "ob" configs before using this one, otherwise you might have too many drops)
    #  - includes/overhaul-zarius.yml      # Zar's messy config (I run this with no other includes, at the moment)
    
    ## Add your files here (alternatively just add your custom drops to the bottom of this file)
    #  - my_custom_file1.yml
     
    aliases:
    ##########
    # add custom YAML aliases here (advanced customisation) - see the wiki for more information
    
    defaults:
    ##########
    # add default values for the config below, "include-files" have their own "defaults" sections
     
    otherdrops:
      CREATURE_CHICKEN:
        - drop: {FEATHER/30%, RAW_CHICKEN/25%}
        # Don't need the air drop
    
      CREATURE_COW:
        - drop: {LEATHER/25%, RAW_BEEF/10%}
    
      CREATURE_PIG:
        - drop: RAW_PORKCHOP/25%
    
      CREATURE_SHEEP:
        - drop: {WOOL/25%, DIRT/5%}
    
      CREATURE_CREEPER:
        - drop: MONEY
          quantity: 1-8
          message: You recive %q dollars from a Creeper.
    
      CREATURE_SPIDER:
        - drop: MONEY
          quantity: 1-8
          message: You recive %q dollars from a Spider.
    
      CREATURE_ZOMBIE:
        - drop: MONEY
          quantity: 1-8
          message: You recive %q dollars from a Zombie.
    
     
  23. Offline

    RugRats

    So how would I fix it. Just remove it from the config?
     
  24. Offline

    Celtic Minstrel

    Just use LEAVES and specify action: LEAF_DECAY. (Make sure to merge it with an existing LEAVES section if you have one, since duplicate sections won't work.)

    @Malaras – What version? Are you using beta7 or beta6?
     
  25. Offline

    RugRats

    But what was wrong with the normal way. What was the purpose of removing it if Zarius didn't want it to have be removed which was the SPECIAL_LEAFDECAY@... It was much more convenient.
     
  26. Offline

    Malaras

    beta 6

    Just upgraded to bukkit 1240 and does same thing

    Ok useing CB 1240 now, And OD beta 7.
    Animals seem to working now after update to beta 7 . .But,
    Assumeing with changes in beta 7 that money isnt set up right.
    Instead of amounts i have there 1 -5 im getting 15 n such.

    And also how do i set up decimal thing in config to round to nearest 1$

    Also is there a %q or anything for how many items that drop? %q doesnt seem to work correctly with it.

    Thanks,

    Code:
    2011-10-08 02:42:11 [INFO] [OtherDrops:2.0-beta7] Events node created.
    2011-10-08 02:42:11 [INFO] [OtherDrops:2.0-beta7] Loading file: otherdrops-drops.yml
    2011-10-08 02:42:11 [WARNING] [OtherDrops:2.0-beta7] Invalid data for MONEY: 0
    2011-10-08 02:42:11 [WARNING] [OtherDrops:2.0-beta7] Invalid data for MONEY: 0
    2011-10-08 02:42:11 [WARNING] [OtherDrops:2.0-beta7] Invalid data for MONEY: 0
    2011-10-08 02:42:11 [WARNING] [OtherDrops:2.0-beta7] Invalid data for MONEY: 0
    2011-10-08 02:42:11 [INFO] [OtherDrops:2.0-beta7] Using Bukkit superperms.
    2011-10-08 02:42:11 [INFO] [OtherDrops:2.0-beta7] OtherDrops loaded.
    2011-10-08 02:42:11 [INFO] [OtherDrops:2.0-beta7] Payment method found (iConomy version: 6)
    
    Config,

    Code:
    otherdrops:
      CREATURE_CHICKEN:
        - drop: {FEATHER/30%, RAW_CHICKEN/25%}
        # Don't need the air drop
    
      CREATURE_COW:
        - drop: {LEATHER/25%, RAW_BEEF/10%}
    
      CREATURE_PIG:
        - drop: {RAW_PORKCHOP/25%}
    
      CREATURE_SHEEP:
        - drop: {WOOL/25%, DIRT/5%}
    
      CREATURE_CREEPER:
        - drop: MONEY
          quantity: 1-5
          message: You recive %q dollars from a Creeper.
    
      CREATURE_SPIDER:
        - drop: MONEY
          quantity: 1-5
          message: You recive %q dollars from a Spider.
    
      CREATURE_ZOMBIE:
        - drop: MONEY
          quantity: 1-5
          message: You recive %q dollars from a Zombie.
    
      CREATURE_SKELETON:
        - drop: MONEY
          quantity: 1-5
          message: You recive %q dollars from a Skeleton.
    
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 15, 2016
  27. Offline

    Celtic Minstrel

    SPECIAL_LEAFDECAY hasn't been removed; it's still supported, and I have already fixed the issue with it in my copy of the code. I disagree however that it's more convenient. It's not uncommon for people to want the same drops for leaf decay and leaf breaking, and it's now possible to do that using action: [BREAK, LEAF_DECAY].

    @Malaras – Replace all your MONEY@5 etc with something like MONEY/5. As for %q, that is supposed to do what you want (show the number of items dropped); what is it doing instead?
     
  28. Offline

    RugRats

    If it hasn't been removed then why won't it work (this reply would be before I read that you fixed the issues) Anyways thanks
     
  29. Offline

    Celtic Minstrel

    It'll work in the 2.0 release.
     
  30. Offline

    Malaras

    I dont understand the money/5 ? What do i need to do to the config? Cause i want to do quantity: 1-5
    or i need to Money/1-5 now? And what about the chance?

    %q is giving wrong drop info if any at all i killed like 20 things give or take and it might have got one right. most of them where 0 .
     
  31. Offline

    Raycrash

    If I want slime drops to be very rare 5% should it look like this ?
    Code:
        CREATURE_SLIME@TINY:
          drop: 341
          chance: 5%
     

Share This Page