#Help, there's a error in my function and I dunno how to fix it

1 messages · Page 1 of 1 (latest)

pliant socket
#

execute as @e[type=thebrokenscript:null_miner] at @s run damage @a 6 [r=3]
execute as @e[type=thebrokenscript:null_miner] at @s run playsound youwillbecomeoneofus @a[r=3]
execute as @e[type=thebrokenscript:null_miner] at @s run kill @s[r=3]

[Commands][warning]-Function null_miner failed to load correctly with error(s):

[Commands][warning]-Error on line 1: command failed to parse with error 'Syntax error: Unexpected '[': at 'amage @a 6>>[<<r=3]''

maiden saddle
#

Idk if this is different in functions but why did you write as at for some of these instead of just at

#

Also read the errors it says you wrote it wrong

#

It’s at @s run damage @a[r=3] 6

#

You can’t not attach the arguments to the selector if you do they’re meaningless

#

Also idk if this is intentional but is it supposed to kill itself in the last command

pliant socket
#

Yeha