Solved If entity's name tag is..

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Scholler

Active Member
Aug 6, 2018
130
9
0
24
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:

Code:
on damage:
    if attacker is player:
        if entity is wolf:
            entity's name is "Owner Dog!"
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.
 
Last edited:
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:

Code:
on damage:
    if attacker is player:
        if entity is wolf:
            entity's name is "Owner Dog!"
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.
can you send here the solution?
 
Status
Not open for further replies.