Mechanic
dropitem
Drops an item or droptable
Aliases
dropdropitemsitemdrop
Configuration Fields (2)
| Name | Type | Default | Description |
|---|---|---|---|
| items item, i | PlaceholderString | — | The items/droptable to drop |
| onDrop then | Optional<Skill> | — | Skill to execute when the item is dropped |
Examples & Notes
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
- ...
Universal Mechanic Options
- Author:
- Ashijin
