Skip to content

Commit

Permalink
Reset LevelController To Default now has functionality.
Browse files Browse the repository at this point in the history
Move structure files into datapack instead of world
  • Loading branch information
Frustrated-Programmer committed Dec 4, 2024
1 parent 30f4f54 commit 05d1ec8
Show file tree
Hide file tree
Showing 26 changed files with 135 additions and 30 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Mob Amount
data merge block -529 114 1946 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:94,display:{Name:'{"text":"Ravager","italic":false}'}}}]}
data merge block -529 114 1945 {Items:[{Slot:0b, id: "minecraft:player_head", Count: 1b, tag: {display: {Name: '{"text":"Drowned","italic":false}'}, SkullOwner: {Properties: {textures: [{Value: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzNmN2NjZjYxZGJjM2Y5ZmU5YTYzMzNjZGUwYzBlMTQzOTllYjJlZWE3MWQzNGNmMjIzYjNhY2UyMjA1MSJ9fX0="}]}, Id: [I; 790009440, 1639859901, -1397417282, -100772047], Name: "Drowned"}}}]}
data merge block -529 114 1943 {Items:[{Slot:0b, id: "minecraft:player_head", Count: 1b, tag: {display: {Name: '{"text":"Drowned","italic":false}'}, SkullOwner: {Properties: {textures: [{Value: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzNmN2NjZjYxZGJjM2Y5ZmU5YTYzMzNjZGUwYzBlMTQzOTllYjJlZWE3MWQzNGNmMjIzYjNhY2UyMjA1MSJ9fX0="}]}, Id: [I; 790009440, 1639859901, -1397417282, -100772047], Name: "Drowned"}}}]}

# Mob Names
data merge block -529 115 1946 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:94,display:{Name:'{"text":"Jellie"}'}}}]}
data merge block -529 115 1945 {Items:[{Slot:0b, id: "minecraft:player_head", Count: 1b, tag: {display: {Name: '{"text":"The Worst!!!"}'}, SkullOwner: {Properties: {textures: [{Value: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzNmN2NjZjYxZGJjM2Y5ZmU5YTYzMzNjZGUwYzBlMTQzOTllYjJlZWE3MWQzNGNmMjIzYjNhY2UyMjA1MSJ9fX0="}]}, Id: [I; 790009440, 1639859901, -1397417282, -100772047], Name: "Drowned"}}}]}
data merge block -529 115 1943 {Items:[{Slot:0b, id: "minecraft:player_head", Count: 1b, tag: {display: {Name: '{"text":"One Eyed Willy"}'}, SkullOwner: {Properties: {textures: [{Value: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzNmN2NjZjYxZGJjM2Y5ZmU5YTYzMzNjZGUwYzBlMTQzOTllYjJlZWE3MWQzNGNmMjIzYjNhY2UyMjA1MSJ9fX0="}]}, Id: [I; 790009440, 1639859901, -1397417282, -100772047], Name: "Drowned"}}}]}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Ravager Amount
data merge block -529 114 1946 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Ravager","italic":false}'}}}]}
data merge block -529 114 1945 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Ravager","italic":false}'}}}]}
data merge block -529 114 1944 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Ravager","italic":false}'}}}]}
data merge block -529 114 1943 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Ravager","italic":false}'}}}]}
data merge block -529 114 1942 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Ravager","italic":false}'}}}]}

# Ravager Names
data merge block -529 115 1946 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Stumbles"}'}}}]}
data merge block -529 115 1945 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Laser Beams"}'}}}]}
data merge block -529 115 1944 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Lasagna"}'}}}]}
data merge block -529 115 1943 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Hot Breath"}'}}}]}
data merge block -529 115 1942 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Mr. Poopy Head"}'}}}]}

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Ravager Amount
data merge block -529 114 1945 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Ravager","italic":false}'}}},{Slot:1b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Ravager","italic":false}'}}}]}
data merge block -529 114 1944 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Ravager","italic":false}'}}},{Slot:1b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Ravager","italic":false}'}}}]}
data merge block -529 114 1943 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Ravager","italic":false}'}}}]}

# Ravager Names
data merge block -529 115 1945 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Stumbles"}'}}},{Slot:1b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Laser Beams"}'}}}]}
data merge block -529 115 1944 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Lasagna"}'}}},{Slot:1b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Hot Breath"}'}}}]}
data merge block -529 115 1943 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Mr. Poopy Head"}'}}}]}

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Ravager Amount
data merge block -529 114 1946 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Ravager","italic":false}'}}}]}
data merge block -529 114 1945 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Ravager","italic":false}'}}}]}
data merge block -529 114 1944 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Ravager","italic":false}'}}}]}
data merge block -529 114 1943 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Ravager","italic":false}'}}}]}
data merge block -529 114 1942 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Ravager","italic":false}'}}}]}

# Ravager Names
data merge block -529 115 1946 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Skadoodles"}'}}}]}
data merge block -529 115 1945 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Snausages"}'}}}]}
data merge block -529 115 1944 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"big butts and I cannot lie"}'}}}]}
data merge block -529 115 1943 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Sir Fluffykins of the Dungeon"}'}}}]}
data merge block -529 115 1942 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Nugget"}'}}}]}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Ravager Amount
data merge block -529 114 1945 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Ravager","italic":false}'}}},{Slot:1b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Ravager","italic":false}'}}}]}
data merge block -529 114 1944 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Ravager","italic":false}'}}},{Slot:1b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Ravager","italic":false}'}}}]}
data merge block -529 114 1943 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Ravager","italic":false}'}}}]}

# Ravager Names
data merge block -529 115 1945 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Skadoodles"}'}}},{Slot:1b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Snausages"}'}}}]}
data merge block -529 115 1944 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"big butts and I cannot lie"}'}}},{Slot:1b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Sir Fluffykins of the Dungeon"}'}}}]}
data merge block -529 115 1943 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Nugget"}'}}}]}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Warden Amount
data merge block -529 114 1945 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Warden","italic":false}'}}}]}
data merge block -529 114 1944 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Warden","italic":false}'}}}]}
data merge block -529 114 1943 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Warden","italic":false}'}}}]}

# Warden Names
data merge block -529 115 1945 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Pain"}'}}}]}
data merge block -529 115 1944 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Panic"}'}}}]}
data merge block -529 115 1943 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:96,display:{Name:'{"text":"Pancakes"}'}}}]}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Warden Amount
data merge block -529 114 1945 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:91,display:{Name:'{"text":"Warden","italic":false}'}}}]}
data merge block -529 114 1944 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:91,display:{Name:'{"text":"Warden","italic":false}'}}}]}
data merge block -529 114 1943 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:91,display:{Name:'{"text":"Warden","italic":false}'}}}]}

