|
|
|
**Difficulty: Beginner**
|
|
|
|
|
|
|
|
This guide will help you create an item which can be right clicked to give the player a effect, and then take the item from the player.
|
|
|
|
|
|
|
|
This is a quick and simple thing to do! This example will give the player a [potion effect](/../../../MythicMobs/-/wikis/skills/mechanics/potion) and [take the item](/../../../MythicMobs/-/wikis/skills/mechanics/takeitem) from the player afterwards!
|
|
|
|
|
|
|
|
We are making use of the [skill mechanics](/../../../MythicMobs/-/wikis/skills/mechanics/skill) in-line capabilities to keep things clean and in 1 place!
|
|
|
|
```yaml
|
|
|
|
RegenBuff:
|
|
|
|
Id: FEATHER
|
|
|
|
Display: '&dRegenerative Feather'
|
|
|
|
Skills:
|
|
|
|
- skill{s=[
|
|
|
|
- potion{type=REGEN;duration=200;level=4}
|
|
|
|
- takeitem{i=RegenBuff;a=1} @self
|
|
|
|
]} @self ~onUse
|
|
|
|
``` |
|
|
|
\ No newline at end of file |