[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



    first of all, thanks a lot for that awesome plugin !

    But (there's always a but...) i'm getting this error every now and then :
    16:11:52 [SEVERE] Could not pass event ENTITY_DEATH to DropBonus
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Stri
            at com.nohupgaming.minecraft.util.DropBonusEvaluator.buildBonus(DropBonu
            at com.nohupgaming.minecraft.util.DropBonusEvaluator.generateBonus(DropB
            at com.nohupgaming.minecraft.listener.entity.DropBonusEntityListener.onE
            at org.bukkit.plugin.java.JavaPluginLoader$48.execute(JavaPluginLoader.j
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
            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.Entity.N(Entity.java:264)
            at net.minecraft.server.EntityLiving.N(EntityLiving.java:116)
            at net.minecraft.server.Entity.p_(Entity.java:192)
            at net.minecraft.server.EntityLiving.p_(EntityLiving.java:230)
            at net.minecraft.server.EntityMonster.p_(EntityMonster.java:34)
            at net.minecraft.server.World.entityJoinedWorld(World.java:1009)
            at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:5
            at net.minecraft.server.World.playerJoinedWorld(World.java:991)
            at net.minecraft.server.World.cleanUp(World.java:968)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:369)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Is anyone experiencing this ?

    And also I can't find a way to make mobs drop some cocoa beans...:(

    Anyway, thanks again for such a great mod !

  3. Offline


    Priorities gotta be in order, and MC plugins definitely aren't above work and family. Thanks for giving us a great plugin! DropBonus is one of my favorites! :D
  4. Offline


    Here is the updated version for iconomy 5.X.


    A few days after icon 5 came out we were ready to make the transition, we were only waiting on dropbonus to be updated. Since the source was available we decided to do just that and update it. Since @Nohup has been busy with his family i,ve decided to post this with his permission. :)
    Dope and Phaedrus like this.
  5. Offline


    Hello, I would first like to say, thank you for making this mod. I really enjoy it.

    I would like to be able to break clay with a golden shovel, and have it drop 1-7 bricks. If I don't use a golden shovel, I want it to yield 1-10 clay balls. Is it possible? If not I would like to submit this as a feature request. Its implementation could be something like permitting "override: true" to be placed under a specific tool. Or something like that.
  6. Offline


    This looks great, but there's one thing stopping me using this, or any similar plugin. Cancelling the break event then setting it to air manually stops it being logged by LogBlock. Could you use the LogBlock API? Information for it is can be found here. I'd be extremely grateful if you could add this. Thanks.
  7. Offline


    Is this CB818 compatible? Any one tested it yet?

    ... Will test it tonight as I am updating our server and all other plugins.
    Will post my findings.

    Seems to run fine on CB 818.
  8. Offline


    This post seemed to got missed. I'm wondering if you'd implement this. I'd like to have all drops maintained by one plugin, the only thing missing in this plugin is what is mentioned in the quote and leaf decay.
  9. Offline


    I will say that the FloodGates plugins and drop bonus seem to butt heads occasionally where both stop working and a /reload DropBonus is required to get them both working again.

    Any thoughts dev?
  10. Offline


    @Nohup Very lovely plugin you have here!

    Seems like an excellent way to implement "random" events on my server. However, I would love to know if there are messages associated when getting a double drop with cobble or something. If not, it would be pretty good to add it, since in my opinion, getting two dollars in iConomy and no reasoning as to why you got it would be quite odd.

    - sagethor
  11. Offline


    can you update this for 860? Im having an issue with gold ore.
  12. Offline


    Is there anyway to get this to drop cocoa beans?
  13. Offline


    As the developer's stopped work on this (I fully understand as I have a family myself) I'd like to point people in the direction of a plugin that offers some of the features being requested. OtherBlocks is a rather powerful alternate drop plugin that I've been using for a while now and as developed stopped on that one too I've recently taken it up to support.

    Otherblocks can do this with it's recipes, would be something like this:
                  drop: CLAY_BALL
                  quantity: 1-10
                  chance: 100
                - tool: GOLD_SPADE
                  drop: CLAY_BRICK
                  quantity: 1-7
                  chance: 100
    OtherBlocks has just recently been updated with LogBlock support (looking into WorldGuard and Residence support).

    Leaf decay is supported. I use the below as part of my leaves/tree changes:
                - drop: STICK
                  chance: 2
                - drop: INK_SACK
                  color: BROWN
                  chance: 3
                - tool: ALL
                  drop: LEAVES
                  chance: 0.5
                  color: BIRCH
    Planning on adding messages per recipe (admin decides what's rare - be careful of chat spam if you put this on something too common). iConomy is not supported at the moment though and I've a large list of other things to add first (anyone else is welcome to add support and send me a patch though).

                - tool: ALL
                - drop: INK_SACK
                  color: BROWN
                  chance: 100
    Not sure you'd want stone to drop it though :D

    If anyone has any ideas that DropBonus does that OtherBlocks doesn't (I already know about iConomy) please let me know.
  14. Offline


    Thank you. I am working on configuring the plugin now. If I do not edit stone for example ... and just leave stone out of the config file, will minecraft just drop the default stone? Because I don't want to have to go in and edit each item. :)
  15. Offline


  16. Offline


    @Nohup: #740 inactive
  17. Offline


  18. Offline


    Still using this plugin and works fine with build 1000, hope the op will get back on this and have it updated for version 1.8
  19. Offline


    Pretty sure hes not coming back :(
  20. Offline


    does it work on 1.8.1 ?
    if not, which plugin can do the same ?

Share This Page