|
|
|
## Description
|
|
|
|
Drops a set of items or optionally a
|
|
|
|
[DropTable](/drops/DropTables).
|
|
|
|
|
|
|
|
|
|
|
|
## 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<!--type:Item-->|
|
|
|
|
| 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) |<!--type:Metaskill-->|
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
Example of dropping specific items.
|
|
|
|
```yaml
|
|
|
|
Skills:
|
|
|
|
- dropitem{i=diamond_sword,diamond} @self ~onDeath
|
|
|
|
- ...
|
|
|
|
```
|
|
|
|
The below example will drop a Diamond Sword and 5 Diamonds
|
|
|
|
```yaml
|
|
|
|
Skills:
|
|
|
|
- dropitem{i=diamond_sword,diamond 5} @self ~onDeath
|
|
|
|
- ...
|
|
|
|
```
|
|
|
|
##
|
|
|
|
Example of dropping items from a DropTable.
|
|
|
|
```yaml
|
|
|
|
Skills:
|
|
|
|
- dropitem{i=SkeletonKingDrops} @self ~onSpawn
|
|
|
|
- ...
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Aliases
|
|
|
|
- [x] drop
|
|
|
|
- [x] dropitems
|
|
|
|
- [x] itemdrop
|
|
|
|
|
|
|
|
|
|
|
|
<!-- LINKS -->
|
|
|
|
[metaskill]: /Skills/Metaskills
|
|
|
|
|
|
|
|
|
|
|
|
<!--TAGS-->
|
|
|
|
<!--tag:Item-->
|
|
|
|
<!--tag:Meta-Mechanic:Thenable--> |
|
|
|
\ No newline at end of file |