#help with coords
1 messages · Page 1 of 1 (latest)
the errors are very self explanatory
ok
can you help or not
Of course
YOu are using spawn zombie at location
Now, since it's a function, skript doesn't know what location you are talking about
In events such as on block break:, you won't get this error, because it is clear that you are referring to the location of the block
il fix it
You have to be more specific. What location are you trying to spawn the zombie at?
Why?
its in the code
command spawnmob [<text>]:
permission: op
trigger:
location = location(-1008, 123, 3755, world)
if arg-1 is set:
spawnmob(arg-1, player)
else:
message "&4Invalid arguments! Usage: /spawnmob <name> <hp>"
function spawnmob(m: text, p: player):
if {_m} is "zombietest":
spawn 1 zombie at location
set {_e} to last spawned entity
equip {_e} with gold helmet
equip {_e} with gold chestplate
equip {_e} with gold leggings
equip {_e} with gold boots
set max health of {_e} to 100
heal {_e}
set {_e}'s display name to "&4Zombie &lTEST"
the coords
can you help me after tnx
what did you do?
command spawnmob [<text>]:
permission: op
trigger:
location = location(-1008, 123, 3755, world)
if arg-1 is set:
spawnmob(arg-1, player)
else:
message "&4Invalid arguments! Usage: /spawnmob <name> <hp>"
function spawnmob(m: text, p: player):
if {_m} is "zombietest":
spawn 1 zombie at location
set {_e} to last spawned entity
equip {_e} with gold helmet
equip {_e} with gold chestplate
equip {_e} with gold leggings
equip {_e} with gold boots
set max health of {_e} to 100
heal {_e}
set {_e}'s display name to "&4Zombie &lTEST"
this will prob fix 1 error
ok
This isn't how skript works. You have to pass the location as a parameter in the function in order to let it know what its value is
ok so how?
i saw this somewhere so i used it
sne derrors
@wise crow you can you help me rq
on right click:
if item is Clock:
open {_ServerSelector} to player
set {_ServerSelector} to a new chest inventory named "&8Server Selector"
set slot 0 and 1 and 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 10 and 12 and 14 and 16 and 17 and 18 and 19 and 20 and 21 and 22 and 23 and 24 and 25 and 26 of {_ServerSelector} to gray stained glass pane named " "```
il try later again
no error on right click nothing happens
SO TELL ME HOW TO DO IT BRO
oh