I have been playing around with this error for a while, and have come to the conclusion that I do not know how to make this work.
Question, how do i make it remove a specific player's head from inventory on an event such as right clicking the head/skull?
Here is what I have right now:
Question, how do i make it remove a specific player's head from inventory on an event such as right clicking the head/skull?
Here is what I have right now:
code_language.skript:
on rightclick holding a player head:
if name of player's tool contains "Head":
remove 1 ("Goldblock" parsed as offline player)'s head from player's inventory
play "EAT" to player at volume 1
apply potion of regeneration 2 to the player for 5 seconds
apply potion of swiftness 1 to the player for 3 seconds