Skript Problem

Started by MrV1Rus_ on

Topic category: Help with MCreator software

Last seen on 09:52, 6. May 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Skript Problem

i did this script by a youtuber called Bugz and it won't work ON MCreator

command spawnmob [<text>] [<integer>]:
permission: op
trigger:
if arg-1 and arg-2 is set:
spawnmob(arg-1, player,arg-2)
else:
send "&cInvalid arguments! Usage: /spawnmob <name> <hp>" to player
function spawnmob(m: text, p: player, hp: integer):
if {_m} = "zombieking":
spawn 1 zombie at {_p}
set {_e} to last spawned entity
equip {_e} with golden helmet and netherite chestplate and diamond leggings and netherite boots and netherite axe
set max health of {_e} to {_hp} / 2
heal {_e}
if {_m} = "zombieguard":
spawn 3 zombie at {_p}
set {_e} to last spawned entinty
equip {_e} with iron helmet and iron chestplate and golden leggings and iron boots and stone sword
set max health of {_e} to {_hp} / 2
heal {_e}