[INACTIVE][MECH] DropBonus v2.5 - Loot table configuration tool - [740]

Discussion in 'Inactive/Unsupported Plugins' started by Nohup, Feb 25, 2011.

  1. Offline


    Version 2.5

    Tags - Loot, Drops, Permissions, iConomy, Multi-world

    The DropBonus plugin will allow you to configure the loot tables on your server in such a way that you can a) set the probability that breaking a block or killing an entity will generate a bonus, b) set the probability of EACH TYPE of bonus that can be generated, c) set a range for the number of items dropped and MORE. Even better still, the plugin was coded in a completely generic fashion so you aren't limited to the combinations that I thought were correct or needed. You can configure this plugin so that ANY block that is broken has the chance (.1% - 100%) of generating ANY other material (Material.X). The same goes for any creature that is killed.

    This tool can be used to override the default game drops as well. If you wanted to turn all drops from blocks off and control all the materials on your server, this tool makes it possible. It provides total control over what drops when blocks break and when creatures are killed!

    • Allows for bonus blocks to be dropped when a configured block is broken OR when a configured mob is killed.
    • Bonus chances are cumulative, so you could receive multiple bonuses for one block/mob based on the laws of probability.
    • Single "roll" performed to determine if bonuses should be granted on this event or not. Once you have qualified for a bonus, all bonuses defined for that block will be attempted.
    • Individual "rolls" performed for each bonus type, ensuring that qualifying for one bonus at a given level doesn't automatically qualify you for all bonuses at that level.
    • Configurability is the key. You can configure any block type and under that block type you can configure the chance of a bonus entity being dropped when the given block type is broken. The same goes for mob type.
    • Along those lines, you can also set individual blocks OR bonuses to be turned off. You don't have to have a specific set of entries or drops. Only set up what you want to occur.
    • Percentage configuration is now from 0-100 and anywhere in between in double format (so 0.000001 will now be accepted)
    • Ability to override standard drops from entities and blocks, assumed to be false if not specified
    • Ability to set drops based on tool used when breaking the block/killing the mob
    • Ability to specify 0-n bonus items of a type to be delivered in one "bonus"
    • Ability to specify 0-n bonus evaluations for a given bonus (i.e. you have 100% of one bonus stone, and then 20% chance of a second bonus stone)
    • Ability to specify the maximum number of dropped items per bonus per material
    • Configurable permissions supported by the Permissions plugin
    • Ability to specify the amount of damage done to a tool when breaking a block of a given type or killing a given mob
    • Newly added - MULTI-WORLD support, configurability for each world or all worlds at once.
    • iConomy support for specifying currency to drop from mobs and blocks
    Usage: Install the plugin and configure the config.yml for it (after it is generated). No commands currently specified. Bonus node permissions can be setup in the Permissions config.yml as exemplified below.

    Configuration Examples: Wiki

    Permissions Example: Wiki

    Multi-world Support: Wiki

    iConomy Support: Wiki

    Download DropBonus: DropBonus v 2.5
    Download Source: GitHub
    Wiki Site: Wiki

    Latest CraftBukkit version tested against: 733


    v 2.5
    • Updated to work with Bukkit 733.

    v 2.4
    • Updated to work with new version of Bukkit. NOT backward compatible.
    • Added list support for coins entries
    • Added permissions check before applying override
    v 2.2
    • Bug fixes for Permissions plugin name and 0 data field entry.
    v 2.1
    • Changed cooldown to only affect configured blocks
    • Added override support at tool level
    v 2.0.1
    • Bug fix for creature coin drop issue for iConomy integration.
    v 2.0
    • Added permissions configurability at the Material level (items dropped)
    • Major code refactor, thus new major version
    • Adjusted priority to Monitor where dealing with cancellable events, this will prevent conflicts with WorldGuard and iZone
    • Tested against new Recommended Build, w00t!
    v 1.10

    • Added support for boats and carts
    v 1.9

    • Added configuration to specify whether a killed entity only drops bonuses when killed by a player or not. This has a top-level default AND creature-specific configurations.
    • Added configuration to specify a placed-block cooldown timer (in ticks).
    • Added clean up routine to tracking to make sure entries aren't orphaned.
    • Adjusted block listener priority for onBlockBreak event and accounted for if the event is cancelled.
    v 1.8

    • iConomy beta successfully complete
    • Refactored some of my packages for those that look at my code
    • Created wiki for documentation so this post wasn't so large!
    v 1.7

    • Multi-world support added
    v 1.6

    • Added additional data specification within drop entries (used for color, texture, etc)
    • Added ability to specify how much damage a tool takes when breaking a block or killing a creature
    • Added BETA release of iConomy support (thanks to @Coelho for his help!)
    • Limited error spam to the console when configuration files are not correct
    v 1.5

    • Added Permission support
    v 1.4

    • Added tool-specific drop specification
    • Added support for 0-n bonus items to be dropped from a single configuration
    • Added support for o-n bonuses per material type per bonus
    • Added specification for maximum number of bonuses dropped per event
    v 1.3

    • Added override support to disable standard drops from blocks and entities.
    • Override flag assumed to be false if not specified
    v 1.2

    • added check to only drop bonus when death is caused by entity attack, not by external triggers such as skeletons burning to death or entities drowning
    v 1.1

    • Overhaul to percentage definitions
    • Added support for mob deaths
    • Changed name to DropBonus to span new functionality
    v 1.0

    • Initial release.
    Noppoly, Stormbow, Phaedrus and 2 others like this.
  2. Offline


    sorry, debug line was left in. Was trying out the new functionality to see how it worked. Download the latest and it is gone :)
  3. Offline


    I don't want to pester you because you're probably working on this already, but will you be adding wolves, cocoa beans, cookies, etc. and all the other new content, and listing them on the DropBonus wiki tables? I really appreciate your work and the time you're putting into this plugin. Hope you'll be able to get around to it when you're not too busy!
  4. Offline


  5. Offline


  6. Offline


    no, you dont have the names right for the creatures
  7. Offline


    mind telling me what it is?
  8. Offline


    Thanks for the update nohup. Love this plugin.

    Question: Would it be possible to have a chance to drop a chest that contains items?
  9. Offline


    Hey, I'm trying to make various changes to my server's drops, and I figure I'm probably trying to do something stupid because it's not working when I try to make things drop different items when using certain tools. I'm running 733, and this is my file: http://pastebin.com/UyxvSa5n
  10. Offline


  11. Offline


    How would I go about configuring this:
    When a player uses a gold tool on wood, it overrides the wood drop. So other tools still work like normal, but when a gold tool is used it needs to drop something different than wood (and thus not additionally).

    Wow I should learn to read. That's exactly the same problem I have. You can't use 'override' after a tool node apparently.
  12. Offline


    mind taking a look at what is wrong with mine? ;(

  13. Offline


    can this or will this support "monster" the human?
  14. Offline


  15. Offline



    2011-05-02 14:09:57 [SEVERE] Could not pass event ENTITY_DEATH to DropBonus
        at java.util.Arrays.copyOf(Unknown Source)
        at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
        at java.lang.AbstractStringBuilder.append(Unknown Source)
        at java.lang.StringBuilder.append(Unknown Source)
        at org.bukkit.craftbukkit.entity.CraftWolf.toString(CraftWolf.java:36)
        at java.lang.String.valueOf(Unknown Source)
        at java.lang.StringBuilder.append(Unknown Source)
        at org.bukkit.craftbukkit.entity.CraftWolf.toString(CraftWolf.java:36)
        at java.lang.String.valueOf(Unknown Source)
        at java.lang.StringBuilder.append(Unknown Source)
  16. Offline


    No cocoa drop code yet?
  17. Offline


    This plugin is awesome and I have used it to curb both my economy and my servers item needs with incredible accuracy because of it.

    I was just notifying you (although Niji probably already did if you are active on IRC) that the recent update to iConomy is amazing and I would love it if you would hook into it so that iConomy drops can be configured to go into a players "wallet" or into their "bank". Really excited by this!

    LPMinecraft community. Your son and you are always welcome to visit us if you want. Just hit me up on here/ website/ youtube channel :)
  18. Offline

    Pontus Lantz

    This aint updated to work with iConomy 5.0 yet?
    Atleast i get error when using iConomy 5.0. Drops work and all but doesn't get any money for the kills.
     21:39:54 [SEVERE] Could not pass event ENTITY_DEATH to DropBonus
    java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/iConomy
        at com.nohupgaming.minecraft.util.DropBonusEvaluator.affectBank(DropBonusEvaluator.java:211)
        at com.nohupgaming.minecraft.util.DropBonusEvaluator.generateBonus(DropBonusEvaluator.java:129)
        at com.nohupgaming.minecraft.listener.entity.DropBonusEntityListener.onEntityDeath(DropBonusEntityListener.java:73)
        at org.bukkit.plugin.java.JavaPluginLoader$45.execute(JavaPluginLoader.java:480)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
        at net.minecraft.server.EntityLiving.r(EntityLiving.java:470)
        at net.minecraft.server.EntityLiving.a(EntityLiving.java:449)
        at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:393)
        at net.minecraft.server.EntityMonster.damageEntity(EntityMonster.java:47)
        at net.minecraft.server.EntityHuman.d(EntityHuman.java:532)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:803)
        at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.ClassNotFoundException: com.nijiko.coelho.iConomy.iConomy
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 19 more
  19. Offline


    Any idea when we might see iconomy 5 support for this? Not sure I can run without this lol and also thanks for the great plugin :)
  20. Offline


    I will see if i can look into this tonight. Sorry, i have whopping total of 30 hours left at home before i have to fly again. I have business trips the rest of the month and putting my MC source on my work laptop would probably be frowned upon ;)
  21. Offline


    niji's documentation is brilliant and hes always in IRC for iconomy if you just need to bounce hooks off him. Mobile phone coding ftw? :) Thanks - looking forward to support. Also does dropbonus support decimal values?
  22. Offline


    Waiting slightly impatiently, but the RWorld is important!

    Thanks for the great mod!
  23. Offline


    lol ^^ I'll second that. By far one of my favorite plugins though, looking forward to having it back. :)
  24. Offline


    I've tried everything, but it isn't working for creatures.

    maxcount: 1
    slime_ball: 100 1 1
    override: true
    probability: 100

    Please help!!!!
  25. Offline


    Is this currently working with iConomy 5?
  26. Offline


    I've run into a bug when configuring to add glowstone dust to a mob, aparently it doesn't like the glowstone_dust config value.

    I'd go through all the oher pages to see if this was all posted if i wasn't cooked from my AC not working n.n"
  27. Offline


    It's been a while since I've posted the thread but I just wanted to say how much I appreciate DropBonus, it does a lot for my server and I view it as something essential that I simply can't run a server without.
  28. Offline


    Is this working on iConomy 5 for you guys?
  29. Offline


  30. Offline


    It appears I'm having a bug with the plugin. I have Creepers set up to drop different special items at a low chance, with the override: true, but they are still dropping gunpowder. Here's my config code for that section:

            maxcount: 4
                cake: 3 1 1
                gold_record: 1 0 1
                green_record: 1 0 1
                cookie: 50 2 4
            override: true
            probability: 50.0
            requirekiller: true
    We're still running Bukkit build 733.
  31. Offline


    Folks - NEO is going to drop an update out here for iConomy 5. Unfortunately my work and home life are overruling my time to develop on this right now. This is the only week I am at home this month so I have lots of catching up to do with my family in between work and sports with my kids. I am not trying to let this die or anything, as a matter of fact I have tried to get the functionality in front of Notch as I believe this would be a great package of functionality for server admins on a standard basis, but I do have to prioritize my family before it :)

    @NEO - thanks for picking up my slack. Let me know who all else to thank from your server as well, it is appreciated. I may just want to add you guys as collaborators so we can work together going forward!

Share This Page