[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

    DiddiZ

    Try:
    Code:
    2=0
    3=0
     
  3. Offline

    wilsonc91

    Seems like its not working on servers with multiverse?
     
  4. Offline

    Euphoriant

    I run multiverse, this mod works fine. Other plugins perhaps?
     
  5. Offline

    Geremy

    is it possible to have block drop there custom block no matter how they are destroyed.

    exapmle, block being destroyed by tnt dont seem to take the custom drops into effect.

    or Eek runes power tool, none of the adjasent blocks drop custom

    i have coal block with a 0.23 chance to drop sulpher, it does just fine if they are mined 1 by 1 with a pick by hand, but no other adjasent block drop it if the power tool takes out 18 blocks at a time.

    i also have leaf blocks drop sticks and apples but they dont on natural decay.

    or am i doing it wrong?

    should i overwrite block drops then add them by hand? (didnt seem to work)

    thanks
     
  6. Offline

    Snowl

    Still awating block_break for that. I will also have the , featurr
     
  7. Offline

    chibirubara

    Thanks for the awesome plugin! My players are a bit ticked off that I lowered creepers gunpowder to 5%, but oh well. Are PigZombies supported as a seperate entity with this? I didn't alter them (PigZombies), but apparently the code for zombies replaces them as well.
     
  8. Offline

    DiddiZ

    Awesome plugin, with many uses:
    double slaps dropping two slaps
    more lapis lazuli
    lightstone drops light stone in normal world
    sticks, apples leaveblocks and coco beans from leaves
    etc
     
  9. Offline

    Snowl

    They dont really trigger it :(
     
  10. Offline

    chibirubara

    Ohhh.. thats right, my mistake. Forgot that the PigZombie death is like... non-existant or whatever, bummer.
     
  11. Offline

    Mimsy

    Well I made an account just to download this; didn't see if there was another option besides the attachment. In any case, totally worth the trouble. Nice plugin!

    Edit: Is there a way to make it drop one thing OR another? Like, I want iron ore to drop iron OR redstone, never both and never none. Right now I just have 50% chance of each which of course works fine in the long run so it's not a huge deal... but it'd still be cool. :)
     
  12. Offline

    Snowl

    Just add another entry ;)
     
  13. Offline

    PopeUrban

    Feature request:

    Option to customize drops per world (bukkit multiworld support)
     
  14. Offline

    giding

    Hey, are you going to add a possibility to customize the drops of mobs depending on how they are killed?

    First of all as someone already said this would be very useful to prevent people from getting items from traps without the need to hunt anything. Also, in our server we'd like a possibility to make it so that for example, creepers drop certain items only when they are killed with a sword.
     
  15. Offline

    mudzereli

    Are there any known issues of this plugins causing tools to last a lot longer? (i.e. blocks that have drop set to 0 = don't cause any durability loss?) For some reason my tools almost never run out, and keep respawning when they do. I've tested it with this being the only plugin running.

    Also, I'm running Craftbukkit #293

    Here's my config file:

    Code:
    #blockdrops.properties
    #Layout is [Block that is destroyed];[What item to drop]:[Percentage (1.0 is everytime)]
    #If you want to drop more than one block you do [Block that is destroyed];[What item to drop]:[Percentage (1.0 is everytime)];[Another item to drop]:[Percentage (1.0 is everytime)]
    ##Stone
    #Nothing if broken by hand
    1=0
    #50% Chance for Cobble if broken with Woodpick
    1;4:0.50:0:270
    #75% Chance for Cobble if broken with Stonepick
    1;4:0.75:0:274
    #100% Chance for Cobble & 5%Chance for Sulphur if broken with Ironpick
    1;4:1.0:0:257
    1;289:0.05:0:257
    #100% Chance for Stone if broken with Goldpick
    1;1:1.0:0:285
    #100% Chance for Cobble & 0.1%Chance for Diamond if broken with Diamondpick
    1;4:1.0:0:278
    1;264:0.001:0:278
    
    ##Coal Ore
    #Nothing if broken by hand
    16=0
    #50% Chance for Coal if broken with Woodpick
    16;263:0.50:0:270
    #75% Chance for Coal if broken with Stonepick
    16;263:0.75:0:274
    #105% Chance for Coal if broken with Ironpick
    16;263:1.0:0:257
    16;263:0.05:0:257
    #100% Chance for Coal & 5% Chance for Netherrack if broken with Goldpick
    16;263:1.0:0:285
    16;87:0.05:0:285
    #104% Chance for Coal &  0.1%Chance for Diamond if broken with Diamondpick
    16;263:1.0:0:278
    16;87:0.04:0:278
    16;264:0.001:0:278
    
    ##Iron Ore
    #Nothing if broken by hand
    15=0
    #75% Chance for Iron Ore if broken with Stonepick
    15;15:0.75:0:274
    #100% Chance for Iron Ore if broken with Ironpick
    15;15:1.0:0:257
    #105% Chance for Iron Bar if broken with Goldpick
    15;265:1.0:0:285
    15;265:0.1:0:285
    #100% Chance for Iron Ore, 0.2% Chance for Iron Block &  0.1% Chance for Diamond if broken with Diamondpick
    15;15:1.0:0:278
    15;42:0.002:0:278
    15;264:0.001:0:278
    
    ##Lapis
    #Nothing if broken by hand
    #0.1% Chance for Lapis Block if broken with Goldpick
    21;22:0.001:0:285
    #0.1% Chance of Diamond if broken with Diamondpick
    21;264:0.001:0:278
    
    ##Gold Ore
    #Nothing if broken by hand
    14=0
    #100% Chance for Gold Ore if broken with Ironpick
    14;14:1.0:0:257
    #105% Chance for Gold Bar if broken with Goldpick
    14;266:1.0:0:285
    14;266:0.1:0:285
    #100% Chance for Gold Ore, 0.2% Chance for Gold Block &  0.1% Chance for Diamond if broken with Diamondpick
    14;14:1.0:0:278
    14;41:0.002:0:278
    14;264:0.001:0:278
    
    ##Diamond Ore
    #Nothing if broken by hand
    56=0
    #100% Chance for Diamond if broken with Ironpick
    56;264:1.0:0:257
    #105% Chance for Diamond if broken with Goldpick
    56;264:1.0:0:285
    56;264:0.1:0:285
    #100% Chance for Gold Ore, 0.2% Chance for Diamond Block &  0.1% Chance for Diamond if broken with Diamondpick
    56;264:1.0:0:278
    56;57:0.002:0:278
    56;264:0.001:0:278
    
    ##Wood
    17=0
    #25% chance for Wood if broken by hand
    17;17:0.25:0:0
    #50% Chance for Wood if broken with Woodaxe
    17;17:0.50:0:271
    #75% Chance for Wood if broken with Stoneaxe
    17;17:0.75:0:275
    #100% Chance for Wood if broken with Ironaxe
    17;17:1.0:0:258
    #100% Chance for Coal if broken with Goldaxe
    17;263:1.0:0:286
    #100% Chance for Wood & 0.1%Chance for Diamond if broken with Diamondaxe
    17;17:1.0:0:279
    17;264:0.001:0:279
    
    ##Dirt
    #1% Chance for Stick if broken with Woodshovel
    03;280:0.01:0:269
    #0.5% Chance for Coal if broken with Stoneshovel
    03;263:0.005:0:273
    #0.3% Chance for Iron if broken with Ironshovel
    03;15:0.003:0:256
    #0.1% Chance for Gold if broken with Goldshovel
    03;14:0.001:0:284
    #0.05% Chance for Diamond if broken with Diamondshovel
    03;264:0.0005:0:277
    
    ##Sand
    12=0
    #50% Chance for Sand if broken with hands
    12;12:0.5:0:0
    #75% Chance for Sand if broken with Woodshovel
    12;12:0.75:0:269
    #100% Chance for Sand if broken with Stoneshovel
    12;12:1.0:0:273
    #100% Chance for Sand, 2.5% Chance for Soulsand if broken with Ironshovel
    12;12:1.0:0:256
    12;88:0.025:0:256
    #100% Chance for Glass if broken with Goldshovel
    12;20:1.0:0:284
    #100% Chance for Sand, 0.05% Chance for Diamond if broken with Diamondshovel
    12;12:1.0:0:277
    12;264:0.0005:0:277
    
    ##Gravel
    13=0
    #50% Chance for Sand if broken with hands
    13;13:0.5:0:0
    #75% Chance for Sand if broken with Woodshovel
    13;13:0.75:0:269
    #100% Chance for Sand if broken with Stoneshovel
    13;13:1.0:0:273
    #100% Chance for Sand, 5% Chance for Flint if broken with Ironshovel
    13;13:1.0:0:256
    13;318:0.025:0:256
    #100% Chance for Gravel, 2.5% Chance for Glowstoneif broken with Goldshovel
    13;13:1.0:0:284
    13;89:0.025:0:284
    #100% Chance for Sand, 0.05% Chance for Diamond if broken with Diamondshovel
    13;13:1.0:0:277
    13;264:0.0005:0:277
    
     
  16. Offline

    QQCucumber

    Hey David? BlockDrops is causing a conflict with Mining TNT: http://forums.bukkit.org/threads/mech-mining-tnt-v0-2-262.3569/

    BlockDrops isn't allowing MiningTNT to affect the aftermath of creeper explosions.
    I made double-sure BlockDrops is what was causing it on my test server.
     
  17. Offline

    Euphoriant

    Yeeeep, this bug has been reported :p That is currently the main thing keeping me from playing Minecraft right now >.> Plus, overall compatibility with other plugins could be a little better, and so on. I think it is just a matter of Bukkit being updated with the proper hooks for David to fulfill these requests :D

    I luuuhhrrrrv this plugin.
     
  18. Offline

    Snowl

    Haha. I need funcions added (Dinnerbone said he would add them), school and rl. I wish I could add all teh requests :(
     
  19. Offline

    Euphoriant

    Good ol' RL :D
     
  20. Offline

    Snowl

    Lol :p looks like we will be waiting for bukkit preview when they get added. If anyone want to take over the plugin, feel free to
     
  21. Offline

    Irru

    Awesome plugin this. I just got it and I'm playing around a bit, however I can't get it to work properly it seems.
    This is what i have in my blockdrops.properties
    73=0
    73;331:1.0
    73;331:0.7

    73;351:1.0:4
    73;351:0.9:4
    73;351:0.7:4

    So basically I want redstone blocks to drop 1 redstone all the time, 70% of a second dropping. I also want 1 Lapis Lazuli drop all the time, with 90% of a second and 70% of a third. However there is something wrong with this.
    This is the result of 10 redstoneblocks destroyed:
    1: 5 redstone
    2: 2 lapis 1 redstone
    3: 4 redstone
    4: 5 redstone
    5: 2 lapis 2 redstone
    6: 4 redstone
    7: 5 redstone
    8: 5 redstone
    9: 4 redstone
    10: 5 redstone

    I've done more tests and the results looks about the same each time.
    What am I doing wrong, since obviously something that aint right here :)
     
  22. Offline

    QQCucumber

    Are you able to fix the conflict with MiningTNT somehow?
     
  23. Offline

    selrahcrenyar

    If possible can you add iConomy support? (eg. you kill a zombie and get 30 coins)
     
  24. Offline

    mudzereli

    There are two blocks used for redstone, one for glowing (74), one for non-glowing (73). I haven't added any drops for redstone, but you might want to look into that. I believe it can be either type at the time of destruction but not both, so you may want to just copy it over and change all the numbers to 74 and see if that fixes it.
     
  25. Offline

    cyklo

    Hey there, I've written a plugin with some overlap of functionality to yours (OtherBlocks), and I've got durabilities working. The last few lines of this file configure the durability of the tools: http://cliqr.org/Z (lines 61 onward)
     
  26. Offline

    Euphoriant

    iMonster does this.
     
  27. Offline

    ImontypythonI

    look at my hand, now your own, now at mine. they are two tickets to that thing you love. you at your hand, and back at mine, they dropped diamonds. i'm on a pig.
     
  28. Offline

    Juze

    Uhm, I'm on v2.31 and I still get drops on last millisecond. [​IMG]
     
  29. Offline

    iShellz

    Can someone make a version with working pigzombies?
     
  30. Offline

    JoelNYC

    Great mod! Would it be possible to make BlockDrops also set a chance for a block to turn into another block? Rather than drop an item, actually turn into another block.

    So for example, you could have a stone block have a chance to turn into a lava block. Or a diamond block to turn into a pumpkin.
     
  31. Whats wrong with this? can u rewrite it and post on here?

    Creeper;266:0.5.0
    Zombie;266:0.5.0
    Creeper;266:0.2.0
    Player;266:0.5.0
    Spider;266:0.5.0
    Skeleton;266:0.5.0
    Skeleton;261:0.5.0
    Spider;354:0.10.0
    Zombie;272:0.5.0
    Zombie;320:0.5.0
    Cow;319:0.5.0
    Pig;334:0.5.0
    Zombie;340:0.2.0
    Chicken;344:1.0

    I want spiders to have 1% chance to drop a cake
    I want to have spiders to drop 50% on gold ingot
    I want skeletons to have 20% chance to drop a bow and 50% to drop a gold ingot
    I want cows to drop pork. and pigs to drop leather 50%
    Also zombies should drop gold ingot 50% creepers also
    basicly all attacker mobs should have 50% to drop gold ingot
    Chickens should drop eggs 100% always


    so plz can u fix this for me? :)
     

Share This Page