Solved How do you certain mob peaceful to a certain player, and how do you give mobs swords

  • 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.

CormanYT

Active Member
Jan 6, 2018
122
5
18
Skript Version (do not put latest): I think Skript 2.2 (dev35/36c)
Skript Author: Bensku
Minecraft Version: 1.12.2
I want to make it so mobs do not hurt or target a certain player, but they attack every other player. Also, how do you give mobs swords?
 
Last edited:
an example for equip
code_language.skript:
spawn a zombie at location of the player
set tool of last spawned zombie to iron sword

code_language.skript:
on entity target:
    if "%entity's target%" is "player name":
        cancel event
 
Status
Not open for further replies.