Hey everyone,
For context, I am trying to make an item that summon's a wolf. Once the wolf dies the item can be used again.
However I am running into issues, when the wolf dies I need to be able to remove a tag from its owner, or message the owner, or if you have any answers how I can relate the wolf back to the player on death I suspect I can take it from there!
For context, I am trying to make an item that summon's a wolf. Once the wolf dies the item can be used again.
However I am running into issues, when the wolf dies I need to be able to remove a tag from its owner, or message the owner, or if you have any answers how I can relate the wolf back to the player on death I suspect I can take it from there!
Code:
on rightclick holding a emerald:
if name of event-item is "&eGrowling Egg":
if {wolf.%player%} is true:
send "&cWolf has already been summoned."
if {wolf.%player%} is not set:
set {wolf.%player%} to true
spawn a wolf at player
#tame the last spawned entity to the player
##^requires SkQuery, so ignore for now.
on death of wolf:
#clear {wolf.%player%} from victim's owner
##this line doesn't exist. Ideas?