Hey, I can't figure out why this code is acting so strangely. It should add 1 to {timerGREEN} every 10 seconds, as long as there is a black standing banner in that specific zone, and under no other circumstances. However, it seems to spuratically and semi randomly add points, all in the range of 1-5 points, in 2-10 seconds. Its very frustrating. As far as I can tell, theres no other code that should change its behavior in the script.
Code:
on click:
wait 1 tick
if block at location at 12026, 70, 1409 in world "SMP_World" is not black standing banner:
if "%region at event-block%" contains "green in world SMP_World":
wait 1 tick
set block at location at 12026, 70, 1409 in world "SMP_World" to air
on load:
loop 1000000000 times:
wait 1 tick
if block at location at 12026, 70, 1409 in world "SMP_World" is black standing banner:
loop 1000000000 times:
add 1 to {timerGREEN}
wait 10 seconds
if block at location at 12026, 70, 1409 in world "SMP_World" is not black standing banner:
stop loop