[INACTIVE][MECH] DropChanger v1.21 - Change drops and set probabilities [617]

Discussion in 'Inactive/Unsupported Plugins' started by Kaimane, Mar 25, 2011.

  1. Offline

    Kaimane

    DropChanger - Drop Changer:
    Version: v1.21

    Allows you to change the drop amount and item type, which is going to be dropped. Also it allows to set probabilities if an entity/block is allowed to drop more than one type of item.

    If there is no droplist.txt in your server directory and empty one will be created. Each line of the file represents drop change for an entity. The format of the line has to be like the following:

    ENTITY_NAME:MIN:MAX:TOOL:ITEM1,ITEM2,...,ITEMn or
    ENTITY_NAME:MIN:MAX:TOOL:ITEM1,ITEM2,...,ITEMn:CHANCE1,CHANCE2,...,CHANCEn

    ENTITY_NAME = Cow,Sheep,Pig,Chicken,Squid,Zombie,Skeleton,PigZombie,Spider,Creeper,Slime,Ghast,Wolf
    MIN = Minimum number of items to be dropped
    MAX = Maximum number of items to be dropped
    TOOL = WOOD_SPADE,STONE_AXE,....,ALL
    ITEM1,ITEM2,...,ITEMn = WOOD,LOG,FEATHER,... (List in link below)
    CHANCE1,CHANCE2,...,CHANCEn = Priorities for each item

    Download DropChanger (includes a sample droplist.txt and droplist-blocks.txt)
    DropChanger-1.21.zip

    Old Versions
    DropChanger-1.2.zip
    DropChanger-1.12.zip

    Examples (open)

    If you want a Cow to drop 0-5 items (in this case Leather) on death and every 1000th item is a Saddle you add the line:
    Code:
    Cow:0:5:ALL:LEATHER,SADDLE:999,1
    If you want to have a pig drop 64 golden apples
    Code:
    Pig:64:64:ALL:GOLDEN_APPLE
    Zombie drops 2-6 items (Feather,Sand,Lava Bucket) with equal probability
    Code:
    Zombie:2:6:ALL:FEATHER,SAND,LAVA_BUCKET
    Spider drops 1 String with a 75% probability
    Code:
    Spider:1:1:ALL:NOTHING,STRING:25,75
    Grass block drops 1 Grass
    Code:
    GRASS:1:1:ALL:GRASS
    Dirt drops different amounts of dirt if you mine it with different types of spades. (Last line is
    not needed, because if no valid tool is found in the list the standard drop will be restored)
    Code:
    DIRT:8:8:WOOD_SPADE:DIRT
    DIRT:16:16:STONE_SPADE:DIRT
    DIRT:32:32:IRON_SPADE:DIRT
    DIRT:32:32:GOLD_SPADE:DIRT
    DIRT:64:64:DIAMOND_SPADE:DIRT
    DIRT:1:1:ALL:DIRT
    



    Item List: http://javadoc.lukegb.com/Bukkit/d7...bukkit.html#ab7fa290bb19b9a830362aa88028ec80a


    Features:
    • change drop amount (set min/max)
    • change drop item/items
    • set drop probabilities for each item
    • drops for blocks & mobs
    • tools affect drops
    ToDo:

    • add block drops (mobs only at the moment)
    • add minimum drop amount
    • Wool color/Log type differentitation
    • Damaged by blocks (Lava/Fire/...)
    Changelog:
    Show Spoiler

    Version 1.21
    • Added file exception messages
    Version 1.2
    • 1.4 Support (example: Wolf drop can be edited now)
    • Block drops can now be changed
    • Tools can affect drops now
    Version 1.12

    • Fixed exception problem
    • NOTHING will drop nothing
    Version 1.11
    • Fixed NO VALID MATERIAL warning
    Version 1.1
    • Minimum item drop added
    Version 1.0
    • Initial plugin release
     

    Attached Files:

  2. Offline

    Joey Clover

    Nice plugin. Simple but effective, I like it.
     
  3. Offline

    Kaimane

    Version 1.1 - Added minimum drop amount for each mob
     
  4. Offline

    Ruinheart

    I have Version 1.1 and in my server it keeps saying INVALID DROP MATERIAL, but all the drops are working. bug?
     
  5. Offline

    Kaimane

    I'll check it out tomorrow, well today
     
  6. Offline

    Greylocke

    Seems like this plugin and OtherBlocks are very similar.
     
  7. Offline

    Kaimane

    Ok, I think i fixed the warning. Now it should only occur when there is an error and it tells you the wrong material you entered.

    Version 1.11- Fixed warning message
     
  8. Offline

    Sol

    Looks like an excellent plugin.

    Throws up errors on server start using build 556.

    Could not load plugins\DropChanger.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:60)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:159)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:107)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
    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.io.FileNotFoundException: Jar does not contain plugin.yml

    ~Sol
     
  9. Offline

    Kaimane

    Yeah, sorry forgot to add something in the jar :). The new version also adds a droplist-blocks.txt, which has no use at the moment. I am working on that.

    Version 1.12 - Exception fixed
     
  10. Offline

    Plague

  11. Offline

    Kaimane

    Version 1.2
    • 1.4 Support (example: Wolf drop can be edited now)
    • Block drops can now be changed
    • Tools can affect drops now
     
  12. Offline

    GuavaT

    Possible to make cause of death affect drops? Like a pig killed by lava or fire would drop cooked pork?
     
  13. Offline

    Kaimane

    It is not possible at the moment, because I had some problems with the EntityDamagedByBlockEvent, but I'll try to include that in the next version.
     
  14. Offline

    Momo5000

    i have craftbukkit 617 and your config file nothing changed yet and i get a error.

    2011-04-03 14:17:10 [INFO] DropChanger: FILE EXCEPTION

    i have just your plugin and the latest recommended bukkit v.
     
  15. Offline

    GuavaT

    yeah i have the same problem so i'm waiting till he has a fix
     
  16. Offline

    Kaimane

    Version 1.21

    • Added file exception message
    Hi, I do not know what the problem is at the moment, but I now added the exception that java throws. I meant to do that earlier, but forgot it. If the new message doesn't help, please post it here again, so I can look into it.
     
  17. Offline

    craftopia.net

    Anything special to get it to work in the Nether? I cannot get pigzombies to drop anything. Everything else works great tho! Thanks :)
     
  18. Offline

    Kaimane

    PigZombies should work.

    Example: PigZombie:1:1:ALL:OBSIDIAN,NOTHING:75,25

    The plugin is case sensitive at the moment, so it won't register "Pigzombie", "pigzombie" or "pigZombie". That's the only thing I can think off at the moment
     
  19. Offline

    Allurea

    I'm having an error come up in my server console, "DropChanger: INVALID LINE FORMAT" and it keeps repeating like once a minute. I have the newest CB build 617, and 1.21 DropChanger.
    I'm assuming its from editing the droplist, the "Chances" to be exact..
    Here is what I've got in my droplist.txt

    Cow:2:3:WOOD_SWORD:SADDLE,LEATHER:10,30
    Skeleton:1:4:ALL:BROWN_MUSHROOM,PUMPKIN,BOW,BONE,RAW_FISH:6,1,1,10,8
    Spider:1:3:ALL:STRING,COAL:8:2

    I couldn't find how I should have the Chances, I've tried different formats like 100,600,100,900,800 for the skeletons like I originally saw for the Cows. It was working fine before I tried adding the Chances. I just want the some of the drops (like pumpkin and bow) to be more rare than the rest..
    It does look like the drops still work as far as I can tell, I'm just concerned about the console getting spammed by the "ILF" everytime something dies.
    Thanks in advance for any advice.

    -------------
    Oh jeeze, I found my error, I had tried adding some text under the first line, with // to keep it from interfering, but alas, I'm still a bit noobish when it comes to this. I removed the stupid lines I added and the error is gone. Ha! Imagine that. I'm so embarassed.
    I would still like to know more information on how I can manipulate the chances more though, if you don't mind.
     
  20. Offline

    hofec

    Hi, awesome plug man !

    I have one suggestion .. can u please add into your mob list a Giant ? :p thank you so much in advence :D

    PS: I think PigZombies doesnt work in 670 .. i make sure .. capitals P and Z.
     
  21. Offline

    Voidi

    this is an Plugin with manifold capabilities, awesome

    EDIT: i want to give WOOl from sheeps only to Players if the cut them with their bare hands
    what word i must write down for the pure hands with no item selectec?
     
  22. Offline

    MizLiv

    Update for CB Build 674 please?
     
  23. Offline

    Qzzrbl

    GLOWSTONE:0:0:ALL:NOTHING

    Aaaand glowstone is still dropping glowstone dust.

    Why is this?
     
  24. Offline

    RobotGymnast

    Would it be possible to add support for multiple tools? Something like what DropEdit has, but for both mobs AND blocks. The ALL tool would have become the EVERYTHING_ELSE tool, though, to avoid annoyingly long config files.
     
  25. Offline

    abaldwin11

    I only want to change what a Ghast drops, which I got working great. But my server log is getting spammed because of what people mine. Do I need to create a full list for the droplist-blocks? If so that will take forever to keep getting the pop up of:
    2011-04-18 11:11:43 [INFO] DropChanger: INVALID LINE FORMAT (BLOCKS)
    2011-04-18 11:11:43 [INFO] DropChanger: INVALID LINE FORMAT (BLOCKS)
    2011-04-18 11:12:13 [INFO] DropChanger: INVALID LINE FORMAT (BLOCKS)
    2011-04-18 11:12:13 [INFO] DropChanger: INVALID LINE FORMAT (BLOCKS)
    Any help would be AWESOME!
     
  26. Offline

    Plague

    considered inactive
     

Share This Page