#clear warzone skript

1 messages · Page 1 of 1 (latest)

spiral rivet
#

okay

#

and what have you tried to change?

merry flame
#

why dont you just change it to wait 5 minutes?

rose meadow
#

Change the wait 5 seconds to wait 5 minutes

dim pivot
#

Literally on place add the location to a list, and after 5 minutes after the game starts loop the list and set the blocks to air.

rose meadow
#

that will cause lag

#

you can choose from lag at once or performance "ripping"

dim pivot
rose meadow
#

``
on block place:
location of event-block is in "EXAMPLE-WORLDGUARD-REGION":
add location of event-block to {warzone_blocks::*}

every 5 minutes:
if {warzone_blocks::} is not set:
stop
set {_count} to 0
loop {warzone_blocks::
}:
set block at {warzone_blocks::%loop-index%} to air
add 1 to {_count}
clear {warzone_blocks::*}
send "[DEBUG] Removed %{_count}% block/s in Warzone." to console
``

#

ok im stupid

#

you can try this

#

you can obviously remove the debug stuff i just had this for testing

spiral rivet
#

why are we spoon-feeding?

#

why are we using location of event-block instead of just event-location?
why are we initialising and incrementing {_count} instead of using size of {warzone_blocks::*}?

rose meadow
#

Hmm good point

#

1 am skripting icl