[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

    Snowl

    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)

    Features:
    • *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:
    Code:
    #blockdrops.properties
    #Overwrite stone's drops
    1=0
    #Always drop a cake
    1;92:1.0
    #Drop a broken wooden pickaxe 0.1% of the time
    1;270:0.001:100
    #Make a note block drop a boat
    25;333:1.0
    #Make a creeper drop a stone
    Creeper;1:1.0
    #Make a boat return a boat
    Boat=0
    Boat;333:1.0
    

    Changelog (open)
    Changelog:
    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

    Meteo

    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

    Snowl

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

    Meteo

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

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

    Snowl

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

    kjab

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

    Snowl

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

    Mattdk

    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

    Snowl

  10. Offline

    pudd1nG

    Sort of offtopic but.

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

    Snowl

    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

    QQCucumber

    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

    Snowl

    inbox'd
     
  14. Offline

    Euphoriant

    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

    Snowl

  16. Offline

    Technomancer88

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

    Snowl

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

    kjab

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

    mattmoss

    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

    Snowl

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

    mattmoss

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

    DiddiZ

    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

    Mattdk

    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

    Izbay

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

    Code:
    Pig;299:0.05;272:0.05
    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

    Snowl

    Try seperating the two drops
    Code:
    Pig;299:0.05
    Pig;272:0.05
    if that doesnt work else post your CraftBukkit version
     
  26. Offline

    Izbay

    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

    Snowl

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

    pudd1nG

    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

    Code:
    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

    Snowl

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

    pudd1nG

    from what i tested it was skeles
     
  31. Offline

    Snowl

    post your blockdrops.properties
     

Share This Page