{correctanswer.%player%} is set
set {_l} to location of player
set {_corr} to 1 if (message) parsed as a number = round({correctanswer.%player%})
set {_corr} to 1 if (message) in uppercase = {correctanswer.%player%} in uppercase
set {_corr} to 1 if message = "%{correctanswer.%player%}%"
if {_corr} = 1:
send title "" with subtitle "&6&lGood job!" to player for 3 seconds with fadein 0 second and fadeout 0 second
clear {correctanswer.%player%}
playSoundAtPlayer("entity.player.levelup",player,0.5)
#defuseBomb(player)
loop all entities in radius 12 of player:
broadcast "%loop-entity%"
metadata tag "summontype" of loop-entity contains "bomb"
broadcast "bomb found"
kill loop-entity
wait 1 second
loop randInt(4,12) times:
set {_r} to randInt(1,4)
drop {redlucky} at player if {_r} = 1
drop {aqualucky} at player if {_r} = 2
drop {greenlucky} at player if {_r} = 3
drop {orangelucky} at player if {_r} = 4
wait 1 tick
playSoundAtPlayer("entity.item.pickup",player,0.25)```
Loop doesn't work at all. Broadcasts dont' happen whatseover. Even just setting it to "loop entities" doesn't fix anything
Help
#Using loop entities in a on chat: expression fails no matter what
1 messages · Page 1 of 1 (latest)
that's not the part here with the problem
the problem's in the loop itself ,everything else works fine
I switched from purpur to paper & the error persisted
Feels like something i should submit to github nah?
you are using a beta version of Skript. for testing, try using the latest stable version 2.6.4. if the issue is no longer there, make an issue on GitHub
This is a known skript bug and has a plan in place to fix it
oh?
Ita caused by chat event being async