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 and take the item from the player afterwards!
We are making use of the skill mechanics in-line capabilities to keep things clean and in 1 place!
RegenBuff:
Id: FEATHER
Display: '&dRegenerative Feather'
Skills:
- skill{s=[
- potion{type=REGEN;duration=200;level=4}
- takeitem{i=RegenBuff;a=1} @self
]} @self ~onUse