DropSwap
Kalem's
DropSwap
Kalem's DropSwap plugin is a Bukkit server mod that monitors creature deaths and block breaking, looks at the drops, then swaps items and quantity.
____
Updated for Bukkit 1.5.1 R0.1
Tested and working with Bukkit-1.5.2-R0.1 (Build #02754)
____
Features:
- Select creatures/blocks to monitor
- Specify drops to monitor
- Swap existing drops (Have spiders drop web instead of string!).
- Add new drops (Have zombies drop feathers again!).
- Remove drops (No more rotten flesh!).
- Give a range for the minimum and maximum number of additional/swapped items to drop.
- Set the chance for an add/swap/remove attempt to be successful.
____
Simple to set up:
After putting dropswap.jar in you server's plug-in folder, reload your server to create the default config.yml file. By default, DropSwap will add feathers to Zombie drops 50% of the time, and will turn Spider drops of string into Spider drops of web.
To modify DropSwap, just edit the config.yml file in the plugins/DropSwap folder using the following options:
LOGGING SETTINGS
- INFO - Show all information to the console
- SEVERE - Reduce logging to only errors (default)
[Must be upper case]
PERMISSION SETTINGS
PERMISSIONS: REMOVED! Causing too many complications and kept me from keeping plug-in up to date.
DROPSWAP SETTINGS
- ENTITY|MATERIAL:SUB, ACTION: <DROP ITEM>:SUB, <SWAP ITEM>:SUB, <CHANCE>, <MIN>, <MAX>
- ENTITY: the string name of the monster/creature/animal to modify (required)
(use ALL for ENTITY to include all creatures including farm animals, pets, etc)
NOTE: ENTITY must be the string name of the creature
(use ANY(no sub-type) for MATERIAL to include any block including leaves, grass, flowers)
NOTE: MATERIAL can be the string name or the integer ID of the block
- SUB: Separated from the blocks by a COLON(:), the SUB-ID allows selection of sub-types (optional - integer only)
- ACTION: choose from additem|swapitem|removeitem (required)
- DROP ITEM: original item that entity drops (required for swapitem|removeitem)
- SWAP ITEM: item that is swapped for original item (required for additem|swapitem)
- CHANCE: a floating number (decimal required) for chance that add/swap/remove will occur (required if using max or min/max)
- MIN: the minimum number of swap items to allow (must come before max if used, 1 is min if not used)
- MAX: the maximum number of swap items to allow (required if min is used, can be equal to min)
____
Config.yml Example
dropswap:
- ALL, additem, GOLD_NUGGET, .10
- SPIDER, swapitem, STRING, WEB, 1.0, 1
- ZOMBIE, additem, FEATHER, .50
- ZOMBIE, removeitem, ROTTEN_FLESH, 1.0
- SQUID, additem, RAW_FISH, 0.8
- GLASS, additem, GLASS, 1.0
- LOG:2, swapitem, 17:2, 17:3, 0.5
____
Future:
- Suggestions welcome
____
I'd love to hear from you
Kind and constructive feedback is appreciated. Tickets will be responded to as soon as I can. No plug-in compatibility has been tested.
____
Cheers,
- Kalem
Hello. Great plugin, but i have some problems witch his work:
I can't configurate mobs from thaumcraft:
but i take the error on loading:
and error log:
How to add a few items?
Example:
- ZOMBIE, swapitem, 367, 288, .40 - ZOMBIE, swapitem, 367, 260, .50 - ZOMBIE, swapitem, 367, 334, .30 - ZOMBIE, swapitem, 367, 256, .40 - ZOMBIE, swapitem, 367, 339, .20
does not work.
works fine with 1.8.0 :) thx ^^
tried on gravel.. didnt like very much.
you now cant place gravel.. it just spews out the drop.
Might have fixed added line ALL, removeitem, STONE also it took a few kills to I guess register that that was an item they dropped to stop it so myabe this isnt all instant Nice mod though really good.
Okay so I'm using 1.7.2 R0-3 with mcpc. I have mcmmo factions installed
the weird thing that is happening though the plugin works really well. I made zombies drop bottles of enchanting and for some reason all mobs I edit drop stone.
I have these lines in config file after dropswap: - ZOMBIE, additem, 384, .75, 1, 2 - ZOMBIE, removeitem, 367
I tried adding a remove stone line but it doesnt help any ideas
Thank you!
I'm using bukkit 1.6, and it appears to be running fine. I'm having an issue with the WITHER entity though, it doesn't appear to be working with additem, or swapitem;
Code; - WITHER, additem, 354, 1.0 - WITHER, swapitem, 399, 354, 1.0
Any help would be appreciated :)
Log:
2013-07-03 02:37:37 [INFO] [DropSwap] - entity: WITHER 2013-07-03 02:37:37 [INFO] [DropSwap] - location: HIDDEN 2013-07-03 02:37:37 [INFO] [DropSwap] - cause: ENTITY_ATTACK 2013-07-03 02:37:37 [INFO] [DropSwap] - killer: HIDDEN 2013-07-03 02:37:37 [INFO] [DropSwap] - originalItemStackList.size: 1 2013-07-03 02:37:37 [INFO] [DropSwap] - ItemStack{NETHER_STAR x 1} 2013-07-03 02:37:37 [INFO] [DropSwap] - checking for ALL mobs 2013-07-03 02:37:37 [INFO] [DropSwap] - checking for WITHER 2013-07-03 02:37:37 [INFO] [DropSwap] onEntityDeathEvent - UPDATED 2013-07-03 02:37:37 [INFO] [DropSwap] - updatedItemStackList.size: 0 2013-07-03 02:37:37 [INFO] [DropSwap] onEntityDeathEvent - COMPLETE
Hello All,
Thank you to those that continue to enjoy DropSwap. The current version 3.1.0 that I updated for Bukkit 1.5.1 is working fine for Bukkit-1.5.2-R0.1 (Build #02754).
I really love this plugin, I'm looking forward to an update!
@QuesterPro
Hello. Thanks for the interest in the plug in. I like the suggestion, I'll have to see how I can implement it into the next build. The plug in will need to be updated for 1.5.2, so I'll be in it anyway.
CORRECTION: DropSwap did not need to be updated between Bukkit 1.5.1 and Bukkit-1.5.2-R0.1 (Build #02754). No changes have been made.
I'm concerned about making the YML file too complicated (if it is not too late - haha).
Hey Kalem, you have done a FANTASTIC job with this plugin! I love it! I use it on all my servers!
I have a suggestion! :D
When using "swapitem" being able to have multiple swaps with difference chances.
EXAMPLE 1:
- ZOMBIE, swapitem, ROTTEN_FLESH, FEATHER, .50, POISONOUS POTATO, .50
So there's a 50% chance to swap the rotten flesh for either a feather or a poisonous potato.
EXAMPLE 2:
- SKELETON, swapitem, BONE, BOW, .25, BONE .50, 2, 4
25% chance to swap 'bone' for a bow, and a 50% chance to swap it for 2 - 4 bones.
Or even when using "additem" you could do the same?
EXAMPLE:
- ENDERMAN, additem, DIAMOND, .10, GOLD_INGOT, .20, 1, 2, IRON_INGOT, .30, 2, 3
10% chance to drop a diamond, 20% chance to drop 1-2 gold ingots, and 30% chance to drop 2-3 iron ingots.
Reasons:
You COULD, say, do this:
- ENDERMAN, additem, DIAMOND, .10
- ENDERMAN, additem, GOLD_INGOT, .20, 1, 2
- ENDERMAN, additem, IRON_INGOT, .30, 2, 3
But then you could get luck and land all 3 chances and get 1 of each.
But I would like to be able to ONLY give them 1 of the 3 with different odds per drop.
Thanks for your time mate!
~ Quester Pro
Don I see... is it that difficult to make a dev build for 1.5.2 .. im not a java coder so im unclear on that.. there are many regions of the world where MC does ask for updates per version and all the regional servers upgrade as soon as possible.
Thanks though.. I am looking forward to when I get to try the plugin.
@Coffeebuzz77
When I start Minecraft, it does not ask me if I want to upgrade my game. Therefore, myself and the players that I support on my server are not running 1.5.2. I/We are running 1.5.1. When I need to fix DropSwap for my server and players, I'll do that and then push the update here.
Thanks.
i dont understand what you mean by client not forcing the update? all clients have to have 1.5.2 to run on the current servers. that are 1.5.2
@Coffeebuzz77
Sorry for the confusion. No, Drop Swap is working only for 1.5.1.
@don97322
Does that mean it is working in 1.5.2 client?
Can you show me an example of what should keep any mobs from dropping any golden armor/weapons/tools I posted my config below .. from what I read it should work but it doesnt.
Thanks
@Dafmak
Hello. Thank you for your interest in DropSwap.Here is what I have tested to replace the gravel and flint drops from destroying gravel:
- GRAVEL, swapitem, GRAVEL, SMOOTH_BRICK
- GRAVEL, swapitem, FLINT, SMOOTH_BRICK
Go to http://www.minecraftwiki.net/wiki/Data_values for more information about data values.
@Coffeebuzz77
Hello. Thank you for your interest in DropSwap. The current build supports 1.5.1. I've not started working on 1.5.2 since the client program is not pushing the upgrade.
I'll try to take a look and see, but until the client gets updated, I probably won't update this addon.
I am trying to change the drop of gravel to stone brick but it is no working can someone give me the correct line to do this.
Is this working with 1.5.2 for anyone. I cannot get mobs to stop dropping golden armor.
heres my config loglevel: SEVERE permissions: false dropswap: - ALL, removeitem, 314 - ALL, removeitem, 315 - ALL, removeitem, 316 - ALL, removeitem, 317 - ALL, removeitem, 283
I have also tried it this way loglevel: SEVERE permissions: false dropswap: - ALL, removeitem, GOLD_CHESTPLATE - ALL, removeitem, GOLD_LEGGINGS - ALL, removeitem, GOLD_HELMET - ALL, removeitem, GOLD_BOOTS - ALL, removeitem, GOLD_SWORD
but skeletons and zombies are still dropping golden gear regardless.. any ideas ?