[MECH] ModDrop v0.6 - Create custom drops [1000]

Discussion in 'Inactive/Unsupported Plugins' started by NoOneX, Jun 26, 2011.

  1. Offline

    NoOneX

    ModDropPlugin - Create custom drops:
    Version: v0.6

    This plugin allows you to create custom drops. For examle: Glass drops glassblocks if destroyed.
    In the configuration file you can specify the drops, e.g. Stone drops gravel.

    Features:
    * Create custom drops and specify the damage value
    * Use multiple drops (e.g. stone drops cobblestone and gravel)
    * iConomy 5.0.1 support - Get money if you break a block (configurable)
    * Monster spawn if a block has been destroyed (configurable)
    * Specify the amount of the dropped item

    - * A range: 1-3
    * Multiple values: 1,4,6
    * The "iConomy drop" supports only a normal value: e.g. 5 or 2.23
    - Reload the configuration file without restarting the server
    - Multi-World support
    - Lightning and explosion "drops"
    - Tool conditions: Specify the tool or block you want to be used to mine blocks

    Download <Edit by Moderator: Redacted mediafire url>
    Source Code on GitHub

    Configuration:
    Enable/Disable custom drops:
    Code:
    moddrop_on: true
    Modify the drops:
    Code:
    droplist: block:20:20:1 block:4:4:2@world:world
    Syntax:
    Code:
    droplist: Type:DestroyedBlockId:AdditionalParameter:Amount[@key:value;[key:value]]
    The custom drops are seperated by spaces. If the amount is 0 nothing will be dropped. Add drops with the same "DestroyedBlockId" to use multiple drops. The conditions [@key:value;key:value] are optional.

    The following types are supported:

    Show Spoiler
    * block, Syntax:
    Code:
    droplist: block:DestroyedBlockId:DroppedItemId(DamageValue):Amount
    - * The damage value is optional.
    - monster, Syntax:
    Code:
    monster:DestroyedBlockId:CreatureType:Amount
    - icon, Syntax:
    Code:
    icon: DestroyedBlockId:0:Amount
    - explosion, Syntax:
    Code:
    explosion:DestroyedBlockId:Strength:Amount
    - lightning, Syntax:
    Code:
    lightning:DestroyedBlockId:Strength:Amount
    * Be careful with the strength ;)



    The following conditions are supported:

    Show Spoiler
    * world:worldname

    - * Example: Glowstone drops glowstone dust only in the nether.
    - damage:damagevalue
    * Example: Only black wool spawns a sheep.
    - tool:blockOrToolInHandId
    * Example: Diamonds aren't dropped if you are using a iron pick and lower picks. You get only diamonds using a diamond pick (e.g get it from an admin or other player). Configuration strings: block:56:264:1-3@tool:278 block:56:264:0. The second parameter is needed because if no condition apply the normal drop is not cancelled (You can still use the iron pickaxe).



    Supported CreatureTypes:

    Show Spoiler
    * Chicken
    * Cow
    * Creeper
    * Ghast
    * Giant
    * Monster
    * Pig
    * PigZombie
    * Sheep
    * Skeleton
    * Slime
    * Spider
    * Squid
    * Zombie
    * Wolf



    Commands:
    *
    Code:
    /moddrop
    Enable/Disable custom drops
    *
    Code:
    /refreshmoddrop
    Reload the configuration-file


    Changelog:
    Version 0.6:
    * Added a tool condition to fix the tool exploit mentioned by Haliotro
    * Updated dependencies


    Version 0.5:
    * You can specify the damage value of the drops now.
    * Added a ligthning drop (inspired by OtherBlocks)
    * Improved conditions (the usual drop is not cancelled if no condition apply)
    * Added a damage value condition
    * Translated the german messages into english (thanks to khamseen_air)


    Older versions:

    Show Spoiler
    Version 0.4:

    * Added multi-world condition and an optional parameter to the configuration-string
    * Added explosion effect (inspired by OtherBlocks)
    * Updated the dependencies, plugin works with the recommended build #953
    * It is possible to specify the amount (a range or multiple amounts)


    Version 0.3:
    * Added iConomy 5.0.1 support
    * Added monster spawning if a block has been destroyed
    * Changed the configuration syntax

    Version 0.2:

    * Changed the name from "GlassDrop" to "ModDrop"
    * Added multiple drops
    * Fix: The Plugin cancels the usual drop
    * Fix: The property "moddrop_on" is saved properly now

    Version 0.1:

    * Added basic things




    TODO:
    * Cancel the usual drop
    * Multiple drops (e.g. stone drops cobblestone and gravel)
    * Monster spawn if a block is destroyed
    * iConomy support (get some money by destroying a block)
    * Permission support
    * Improve commands
    * Multiworld support
    * Improve the multiworld support
     
    Last edited by a moderator: Nov 27, 2016
  2. Offline

    DrAgonmoray

    ..Funny how you make 'GlassDrop' less than 24 hours after I make 'GlassReturn'
    I'm aware yours does different stuff, but seriously, new name?
     
  3. Offline

    SystexPro

    Nice Plugin :p
     
  4. Offline

    NoOneX

    I will think about it, perhaps changing to "CustomDrops".
     
  5. Offline

    DrAgonmoray

    Sounds good. :)
    Nice work btw.
     
  6. Offline

    ChrizC

  7. Offline

    NoOneX

    I will change it to "ModDrop" in v0.2. Multiple Drops are supported in the dev-version (on GitHub: version0.2-Branch), but I have to figure out how to cancel the normal drops.

    Thanks for the feedback.

    NoOneX
     
  8. Offline

    NoOneX

    v0.2 is out. The changelog:
    • Changed the name from "GlassDrop" to "ModDrop"
    • Added multiple drops
    • Fix: The Plugin cancels the usual drop
    • Fix: The property "moddrop_on" is saved properly now
    Have fun.

    NoOneX
     
  9. Offline

    Zarius

    Hmm.. I'm can't remember the exact names but there have been glass drop plugins around for months now - many with similar names :D

    @NoOneX

    ModDrop sounds cool though - getting hard to come up with an alternate drop plugin name I imagine :D
     
  10. Offline

    NoOneX

    v0.3 released!
    Changelog:
    • Added iConomy 5.0.1 support
    • Added monster spawning if a block has been destroyed
    • Changed the configuration syntax
    Thank you. You're right, it isn't easy to find a new name. And there are so many drop plugins released ^^

    NoOneX
     
  11. Offline

    Plague

    Update the plugin to latest recommended build and change the title accordingly.
    Failure to do so will result in this moving to INACTIVE section.
     
  12. Offline

    NoOneX

    v0.4 released. Have fun!

    Changelog:
    Version 0.4:
    • Added multi-world condition and an optional parameter to the configuration-string
    • Added explosion effect (inspired by OtherBlocks)
    • Updated the dependencies, plugin works with the recommended build #953
    • It is possible to specify the amount (a range or multiple amounts)
     
  13. Offline

    khamseen_air

    What does "ModDrop ist nun an (geandert durch khamseen_air)." mean? It shows up when I use the command /moddrop to try and enable the drops.
     
  14. Offline

    NoOneX

    My bad, I have not translated the enable/disable messages :D (btw. It's german and means: "ModDrop is enabled now (changed by khamseen_air)"). Be happy with v0.5.

    Changelog:
    Version 0.5
    • You can specify the damage value of the drops now.
    • Added a ligthning drop (inspired by OtherBlocks)
    • Improved conditions (the usual drop is not cancelled if no condition apply)
    • Added a damage value condition
    • Translated the german messages into english (thanks to khamseen_air)
    NoOneX
     
  15. Offline

    khamseen_air

    Haha excellent, thank you! :)
     
  16. Offline

    Kira0tori

    Hello ! Thanks for your plugin.
    I have some trouble to configure the plugin with the correct syntax.
    My config file is like that for now :
    Code:
    moddrop_on: true
    droplist: block:20:20:1
    Can someone show me the config file fore glass being drop and creeper dropping between 3 and 6 of gunpowder ??
    Thanks a lot !
     
  17. Offline

    Haliotro

    I have been using this mod on my server and it is awesome! The customization that it offers to unique world scenario is incredible.

    Just today, one of the players discovered an exploit through it though. The drop rates do not take into effect tools. Thus, you can now punch diamonds or any other resource to get the drops. Would you be willing to patch this?

    P.S. I use your mod in both CB 1000 and CB 935 and it works flawlessly other than the tool exploit.
     
  18. Offline

    NoOneX

    I will add a tool condition to fix the tool exploit, if I am back home (next monday). I haven't access to my pc here.
    @Kira0tori
    It isn't possible to modify mob drops yet. The config(the glass drop) is ok as far as I can know.

    Sorry for the inconvenience,
    NoOneX
     
  19. Offline

    Jacobfish

    Would you also be able to add the coding for iconomy? thanks.

    EDIT: should I be looking in the Iconomy thread instead?
     
  20. Offline

    NoOneX

    Version 0.6 released!

    Changelog:
    Version 0.6:

    • Added a tool condition to fix the tool exploit mentioned by Haliotro
    • Updated dependencies
    NoOneX
     
  21. Offline

    Shrockerharder

    Dude, i have no idea how to make the mobs drop monies!!!!! you should at least put some examples...
     
  22. Offline

    Raycrash

    config exampel would be nice really want to use this :)
     
  23. Offline

    JayJayJay1

    I can't find the config file...
    I downloaded it, and started the server, but no file was generated

    Found it after Restarting my PC. Seemed to be an Explorer.exe Error.
    Strange :/

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  24. Offline

    KoryuObihiro

    Any way to randomize drops with this plugin? If not, consider this a feature request. Perhaps you could use a system of weight for each block, represented by an int?
     
  25. Offline

    NoOneX

    It is not possible to randomize drops. You can only say you want e.g. 0-2 drops glass from a glass block, the probability will be 33% each. But I like the idea of a weight system and I think I will implement it.
    I am busy with school the next weeks, it is unlikely that I will find some time to put new features in. Sorry for the caused inconvenience.

    I really appreciate the feedback,
    NoOneX
     
  26. Offline

    KoryuObihiro

    Gotcha. :)
     
  27. Great Job Dude ! Please Savec My world System, support Permission \o/

    Thanks !!!
     

Share This Page