# Warden Names
data merge block -529 115 1945 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:91,display:{Name:'{"text":"Blinky"}'}}}]}
data merge block -529 115 1944 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:91,display:{Name:'{"text":"Inky"}'}}}]}
data merge block -529 115 1943 {Items:[{Slot:0b, id:"minecraft:carved_pumpkin", Count:1b, tag:{CustomModelData:91,display:{Name:'{"text":"Pinky"}'}}}]}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# SFX
playsound minecraft:block.anvil.place player @a -526 115 1944 0.2 0.1 0
particle minecraft:explosion -528 116 1944 0 1 -2 0 30 force

# Reset STORAGES to default,
place template do2:config.mc.storages_default -527 122 1942 none none 1 0

# Reset CURRENT storage
# L1
execute if score $dungeon do2.config.mc.levelEditing matches 1 if score $dungeon do2.config.mc.level1Zones matches 0 run function do2:level_controller/reset_to_default/individual/l1_no_zones
execute if score $dungeon do2.config.mc.levelEditing matches 1 if score $dungeon do2.config.mc.level1Zones matches 1 run function do2:level_controller/reset_to_default/individual/l1_zones
# L2
execute if score $dungeon do2.config.mc.levelEditing matches 2 if score $dungeon do2.config.mc.level2Zones matches 0 run function do2:level_controller/reset_to_default/individual/l2_no_zones
execute if score $dungeon do2.config.mc.levelEditing matches 2 if score $dungeon do2.config.mc.level2Zones matches 1 run function do2:level_controller/reset_to_default/individual/l2_zones

# L3
execute if score $dungeon do2.config.mc.levelEditing matches 3 run function do2:level_controller/reset_to_default/individual/l3

# L4
execute if score $dungeon do2.config.mc.levelEditing matches 4 run function do2:level_controller/reset_to_default/individual/l4

