[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

    grinch843

    Hi, just installed this and it seems to work ok except for netherrack, can't get it to drop, here's what I've got in my config file for it. I've got several other entries that are working just fine that drop soulsand and glowstone.

    # Stone/Cobblestone drops netherrack
    01;87:0.25
    04;87:0.50

    Grinch...
     
  3. Offline

    Snowl

    get rid of the 0 at the front :p
     
  4. Offline

    grinch843

    D'oh! [​IMG]

    Thanks, works perfectly now!!!!

    Grinch......
     
  5. Offline

    Snowl

    Added dropping from vehicles when broken (besides when they break by themselves) You can also override their drops like usual. Only thing you can't do is limit the drops when item is held.
     
  6. Offline

    Euphoriant

    Awesome! So like .. you could 'break' your boat to take it out of the water instead of breaking it into sticks and planks lol.

    Any progress on simplified multi-drops/tool requirements?
     
  7. Offline

    Snowl

    Yeah :D
    I tried adding it and it broke the plugin... i'm still looking how to though.
     
  8. Offline

    racu

    How to drop on Boat when breaking?

    I add to properties

    333;333:1.0
    but not working

    and
    333=0
    333;333:1.0

    also not working
     
  9. Offline

    Snowl

    Instead of 333 type Boat (for the first part)
    So
    Boat;333:1.0
     
  10. Offline

    racu

    Work!

    but 3 woodenplanks and 2 sticks are still drop.

    I add
    333=0
    Boat;333:1.0

    Only Boat;333:1.0 also drop 3 woodenplanks and 2 sticks
     
  11. Offline

    Snowl

    do Boat=0
     
  12. Offline

    Momo5000

    here is a improve/idea for ur Plugin sir,

    If you add a cobblestone (ID: 4), it should remove the default item to drop and only drop the item that u have entered in ur config file.
     
  13. Offline

    barghest

    Mr. D. Diaz, you claim in your sig to be a coding noob, but you are a coding king! Thanks for the dye drop update - when you roll out the "multiple tools can be set to cause item drop" update, I will be using that as well.

    To anyone who's interested, these are the settings I've got for breaking lapis lazuli ore, designed to closely approach the results given in single-player:

    Code:
    21=0
    21;351:1.0:4
    21;351:1.0:4
    21;351:1.0:4
    21;351:1.0:4
    21;351:0.5:4
    21;351:0.5:4
    21;351:0.5:4
    21;351:0.5:4
    
    Override drop 21, so if Notch fixes this bug and I forget I have this plugin on, 20 lapis dyes don't drop :p
    4 guaranteed lapis dye drops, and 4 more with a 50% chance each.

    Hope this helps someone.

    EDIT: Fixed my fail mental math.
    Also, momo5000, when did reading the OP go out of style? If you type 4=0 in the properties file, that means disable the default drop and completely override it with what's provided.
     
  14. Offline

    Euphoriant

    Yeah, as barghest explained, and as is stated in the original post, you can override the original drop and add a custom drop by following this format:

    [blockid]=0
    [blockid];[customdrop]:[dropchance]:[damage/data value]:[required tool]
     
  15. Offline

    Snowl

    Sure! Added in the release! Now you can type [blockId]=0 and it will automagically override it :O


    Rawr! <3 Thanks for that :D

    Thats right!
     
  16. Offline

    Momo5000

    Thanks buddy :)
     
  17. Offline

    Bacu

    Too much to ask for a download link that I can download with wget?
     
  18. Offline

    Euphoriant

    There is a .zip attached to the original post ... You can click on it :)
     
  19. Offline

    Snowl

    Bacu likes this.
  20. Offline

    Bacu

  21. Offline

    Euphoriant

    Here's the config file.

    Code:
    #Wed Jan 26 14:36:36 PST 2011
    # Sand
    12;20:0.001
    12;346:0.0001
    
    # Leaves
    18=0
    18;6:0.05
    18;18:0.15
    18;280:0.1
    18;260:0.025
    18;322:0.0001
    
    #cloth
    35=0
    35;287:0.75
    35;287:0.50
    35;287:0.25
    
    #Lapis Lazule
    21=0
    21;351:1.0:4:257
    21;351:1.0:4:257
    21;351:1.0:4:257
    21;351:1.0:4:278
    21;351:1.0:4:278
    21;351:1.0:4:278
    
    # Ice
    79;79:0.75:278
    
    # Glass
    20;20:1.0:0:280
    
    # Halfblocks
    43;44:1.0
    43;44:1.0
    
    # Bookshelves
    47;340:1.0
    47;340:1.0
    47;340:1.0
    47;5:1.0
    47;5:1.0
    47;5:1.0
    
    # Stone
    1=0
    1;4:1.0:0:270
    1;4:1.0:0:274
    1;4:1.0:0:285
    1;4:1.0:0:257
    1;4:1.0:0:278
    
    # Cobblestone
    4=0
    4;4:1.0:0:270
    4;4:1.0:0:274
    4;4:1.0:0:285
    4;4:1.0:0:257
    4;4:1.0:0:278
    
    # Gold
    14=0
    14;266:1.0:0:257
    14;266:1.0:0:278
    14;266:0.1:0:257
    14;266:0.1:0:278
    14;41:0.01:0:278
    
    # Iron
    15=0
    15;15:1.0:0:257
    15;15:1.0:0:274
    15;15:1.0:0:278
    
    # Coal
    16;264:0.009:0:278
    16;263:0.75:0:270
    16;263:0.75:0:274
    16;263:0.75:0:285
    16;263:0.75:0:257
    16;263:0.75:0:278
    16;263:0.25:0:270
    16;263:0.25:0:274
    16;263:0.25:0:285
    16;263:0.25:0:257
    16;263:0.25:0:278
    
    # Diamond
    56=0
    56;264:1.0:0:257
    56;264:1.0:0:278
    56;264:0.009:0:257
    56;264:0.009:0:278
    56;57:0.009:0:278
    
    # Grassy Dirt
    2=0
    2;2:0.1
    2;3:0.5
    2;295:0.01
    2;262:0.0001
    2;318:0.001
    2;301:0.0001
    2;280:0.010
    2;39:0.05
    2;40:0.001
    
    # (Bitch ass)Hoe'd Dirt
    60=0
    60;262:0.005
    60;263:0.001
    60;280:0.01
    60;302:0.0004
    60;318:0.01
    60;318:0.01
    60;295:0.1
    60;288:0.01
    60;287:0.01
    60;281:0.01
    60;336:0.01
    60;340:0.01
    60;337:0.01
    60;345:0.0005
    60;266:0.0001
     
    # Dirt
    3;262:0.001
    3;263:0.0001
    3;280:0.001
    3;302:0.00005
    3;318:0.005
    3;318:0.005
    
    # Wooden Stairs
    53;53:1.0
    
    # Cobble Stairs
    67;67:1.0
    
    # Mobspawner
    52=0
    52;306:0.05:0:278
    52;307:0.05:0:278
    52;308:0.05:0:278
    52;309:0.05:0:278
    52;310:0.005:0:278
    52;311:0.005:0:278
    52;312:0.005:0:278
    52;313:0.005:0:278
    52;320:0.09;320:0.09;320:0.09;320:0.09;320:0.09:0:278
    52;264:0.01;264:0.01;264:0.01:0:278
    52;266:0.05;266:0.05:0:278
    52;266:0.03;266:0.03;266:0.03:0:278
    52;267:0.08:0:278
    52;276:0.005:0:278
    52;283:0.05:0:278
    52;302:0.1;303:0.1:0:278
    52;304:0.09;305:0.09:0:278
    52;331:0.05;331:0.05;331:0.05;331:0.05;331:0.05:0:278
    52;314:0.03:0:278
    52;315:0.03:0:278
    52;316:0.03:0:278
    52;317:0.03:0:278
    52;348:0.05;348:0.05;348:0.05;348:0.05;348:0.05:0:278
    52;322:0.05;322:0.05;322:0.05:0:278
    52;289:0.05;289:0.05;289:0.05;289:0.05;289:0.05:0:278
    52;350:0.09;350:0.09;350:0.09:0:278
    52;262:0.05;262:0.05;262:0.05;262:0.05;262:0.05;262:0.05;262:0.05;262:0.05;262:0.05;262:0.05:0:278
    52;50:0.1;50:0.1;50:0.1;50:0.1;50:0.1:0:278
    52;261:0.05:0:278
    52;259:0.05:0:278
    
    # Snow
    78=0
    78;78:1.0:0:256
    78;78:1.0:0:269
    78;78:1.0:0:273
    78;78:1.0:0:277
    78;78:1.0:0:284
    78;332:1.0;332:0.5;332:0.25
    
    # Gravel
    13=0
    13;13:0.4
    13;318:0.15
    13;318,318:0.09
    13;263:0.009
    13;15:0.001
     
  22. Offline

    BigMoomba

    It not working with the last Version.
    i have add all files to Bukkit folder and have change the Drops to this :
    Code:
    #If glass is broken, drop another glass
    20;20:1.0
    #If lightstone is broken, drop a lightstone
    89;89:1.0
    #If sand is broken, drop 5 sand
    18;18:1.0
    #Brick = Slimeball
    45;341:1.0
    Creeper;260:0.5
    But if Glass proken they drope nothing its same with Bricks or the creeper dont spawn a Apple XD
     
  23. Offline

    Snowl

    What version of CraftBukkit do you have?
     
  24. Offline

    BigMoomba

    Ok the Creeper drop now a Apple with verson 182 but the glass and the Brick dont drop the Glass/Slimeball
     
  25. Offline

    Snowl

    Let me test it with version 182 - it's working on 166
    --- merged: Jan 31, 2011 12:10 AM ---
    BlockDamageLevel is broken :(
    --- merged: Jan 31, 2011 12:17 AM ---
    Ooh, but in this version EntityDeath works :D Just adding extra mobs now, mob dropping now works.
    --- merged: Jan 31, 2011 1:18 AM ---
    Updated to 2.0 - Mobs added, PoweredMinecraft and StorageMinecraft has being added. Awating BlockDamageLevel fix for BlockDrops: http://bugs.bukkit.org/issues/339
    --- merged: Jan 31, 2011 1:43 AM ---
    Sorry for the quadruple post but now been updated for block support. Requires 185+ though :(
     
  26. Offline

    SAMDAN

    LOL!! SAND=DIAMOND!!!! L_O_L!!!
     
  27. Offline

    leocraft

    edit : ok now i got it working partly

    1=0
    1;92:1.0
    18;92:1.0


    is my properties file, stone drops nothing now, and cake comes from trees
     
  28. Offline

    Snowl

    urgh stupid new plugin thing hate it so much

    overriding will cause it to error
    i'll fix in a second
     
  29. Offline

    leocraft

    yo this is awesome. I'm making leaves drop apples 10% of the time now.


    edit: dunno if this matters but I don't think this works with leaf decay or if you blow stuff up with tnt?
     
  30. Offline

    Snowl

    Fixd now. You can now override properly now :p
     
  31. Offline

    Euphoriant

    Has the tool breaking bug been fixed? :p

    Mob drops!!!!! So amazing.
     

Share This Page