[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

    Daveyo

    bukkit needs to update, he's actually working at full speed
     
  3. Offline

    JoelNYC

    From http://bugs.bukkit.org/issues/476 :



    Hopefully BlockDrops can switch over to onBlockBreak without much hassle.
     
  4. Offline

    strupan


    Fuck lol, yeah hopefully David's able to, realllllly need this ;(
     
  5. Offline

    crazy2be

    Fixed, although it seems vehicles are broken as well. Didn't fix that part, as we don't use that on our server, and i'm not really sure how. Hopefully the original maintainer will post a proper fix soon.
     

    Attached Files:

    GameFAQsRolo likes this.
  6. Offline

    gmerindol

    Thanks a lot man!
    Hopefully the vehicles can be fixed soon :p
     
  7. Offline

    ark3typ3

    Vehicles can't be fixed so easily in the new build I'm afraid.
     
  8. Offline

    Avous

    sure :p give me the money to donate because atm i have the balance of.... 4.38 USD
     
  9. Offline

    Pe6yc

    How to deal with Dye? E.g. Rose Red Dye's id is 351:1
    Instead of 351:1 plugin drops just 351 (black dye) =(
     
  10. Offline

    Daveyo

    is this confirmed working?
     
  11. Offline

    strupan

    yup! works great, love you so much man
     
  12. Offline

    GameFAQsRolo

    Works great, thanks for the update.

    The only problem I'm running into is the massive "A plugin cancelled the block break event" spam on CB #440. I believe the console spam is fixed on newer builds of CB, but I can't update yet because 1 of the plugins I need on my server hasn't been updated. [​IMG]
     
  13. Offline

    amplifier

    Great plugin!

    I wonder why noone has asked about that yet:
    Why is the Powered Minecart called "PoweredMinecraft"?

    This could lead to some confusion.


    Ah, and i have some suggestions:
    -add Squids to the monster list
    -add a feature to recognize what the metadata/damage of the block you recently broke was (that you can config for example green wool to drop brown wool)
    -add a feature to recognize the color of sheep you killed
    -add a feature to configure different drops for different tools used
    -add a feature to control what mob spawner was destroyed and will be placed (this is a really tricky one, i know)
     
  14. Offline

    deathdude202

    is it possible to change the ammount of what things drop?
     
  15. Offline

    amplifier

    Yea, just take a look at the example file:

    Ah, and i found another thing:
    Looks like Zombie Pigmen are handled as Zombies, those should be configurable separately.
     
  16. Offline

    TheMap

    Still getting errors, recommended CB build with permissions 2.0 and groupmanager running the latest drop blocks. This is what i get. Spamming all the console

    Code:
    [SEVERE] Could not pass event ENTITY_DEATH to BlockDrops
     
  17. Offline

    SirAzor

    theres an error in your properties file.
     
  18. Offline

    mrboese

    Code:
    2011-03-02 17:45:30 [SEVERE] Could not load plugins\BlockDrops.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:80)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:129)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:94)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NoSuchMethodException: com.Snowl.bukkit.blockdrops.BlockDrops.<init>()
        at java.lang.Class.getConstructor0(Unknown Source)
        at java.lang.Class.getConstructor(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:75)
        ... 8 more
    CraftBukkit build 590jnk
     
  19. same errors as in post of mrboese ;/
     
  20. Offline

    TheMap

    There is nothing in my properties files except a modfied skeleton drop
    Skeleton=0
    Skeleton;352:0.5
    Skeleton;352:0.5
    Skeleton;261:0.01
     
  21. Offline

    SirAzor

    make sure you have THIS version of blockdrops (as posted by crazy2be, post 275 a little above this)
    http://forums.bukkit.org/attachments/blockdrops-zip.1203/

    and the latest craftbukkit.
     
  22. Offline

    TheMap

    Even with that build it still has issues with ENTITY_DEATH
    Code:
    [SEVERE] Could not pass event ENTITY_DEATH to BlockDrops
     
  23. Offline

    JonReed

    I miss this addon and hope it gets fixed.[​IMG]
     
  24. Offline

    GameFAQsRolo

    It appears protected regions are once again dropping blocks (using crazy2be's update). For my test, I used WorldGuard 4.0 a1 on CB #493.
     
  25. Offline

    SimplisticBeing

    CB 493
    Group Manager 1.0 A2
    Ask if you need anything else..

    Code:
    22:27:21 [SEVERE] Could not load plugins\BlockDrops.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:80)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:129)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:94)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NoSuchMethodException: com.Snowl.bukkit.blockdrops.BlockDro
    ps.<init>()
    at java.lang.Class.getConstructor0(Unknown Source)
    at java.lang.Class.getConstructor(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:75)
    ... 8 more
     
  26. Offline

    Juze

    Any news on update? I've heard OP has been waiting on some Bukkit changes...
     
  27. Offline

    Euphoriant

    Check out DropBonus - It can do pretty much everything that BlockDrops does and is being updated frequently.

    I haven't given up on BlockDrops, because I do like the format and I think David had a good system going, I just hope he/someone else has time to work on it at some point in the future.
     
  28. Offline

    enkryptor

    Is it possible to alter drop depending on the tool used?
     
  29. Offline

    Scyfi

    Is it possible to add Lapis to a drop? not sure how the item number for that would work
     
  30. Offline

    enkryptor

    it's the same with all dyes actually, color is the one thing that differs
     
  31. Offline

    Juze

    @David Diaz : Are you ever going to update this anymore? I miss it.
     

Share This Page