|
Mechanic: Give Item From Target
|
|
## Description
|
|
===============================
|
|
|
|
|
|
|
|
Gives the caster an item while playing the pickup-item animation from the target entity or location when fakelooting is set to true.
|
|
Gives the caster an item while playing the pickup-item animation from the target entity or location when fakelooting is set to true.
|
|
|
|
|
|
Gives the caster an item from the target entity or location when fakelooting is set to false.
|
|
Gives the caster an item from the target entity or location when fakelooting is set to false.
|
|
|
|
|
|
Attributes
|
|
|
|
----------
|
|
|
|
|
|
|
|
| Attribute | Aliases | Description | Default Value |
|
|
|
|
|-------------|---------|-------------------|---------------|
|
|
|
|
| item | i | The item material (supports for mythicmobs item) | None |
|
|
|
|
| amount | a | The amount given | 1 |
|
|
|
|
| fakeLooting | | plays the pickup-item animation from the target | false |
|
|
|
|
|
|
|
|
------------
|
|
|
|
|
|
|
|
This mechanic was added in 4.12 MM
|
|
## Attributes
|
|
|
|
| Attribute | Aliases | Description | Default |
|
|
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
|
|
| item | items, i | The item material (supports for mythicmobs item) | |
|
|
|
|
| fakeLooting | dofakelooting, fl | plays the pickup-item animation from the target | true |
|
|
|
|
|
|
Examples
|
|
|
|
--------
|
|
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
```yaml
|
|
Skills:
|
|
Skills:
|
|
- giveitem{i=diamond_sword;a=1} @PIR{r=20} ~onSpawn
|
|
- giveitem{i=diamond_sword;a=1} @PIR{r=20} ~onSpawn
|
|
- ... |
|
```
|
|
\ No newline at end of file |
|
|
|
|
|
|
|
|
|
## Aliases
|
|
|
|
- [x] givefromtarget
|
|
|
|
- [x] giveitemsfromtarget
|
|
|
|
- [x] itemgivefromtarget |
|
|
|
\ No newline at end of file |