I need help :)

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

BoxMiners

Member
Jul 19, 2022
47
0
6
18
upload_2022-8-21_9-18-37.png

command /npc [<text>] [<entity>]:
usage: &c/npc <prefix> <mob>
permission: npc.admin
permission message: &cError! You don't have access to that command!
trigger:
if arg 1 is not set:
send "&cError! You need a prefix!"
if arg 1 is set:
if arg 2 is not set:
send "&cError! You need to enter the mob!"
if arg 1 is set:
if arg 2 is set:
spawn %arg-2% at player's location
set display name of last spawned %arg-2% to "%arg-1%"
set nbt of last spawned %arg-2% to "{Invulnerable:1b,NoAI:1b,PersistenceRequired:1b,Silent:1b}"


command /removenpc:
permission: npc.admin
permission message: &cError! You don't have access to that command!
trigger:
kill last spawned entity

#idk if i did it right with the channels stuf
 
Status
Not open for further replies.