I have just started using skript and am trying to make a factions server. I am making defense blocks that can only be exploded by tnt. Based off the level of the block that is how much tnt it needs to be destroyed. Level one is one tnt level two is two tnt and so on. I think I need to use loops and try to replace that block with another. My idea was to have level 2 be gold and level 1 be iron. I have:
on explode:
loop exploded blocks:
Add location of loop-block to {_locs::*} if type of loop-block is iron block
loop {_locs::*}
Set block at loop-value to gold block
I need to fix it up a bit but are there any improvements I could use?
Thanks in advance.
on explode:
loop exploded blocks:
Add location of loop-block to {_locs::*} if type of loop-block is iron block
loop {_locs::*}
Set block at loop-value to gold block
I need to fix it up a bit but are there any improvements I could use?
Thanks in advance.