NOTE: use of maven repository and other dev related information is now available at its github page.

Some of my plugins (such as MergedMob, TokenEnchant), which may drop a large number of items on the ground.  Based on users request, those plugins will be updated to have the option to significantly reduce the items on the ground using a special dropped item.

This plugin can now handle any dropped Items.  There are three different merging mode:

[color=#ececec][size=2][font=Verdana, Arial, sans-serif][color=#8d8d8d][font=Arial]# MergeMode[/font][/color][/font][/size][/color]

[color=#ececec][size=2][font=Verdana, Arial, sans-serif][color=#8d8d8d][font=Arial]# MAX : only max stack items will be merged, (default)[/font][/color][/font][/size][/color]

[color=#ececec][size=2][font=Verdana, Arial, sans-serif][color=#8d8d8d][font=Arial]# MAX_VANILLA : items (including non max stack items) can only merged into a max stack item[/font][/color][/font][/size][/color]

[color=#ececec][size=2][font=Verdana, Arial, sans-serif][color=#8d8d8d][font=Arial]# ALL : merge all.[/font][/color][/font][/size][/color]

[color=#ececec][size=2][font=Verdana, Arial, sans-serif][color=#8d8d8d][font=Arial]MergeMode: MAX[/font][/color][/font][/size][/color]


Items are merged into one dropped item, and when you pick it up merged items are expanded into your inventory (or other inventory such as a hopper).  If expanded items do not fit into the inventory, the dropped item will be left on the ground but the number of merged item will be updated to reflect the remainder.

This plugin provides the basic Item Pickup behaviour to handle those special items.

The plugin comes with a command to test the feature.  You can spawn an item and you can see how the item is actually representing a large amount of the material by picking it up.  You can spawn an item as
/maxstack spawn WOOL 3000
, for instance.

  config.yml

APIs:
Is you wish to utilise max stack items in your plugin, you can use publicly released APIs (whose javadoc is now included in the distributed .zip file).

  APIs