How do I Remove an item from the hand. It should remove the item in my hand not inventory
on rightclick:
player is holding a firework star
remove regeneration from the player
remove slowness from the player
apply regeneration 1 to the player for 13 seconds
apply slowness 1 to the player for 5 seconds
heal the player by 0.5 hearts
message "&8[&4*&8] &7You have used &4Painkillers&7."
remove firework star from player
on rightclick:
player is holding a firework star
remove regeneration from the player
remove slowness from the player
apply regeneration 1 to the player for 13 seconds
apply slowness 1 to the player for 5 seconds
heal the player by 0.5 hearts
message "&8[&4*&8] &7You have used &4Painkillers&7."
remove firework star from player