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


Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files

Bukkit