command /testss:
trigger:
set {_test} to "0|0|100,1|0|100,2|0|100,2|1|100,2|2|100"
set {_sections::*} to {_test} split at ","
loop size of {_sections::*} times:
set {_sections2::%loop-value%::*} to {_sections::%loop-value%} split at "|"
loop size of {_sections::*} times:
send {_sections2::%loop-value%::%-2 + 3%}
send {_sections2::%loop-value%::%-1 + 3%}
send {_sections2::%loop-value%::3}
n({_sections2::%loop-value%::%-2 + 3%} , {_sections2::%loop-value%::%-1 + 3%})
send "n(%{_sections2::%loop-value%::%-2 + 3%}% , %{_sections2::%loop-value%::%-1 + 3%}%)" to player
wait "%{_sections2::%loop-value%::3}% ticks" parsed as timespan
function n(l1: number , l2: number):
spawn slime at location {_l1} - 272.5, {_l2} - 27, -580 in world "world"
set yaw of last spawned entity to 0
add nbt from "{NoAI:1}" to nbt of last spawned entity
add nbt from "{Size:1}" to nbt of last spawned entity
#why.
1 messages · Page 1 of 1 (latest)
so, the right values are being sent
from ```vb
send "n(%{_sections2::%loop-value%::%-2 + 3%}% , %{_sections2::%loop-value%::%-1 + 3%}%)" to player
the only thing not working really is the function
even tho apparently it should work
i do not see why it shouldnt work
please someone HELP ME

uh
the send line sends the right vlalues
but when the function does function things+
it spawns the slimes
at bottom left
bc the integers
arent set apparently
so it says <none>
why use "%-2 + 3%" instead of just "1"
also, use the location function and debug inside the fuction
i overlooked that
aight ill try that
I dont get it
I know the issue, yet i dont understand the issue
The previously output output isnt putting out anymore
What
The
Fuck
Im seriously tweaking
show me the debugs
I mean like i said, i know the reason y it doesnt work, its cuz the variables arent set inside the functions and they output <none>
which i really dont know why it does that
I probably did this wrong, as it didnt work
The only debugging i have is this, and it outputs the right values
are they integers? strings?