1 - 11 of 11
#Set the x and y values to 0
execute if score num data matches 0 run scoreboard players set reset.x data 0
execute if score num data matches 0 run scoreboard players set reset.y data 0
#Initialize a marker
#changed this to below #execute if score num data matches 0 summon minecraft:armor_stand run tag @s add coord
summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Tags:["coord"]}
#Send it to the corner of the reset area with the lowest X and Z cooordinates (Y doesn't matter)
execute if score num data matches 0 run teleport @e[type=armor_stand,tag=coord] 112 -60 64
#Fill the current section, may not be quite right
execute at @e[type=armor_stand,tag=coord] run fill ~ -63 ~ ~15 63 ~15 minecraft:lime_wool replace
execute at @e[type=armor_stand,tag=coord] run fill ~ 64 ~ ~15 191 ~15 minecraft:lime_wool replace
execute at @e[type=armor_stand,tag=coord] run fill ~ 192 ~ ~15 319 ~15 minecraft:lime_wool replace
#Move the marker to the next section
#teleport @e[type=armor_stand,tag=coord] ~16 ~ ~16
#lol#execute as @e[type=minecraft:armor_stand,tag=coord] at @s run teleport ~ ~ ~16
scoreboard players operation tmp.x data = reset.x data
scoreboard players operation tmp.y data = reset.y data
#Increment counters
scoreboard players add reset.x data 1
#The check here is for how wide you want the target area to be, in this case 3 chunks
execute if score reset.x data matches 3 run scoreboard players add reset.y data 1
execute if score reset.x data matches 3 run scoreboard players set reset.x data 0
execute if score reset.x data > tmp.x data run teleport @e[type=armor_stand,tag=coord] ~16 ~ ~
execute if score reset.y data > tmp.y data run teleport @e[type=armor_stand,tag=coord] ~ ~ ~16
#Loop unless chunk (2,4) has been reached.
execute if score reset.x data matches 2 if score reset.y data matches 3 run scoreboard players set reset.done data 1
execute if score reset.done data matches 1 run kill @e[type=armor_stand,tag=coord]
execute if score reset.done data matches 1 run scoreboard players set num data 0
execute if score reset.done data matches 1 run scoreboard players set reset.done data 0
1 - 11 of 11
© 2010 - 2026 Cyprezz LLC
www.planetminecraft.com
Planet Minecraft has a Progressive Web App!
get_app Install PMC APP
Already a member? Sign in
By continuing, you agree to Planet Minecraft's Terms of Use and Privacy Policy

