#skele skript not working

1 messages · Page 1 of 1 (latest)

inner summit
#
    trigger:
        if arg-1 is not set:
            send "&cUsage: /undead <x> <y> <z>"
            stop
        set {_x} to arg-1
        set {_y} to arg-2
        set {_z} to arg-3
        spawn 1 skeleton at {_x} {_y} {_z}
        set name of last spawned entity to "&2&lUndead Miner"
        equip last spawned entity with leather helmet
        give wooden pickaxe of infinity 1 to last spawned entity
        stop```

the issue is with the "spawn 1 skeleton..." line
young forge
#

you can use the location function, and use the spawn section

inner summit
young forge
#

Ah, the section doesn't immediately pop up I think so here https://skripthub.net/docs/?id=6654

#

Also, the <text> arg isn't an integer, I'd recommend using <integer> so that it'll work properly

inner summit
#

okay ty

young forge
#

np