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