[INACTIVE][MECH] BlockDrops v2.31 - Add and customize the items anything drops! [185+]

Discussion in 'Inactive/Unsupported Plugins' started by Snowl, Jan 25, 2011.

  1. Offline


    BlockDrops - Add and Customize the items your blocks ANYTHING drops!
    Version: 2.31
    By Request of http://forums.bukkit.org/threads/custom-drops-please.1198/#post-24213

    Ever wanted your dirt to drop a chainmail helmet? Want your sand to drop diamonds? Here's the answer!

    BlockDrops is a plugin that allows you to customize what your vehicles/blocks/mobs drop.

    Features (open)

    • *Infinite* Block Drops per block
    • Any block is customize-able
    • Percentage System
    • Drop damaged blocks (different dyes dropped, different cloths)
    • Drop on break of boat/minecart
    • Drop on Creeper Explode
    • Drop on mob death

    Thanks to http://forums.bukkit.org/threads/kitplugin-v1-02-dispense-kits-to-your-players.1201/ for the properties help.

    Available blocks/mobs/vehicles to drop from:
    Blocks (open)

    All blocks, past and future.
    Monsters (open)

    • CreeperExploded
    • Spider
    • Skeleton
    • Zombie
    • Player
    • Cow
    • Chicken
    • Giant
    • Ghast
    • Pig
    • Creeper
    • Sheep
    • Slime
    Vehicles (open)

    • Boat
    • Minecart
    • PoweredMinecraft
    • StorageMinecraft

    How to use BlockDrops:
    How to Use (open)

    Create a file in the directory where CraftBukkit is, called "blockdrops.properties". This is where you adjust what drops what.
    Open up blockdrops.properties
    Add your custom drops. The format for adding drops is
    [Block/Monster/Vehicle];[Block/Item you want to drop]:[Chance for drop (Range 0.0001 to 1.0)]

    Extra options (only for blocks) are
    [Block/Monster/Vehicle];[Block/Item you want to drop]:[Chance for drop (Range 0.0001 to 1.0)]:[Damage the item has (Range from -127 to 127. Normal is 0)]:[Block/Item held to make Block/Item drop]
    You require the damage option if you have the Block/Item option, but both are optional.

    To make a Vehicle/Block/Mob not drop it's normal blocks add [Vehicle/Drop/Mob]=0 to override it.

    An example blockdrops.properties:
    #Overwrite stone's drops
    #Always drop a cake
    #Drop a broken wooden pickaxe 0.1% of the time
    #Make a note block drop a boat
    #Make a creeper drop a stone
    #Make a boat return a boat

    Changelog (open)
    Version 2.31:
    • Fixed the WorldGuard and any other protected blocks issue.
    Version 2.3:
    • Fixed a bug where breaking a block but not breaking it at the last millisecond caused it to drop the item
    • Fixed a bug where breaking a block while protected by WorldGuard made it drop the item
    • Added creation of blockdrops.properties on startup
    Version 2.2:
    • Added overwrite for mobs
    Version 2.1:
    • Fixed version issues
    • Fixed Override issues
    Version 2.0:
    • Added dropping from every mob and animal, PoweredMinecraft and StorageMinecraft
    Version 1.5:
    • Added dropping from a boat or minecart when destroyed (besides when broken by itself)
    Version 1.45:
    • Added drops when using a certain tool
    Version 1.4:
    • Fixed a critical bug that would crash the client, stop saving of players data and NPE's after prolonged usage (again PropertiesFile >_<)
    Version 1.3:
    • Added damage for blocks so you can drop different wool colours and wool dyes (An example drop with damage is 1:351:1.0:11
    Version 1.2e:
    • Fixed a bug where propertiesfile overwrit the file.
    • Uploaded new version where fake lag is introduced to fix a bug.
    Version 1.2d:
    • Fixed a bug where destroying a block that had it's normal drop overwritten caused the next block to break slightly faster with a shovel.
    • Changed overwrite setting to [BLOCK]=0
    Version 1.2c:
    • Actually fixed a bug where destroying a block that had its normal drop overwritten destroyed a block next to it properly
    Version 1.2b:
    • Fixed a bug where destroying a block that had its normal drop overwritten destroyed a block next to it
    Version 1.2:
    • Adding 0:0.0 now overrides the normal blocks drop.
    Version 1.1:
    • You can now customize what a creeper drops once it explodes.
    Version 1.0:
    • Infinite block drops per block
    • Drops now drop at the block
    Version 0.7:
    • Bugfixes and in-ability to spawn air (as that corrupts the world)
    Version 0.6:
    • Percentage system implemented
    Version 0.5:
    • One custom drop per block
    Version 0.1:
    • Dropping blocks working
    • Initial Release

    Attached Files:

  2. Offline


    YES!! THANK GOD FOR DAVID DIAZ TO BE BORN!!! XDDDDD thank you so much ^^ now i can add in iconomy and make blocks and monsters drop gold ores! ^^ Thank you again :] i hope u release more plugins just as succesful as this XD
  3. Offline


    rawr! no problem :D by the way you dont need the extra :0:0 at the end unless you use them
  4. Offline


    I used the item to be used later on like for pigs, i did

    Pig;270(cooked pork? something like that):0:259(lighter or something like that) so it gives cooked pork! ^^
  5. Offline


    Item doesn't work with mobs because of a limitation of bukkit :(
  6. Offline


    Because they are already dead? But in all seriousness great plugin
  7. Offline


    Ha ;) They just don't register when they die :p
  8. Offline


    Very interested to know if or when this will support the custom drops for mobs/animals only if players kill them. Need to nerf peoples mobfarms.
  9. Offline


  10. Offline


    Sort of offtopic but.

    @Mattdk perhaps there 's a way to stop mobs drowning? I havn't looked around.
  11. Offline


    Good news - this should fix all the bugs you guys are having:
    This is sometime in teh near future.
    --- merged: Feb 3, 2011 11:07 AM ---
    Fixed a few bugs.
  12. Offline


    David Diaz, I have a request to make because, really, only a plugin like this would make sense with your mod.

    What I want to do is give my players easier access to iron/diamond/gold/lapis blocks. I want them to be able to hold the material that makes that block, right click on a cobblestone, and have that cobblestone turn into that respective block. So essentially it'll make it 9 times cheaper to make.

    The reason BlockDrops is needed is, since you can split these blocks back down into their base, you would otherwise have duping. So I'd just use BlockDrops to have the cobblestone & ingot drop.

    Let me know if you're willing to do this 'block plating' type plugin. :)
  13. Offline


  14. Offline


    Did this latest bugfix fix the tool breaking glitch?

    If not, could it be made so instead of specifying a required tool, it just automatically knows that say .. breaking down a diamond ore with your bare hands should not produce any drop. I really do like being able to specify exactly which tools can be used, but if it makes it easier I honestly wouldn't mind it if it always referred to default tool requirements.
  15. Offline


  16. Offline


    Would it be possible to add the ability to get items from fishing?
  17. Offline


    Um, once there is a hook for it.
  18. Offline


    Is there a way to adjust the probability of an item dropping based on depth?
  19. Offline


    Is there a way to reload BlockDrops settings on the fly? I tried /plugin reload, but that doesn't seem to do it. (Or, possibly, I'm stupid.)
  20. Offline


    --- merged: Feb 4, 2011 8:36 PM ---
    Not right now.
  21. Offline


    That's a little heavy to reload just one plugin's data, but... it'll do for now. Thanks.
  22. Offline


    Great plugin for my survival server. It's greate to have a chance for double dropping ores as compensation for dangerous monsters.
    I really approve this idea
  23. Offline


    Tried enabling sqlite and everything went wonky on me. None of the drops worked and I got a slew of errors. Build #207. Other plugins already using sqlite, I tried updating sqlite but it didn't make a difference. Using flatfile for now.
  24. Offline


    I'm having issues with mob drops on my server. Block and Vehicles are working fine, but for some reason mobs won't.

    I saw you posted earlier about a problem with WorldGuard, but I didn't see any details. Is this what I'm running into?
  25. Offline


    Try seperating the two drops
    if that doesnt work else post your CraftBukkit version
  26. Offline


    Ah I was on 135. Didn't realize I had gotten behind! I'll edit this post if updating fixes it.

    Edit: Mobdrops working! Sorry to raise a stink over nothing :p Now to update my other addons ;D
  27. Offline


    Yeah, 185 is the one that implements mob dropping.
  28. Offline


    EDIT: there 's 2 versions in your download, thought maybe one worked, but seems both get this error

    seem to get errors using build 258+(maybe further back too, havn't checked) reguarding passing event ENTITY_DEATH

    SEVERE: Could not pass event ENTITY_DEATH to BlockDrops
    java.lang.ArrayIndexOutOfBoundsException: 1
            at com.Snowl.bukkit.blockdrops.BlockDropsEntityListener.onEntityDeath(BlockDropsEntityListener.java:685)
            at org.bukkit.plugin.java.JavaPluginLoader$37.execute(JavaPluginLoader.java:312)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:60)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:213)
            at net.minecraft.server.EntityLiving.g_(EntityLiving.java:459)
            at net.minecraft.server.EntityLiving.f(EntityLiving.java:439)
            at net.minecraft.server.EntityCreeper.f(SourceFile:60)
            at net.minecraft.server.EntityLiving.a(EntityLiving.java:387)
            at net.minecraft.server.EntityMonster.a(EntityMonster.java:47)
            at net.minecraft.server.Entity.s(Entity.java:281)
            at net.minecraft.server.Entity.r(Entity.java:251)
            at net.minecraft.server.EntityLiving.r(EntityLiving.java:109)
            at net.minecraft.server.Entity.b_(Entity.java:166)
            at net.minecraft.server.EntityLiving.b_(EntityLiving.java:225)
            at net.minecraft.server.EntityMonster.b_(EntityMonster.java:34)
            at net.minecraft.server.EntityCreeper.b_(SourceFile:48)
            at net.minecraft.server.World.a(SourceFile:1116)
            at net.minecraft.server.WorldServer.a(WorldServer.java:57)
            at net.minecraft.server.World.f(SourceFile:1092)
            at net.minecraft.server.World.c(SourceFile:1071)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:282)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:209)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
  29. Offline


    Working fine here. What mob causes the error? Updated dl link btw
  30. Offline


    from what i tested it was skeles
  31. Offline


    post your blockdrops.properties

Share This Page