I want to make a zombie barricate system like hypixel:
This is not working.. It doesn't set blocks and it says "0/6" all the times.. What am i doing wrong?
code_language.skript:
every 1 second:
loop all players:
if block under the loop-player is sponge:
if loop-player is sneaking:
if {locazione1} > 0:
if {locazione1} is 6:
set block at {loc.1} to stone
remove 1 from {locazione1}
if {locazione1} is 5:
set block at {loc.2} to stone
remove 1 from {locazione1}
if {locazione1} is 4:
set block at {loc.3} to stone
remove 1 from {locazione1}
if {locazione1} is 3:
set block at {loc.4} to stone
remove 1 from {locazione1}
if {locazione1} is 2:
set block at {loc.5} to stone
remove 1 from {locazione1}
if {locazione1} is 1:
set block at {loc.6} to stone
remove 1 from {locazione1}
send "&9Zombie>&7 Barricando la locazione &e(%{locazione1}%/6)" to loop-player
every 1 second:
loop all zombies:
if block under the loop-zombie is stone:
if {locazione1} < 6:
add 1 to {locazione1}
if {locazione1} is 6:
set block at {loc.1} to air
if {locazione1} is 5:
set block at {loc.2} to air
if {locazione1} is 4:
set block at {loc.3} to air
if {locazione1} is 3:
set block at {loc.4} to air
if {locazione1} is 2:
set block at {loc.5} to air
if {locazione1} is 1:
set block at {loc.6} to air
command /addlocation [<text>]:
trigger:
set {loc.%arg-1%} to location of player
command /locazione1:
trigger:
set {locazione1} to 6
send "d" to player
This is not working.. It doesn't set blocks and it says "0/6" all the times.. What am i doing wrong?