# L5
execute if score $dungeon do2.config.mc.levelEditing matches 5 run function do2:level_controller/reset_to_default/individual/backrooms
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
playsound minecraft:block.amethyst_cluster.place player @a -526 115 1944 1 0.5 0
particle minecraft:cloud -528 116 1944 0 1 2 0 1000 force
# L1
execute if score $dungeon do2.config.mc.levelEditing matches 1 if score $dungeon do2.config.mc.level1Zones matches 0 run function do2:level_controller/reset_to_default/individual/l1_no_zones
execute if score $dungeon do2.config.mc.levelEditing matches 1 if score $dungeon do2.config.mc.level1Zones matches 1 run function do2:level_controller/reset_to_default/individual/l1_zones
# L2
execute if score $dungeon do2.config.mc.levelEditing matches 2 if score $dungeon do2.config.mc.level2Zones matches 0 run function do2:level_controller/reset_to_default/individual/l2_no_zones
execute if score $dungeon do2.config.mc.levelEditing matches 2 if score $dungeon do2.config.mc.level2Zones matches 1 run function do2:level_controller/reset_to_default/individual/l2_zones

# L3
execute if score $dungeon do2.config.mc.levelEditing matches 3 run function do2:level_controller/reset_to_default/individual/l3

# L4
execute if score $dungeon do2.config.mc.levelEditing matches 4 run function do2:level_controller/reset_to_default/individual/l4

# L5
execute if score $dungeon do2.config.mc.levelEditing matches 5 run function do2:level_controller/reset_to_default/individual/backrooms
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ execute if block -519 115 1940 minecraft:bamboo_button[powered=true] run functio
execute if block -518 115 1940 minecraft:bamboo_button[powered=true] run function do2:level_controller/swap_to/l4
execute if block -517 115 1940 minecraft:bamboo_button[powered=true] run function do2:level_controller/swap_to/backrooms



# Run the per ticks
execute if score $dungeon do2.config.mc.levelEditing matches 1 run function do2:level_controller/per_tick/l1
execute if score $dungeon do2.config.mc.levelEditing matches 2 run function do2:level_controller/per_tick/l2
execute if score $dungeon do2.config.mc.levelEditing matches 3 run function do2:level_controller/per_tick/l3
execute if score $dungeon do2.config.mc.levelEditing matches 4 run function do2:level_controller/per_tick/l4
execute if score $dungeon do2.config.mc.levelEditing matches 5 run function do2:level_controller/per_tick/backrooms

# Make sure all players have at least 1 level, in order to name things at the anvil
execute positioned -516 114 1947 as @a[distance=..6] store result score @s do2.utility.playersExperience run experience query @s levels
execute positioned -516 114 1947 as @a[distance=..6] if score @s do2.utility.playersExperience matches ..0 run experience add @s 1 levels
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ fill -521 116 1939 -517 116 1939 minecraft:redstone_lamp[lit=false]
setblock -517 116 1939 minecraft:redstone_lamp[lit=true]
scoreboard players set $dungeon do2.config.mc.levelEditing 5


fill -525 115 1944 -525 116 1944 air replace
fill -528 118 1946 -528 116 1942 air replace
fill -529 115 1946 -529 114 1942 air replace
setblock -530 120 1939 minecraft:structure_block[mode=load]{z:1939,x:-530,y:120,name:"minecraft:config.mc.backrooms_no_zones",sizeX:8,sizeY:8,sizeZ:11,posZ:0,posX:0,posY:-7,powered:0b,mode:"LOAD"}
setblock -529 120 1939 minecraft:redstone_block
setblock -529 120 1939 air

place template do2:config.mc.backrooms_no_zones -530 113 1939 none none 1

# Load Storage
clone -519 123 1942 -519 122 1946 -529 114 1942
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ fill -521 116 1939 -517 116 1939 minecraft:redstone_lamp[lit=false]
setblock -521 116 1939 minecraft:redstone_lamp[lit=true]
scoreboard players set $dungeon do2.config.mc.levelEditing 1


fill -528 118 1946 -528 116 1942 air replace
fill -529 115 1946 -529 114 1942 air replace
execute if score $dungeon do2.config.mc.level1Zones matches 0 run setblock -530 120 1939 minecraft:structure_block[mode=load]{z:1939,x:-530,y:120,name:"minecraft:config.mc.l1_no_zones",sizeX:8,sizeY:8,sizeZ:11,posZ:0,posX:0,posY:-7,powered:0b,mode:"LOAD"}
execute if score $dungeon do2.config.mc.level1Zones matches 1 run setblock -530 120 1939 minecraft:structure_block[mode=load]{z:1939,x:-530,y:120,name:"minecraft:config.mc.l1_has_zones",sizeX:8,sizeY:8,sizeZ:11,posZ:0,posX:0,posY:-7,powered:0b,mode:"LOAD"}
setblock -529 120 1939 minecraft:redstone_block
setblock -529 120 1939 air
execute if score $dungeon do2.config.mc.level1Zones matches 0 run place template do2:config.mc.l1_no_zones -530 113 1939 none none 1
execute if score $dungeon do2.config.mc.level1Zones matches 1 run place template do2:config.mc.l1_has_zones -530 113 1939 none none 1

# Load Storage
execute if score $dungeon do2.config.mc.level1Zones matches 0 run clone -527 126 1942 -527 125 1946 -529 114 1942
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ fill -521 116 1939 -517 116 1939 minecraft:redstone_lamp[lit=false]
setblock -520 116 1939 minecraft:redstone_lamp[lit=true]
scoreboard players set $dungeon do2.config.mc.levelEditing 2


fill -528 118 1946 -528 116 1942 air replace
fill -529 115 1946 -529 114 1942 air replace
execute if score $dungeon do2.config.mc.level2Zones matches 0 run setblock -530 120 1939 minecraft:structure_block[mode=load]{z:1939,x:-530,y:120,name:"minecraft:config.mc.l2_no_zones",sizeX:8,sizeY:8,sizeZ:11,posZ:0,posX:0,posY:-7,powered:0b,mode:"LOAD"}
execute if score $dungeon do2.config.mc.level2Zones matches 1 run setblock -530 120 1939 minecraft:structure_block[mode=load]{z:1939,x:-530,y:120,name:"minecraft:config.mc.l2_has_zones",sizeX:8,sizeY:8,sizeZ:11,posZ:0,posX:0,posY:-7,powered:0b,mode:"LOAD"}
setblock -529 120 1939 minecraft:redstone_block
setblock -529 120 1939 air
execute if score $dungeon do2.config.mc.level2Zones matches 0 run place template do2:config.mc.l2_no_zones -530 113 1939 none none 1
execute if score $dungeon do2.config.mc.level2Zones matches 1 run place template do2:config.mc.l2_has_zones -530 113 1939 none none 1

# Load Storage
execute if score $dungeon do2.config.mc.level2Zones matches 0 run clone -525 126 1942 -525 125 1946 -529 114 1942
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ fill -521 116 1939 -517 116 1939 minecraft:redstone_lamp[lit=false]
setblock -519 116 1939 minecraft:redstone_lamp[lit=true]
scoreboard players set $dungeon do2.config.mc.levelEditing 3


fill -525 115 1944 -525 116 1944 air replace
fill -528 118 1946 -528 116 1942 air replace
fill -529 115 1946 -529 114 1942 air replace
setblock -530 120 1939 minecraft:structure_block[mode=load]{z:1939,x:-530,y:120,name:"minecraft:config.mc.l3_no_zones",sizeX:8,sizeY:8,sizeZ:11,posZ:0,posX:0,posY:-7,powered:0b,mode:"LOAD"}
setblock -529 120 1939 minecraft:redstone_block
setblock -529 120 1939 air

place template do2:config.mc.l3_no_zones -530 113 1939 none none 1

# Load Storage
clone -523 123 1942 -523 122 1946 -529 114 1942
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@ fill -521 116 1939 -517 116 1939 minecraft:redstone_lamp[lit=false]
setblock -518 116 1939 minecraft:redstone_lamp[lit=true]
scoreboard players set $dungeon do2.config.mc.levelEditing 4


fill -528 118 1946 -528 116 1942 air replace
fill -529 115 1946 -529 114 1942 air replace
execute if score $dungeon do2.config.mc.level4Zones matches 0 run setblock -530 120 1939 minecraft:structure_block[mode=load]{z:1939,x:-530,y:120,name:"minecraft:config.mc.l4_no_zones",sizeX:8,sizeY:8,sizeZ:11,posZ:0,posX:0,posY:-7,powered:0b,mode:"LOAD"}
execute if score $dungeon do2.config.mc.level4Zones matches 1 run setblock -530 120 1939 minecraft:structure_block[mode=load]{z:1939,x:-530,y:120,name:"minecraft:config.mc.l4_has_zones",sizeX:8,sizeY:8,sizeZ:11,posZ:0,posX:0,posY:-7,powered:0b,mode:"LOAD"}
setblock -529 120 1939 minecraft:redstone_block
setblock -529 120 1939 air

execute if score $dungeon do2.config.mc.level4Zones matches 0 run place template do2:config.mc.l4_no_zones -530 113 1939 none none 1
execute if score $dungeon do2.config.mc.level4Zones matches 1 run place template do2:config.mc.l4_has_zones -530 113 1939 none none 1

# Load Storage
execute if score $dungeon do2.config.mc.level4Zones matches 0 run clone -521 126 1942 -521 125 1946 -529 114 1942
Expand Down
Loading

0 comments on commit 05d1ec8

Please sign in to comment.