Description
Drops a set of items or optionally a DropTable.
Attributes
Attribute | Aliases | Description | Default |
---|---|---|---|
items | item, i | Items to drop. Can be a comma-separated list of items, or a DropTable. You can specify an amount by putting a space and a number after the item name. | NONE |
naturally | natural, n | Whether the items should be dropped naturally | true |
onDropSkill | onDrop, then | Metaskill to be execute when the item drops. Inherits the dropped item entity as the target(s) |
Examples
Example of dropping specific items.
Skills:
- dropitem{i=diamond_sword,diamond} @self ~onDeath
- ...
The below example will drop a Diamond Sword and 5 Diamonds
Skills:
- dropitem{i=diamond_sword,diamond 5} @self ~onDeath
- ...
Example of dropping items from a DropTable.
Skills:
- dropitem{i=SkeletonKingDrops} @self ~onSpawn
- ...
Aliases
- drop
- dropitems
- itemdrop