So I am an owner of a server (actually my server, lol), and I have a dog(wolf). I don't want players to attack it, so I want to make a script, so when a player hit the dog, it heals it and kicks the player.
This is my current code:
There is no error but it doesn't works (I have a kick attacker due to ... after it)
And I named the wolf so I got a nametag, renamed it in an anvil and right clicked with it on the wolf.
So.. How can I do this? Thanks!
EDIT: Solved on Discord.
This is my current code:
Code:
on damage:
if attacker is player:
if entity is wolf:
entity's name is "Owner Dog!"
And I named the wolf so I got a nametag, renamed it in an anvil and right clicked with it on the wolf.
So.. How can I do this? Thanks!
EDIT: Solved on Discord.
Last edited: