-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reset LevelController To Default now has functionality.
Move structure files into datapack instead of world
- Loading branch information
1 parent
30f4f54
commit 05d1ec8
Showing
26 changed files
with
135 additions
and
30 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
...pack/data/do2/functions/level_controller/reset_to_default/individual/backrooms.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"}}}]} |
14 changes: 14 additions & 0 deletions
14
...ck/data/do2/functions/level_controller/reset_to_default/individual/l1_no_zones.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"}'}}}]} | ||
|
10 changes: 10 additions & 0 deletions
10
...apack/data/do2/functions/level_controller/reset_to_default/individual/l1_zones.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"}'}}}]} | ||
|
13 changes: 13 additions & 0 deletions
13
...ck/data/do2/functions/level_controller/reset_to_default/individual/l2_no_zones.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"}'}}}]} |
9 changes: 9 additions & 0 deletions
9
...apack/data/do2/functions/level_controller/reset_to_default/individual/l2_zones.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"}'}}}]} |
9 changes: 9 additions & 0 deletions
9
...ce Datapack/data/do2/functions/level_controller/reset_to_default/individual/l3.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"}'}}}]} |
9 changes: 9 additions & 0 deletions
9
...ce Datapack/data/do2/functions/level_controller/reset_to_default/individual/l4.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"}'}}}]} |
23 changes: 23 additions & 0 deletions
23
...liance Datapack/data/do2/functions/level_controller/reset_to_default/reset_all.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
17 changes: 17 additions & 0 deletions
17
...ce Datapack/data/do2/functions/level_controller/reset_to_default/reset_current.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.