diff --git a/Brilliance Datapack/data/do2/functions/dungeon_setup/all.mcfunction b/Brilliance Datapack/data/do2/functions/dungeon_setup/all.mcfunction index 8b770890..fa5575e6 100644 --- a/Brilliance Datapack/data/do2/functions/dungeon_setup/all.mcfunction +++ b/Brilliance Datapack/data/do2/functions/dungeon_setup/all.mcfunction @@ -27,6 +27,7 @@ function do2:scoreboard/config/balance_changes/actions function do2:dungeon_setup/reset_hopper_minecarts/test_for_accurate_blocks function do2:dungeon_setup/reset_hopper_minecarts/test_for_tags function do2:dungeon_setup/reset_hopper_minecarts/set_inventories +function do2:dungeon_setup/randomize_clank_blockers/randomize_shrieker_groups # Experimental function do2:scoreboard/config/max_clank_berries/start_suppress_berries diff --git a/Brilliance Datapack/data/do2/functions/dungeon_setup/randomize_clank_blockers/randomize_group_east.mcfunction b/Brilliance Datapack/data/do2/functions/dungeon_setup/randomize_clank_blockers/randomize_group_east.mcfunction new file mode 100644 index 00000000..0e7731b8 --- /dev/null +++ b/Brilliance Datapack/data/do2/functions/dungeon_setup/randomize_clank_blockers/randomize_group_east.mcfunction @@ -0,0 +1,15 @@ +# executed AT the piston facing: +# East = X++ +# West = X-- +# South = Z++ +# North = Z-- + +scoreboard players set $dungeon do2.utility.randomNumberRange 2 +function do2:utility/random_gen/generate_random_number +fill ~ ~ ~ ~2 ~ ~ air replace +setblock ~ ~ ~ minecraft:sticky_piston[facing=east] +# 50% chance for shrieker to be DISABLED +execute if score $dungeon do2.utility.randomNum matches 1 run setblock ~1 ~ ~ minecraft:red_wool +# 50% chance for shrieker to be ENABLED +execute unless score $dungeon do2.utility.randomNum matches 1 run setblock ~2 ~ ~ minecraft:red_wool + diff --git a/Brilliance Datapack/data/do2/functions/dungeon_setup/randomize_clank_blockers/randomize_group_north.mcfunction b/Brilliance Datapack/data/do2/functions/dungeon_setup/randomize_clank_blockers/randomize_group_north.mcfunction new file mode 100644 index 00000000..ca74a67c --- /dev/null +++ b/Brilliance Datapack/data/do2/functions/dungeon_setup/randomize_clank_blockers/randomize_group_north.mcfunction @@ -0,0 +1,15 @@ +# executed AT the piston facing: +# East = X++ +# West = X-- +# South = Z++ +# North = Z-- + +scoreboard players set $dungeon do2.utility.randomNumberRange 2 +function do2:utility/random_gen/generate_random_number +fill ~ ~ ~ ~ ~ ~-2 air replace +setblock ~ ~ ~ minecraft:sticky_piston[facing=north] +# 50% chance for shrieker to be DISABLED +execute if score $dungeon do2.utility.randomNum matches 1 run setblock ~ ~ ~-1 minecraft:red_wool +# 50% chance for shrieker to be ENABLED +execute unless score $dungeon do2.utility.randomNum matches 1 run setblock ~ ~ ~-2 minecraft:red_wool + diff --git a/Brilliance Datapack/data/do2/functions/dungeon_setup/randomize_clank_blockers/randomize_group_south.mcfunction b/Brilliance Datapack/data/do2/functions/dungeon_setup/randomize_clank_blockers/randomize_group_south.mcfunction new file mode 100644 index 00000000..3a74ae0d --- /dev/null +++ b/Brilliance Datapack/data/do2/functions/dungeon_setup/randomize_clank_blockers/randomize_group_south.mcfunction @@ -0,0 +1,15 @@ +# executed AT the piston facing: +# East = X++ +# West = X-- +# South = Z++ +# North = Z-- + +scoreboard players set $dungeon do2.utility.randomNumberRange 2 +function do2:utility/random_gen/generate_random_number +fill ~ ~ ~ ~ ~ ~2 air replace +setblock ~ ~ ~ minecraft:sticky_piston[facing=south] +# 50% chance for shrieker to be DISABLED +execute if score $dungeon do2.utility.randomNum matches 1 run setblock ~ ~ ~1 minecraft:red_wool +# 50% chance for shrieker to be ENABLED +execute unless score $dungeon do2.utility.randomNum matches 1 run setblock ~ ~ ~2 minecraft:red_wool + diff --git a/Brilliance Datapack/data/do2/functions/dungeon_setup/randomize_clank_blockers/randomize_group_west.mcfunction b/Brilliance Datapack/data/do2/functions/dungeon_setup/randomize_clank_blockers/randomize_group_west.mcfunction new file mode 100644 index 00000000..2220ae6f --- /dev/null +++ b/Brilliance Datapack/data/do2/functions/dungeon_setup/randomize_clank_blockers/randomize_group_west.mcfunction @@ -0,0 +1,15 @@ +# executed AT the piston facing: +# East = X++ +# West = X-- +# South = Z++ +# North = Z-- + +scoreboard players set $dungeon do2.utility.randomNumberRange 2 +function do2:utility/random_gen/generate_random_number +fill ~ ~ ~ ~-2 ~ ~ air replace +setblock ~ ~ ~ minecraft:sticky_piston[facing=west] +# 50% chance for shrieker to be DISABLED +execute if score $dungeon do2.utility.randomNum matches 1 run setblock ~-1 ~ ~ minecraft:red_wool +# 50% chance for shrieker to be ENABLED +execute unless score $dungeon do2.utility.randomNum matches 1 run setblock ~-2 ~ ~ minecraft:red_wool + diff --git a/Brilliance Datapack/data/do2/functions/dungeon_setup/randomize_clank_blockers/randomize_shrieker_groups.mcfunction b/Brilliance Datapack/data/do2/functions/dungeon_setup/randomize_clank_blockers/randomize_shrieker_groups.mcfunction new file mode 100644 index 00000000..2776d4da --- /dev/null +++ b/Brilliance Datapack/data/do2/functions/dungeon_setup/randomize_clank_blockers/randomize_shrieker_groups.mcfunction @@ -0,0 +1,71 @@ +execute positioned -534 34 1996 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_east +execute positioned -529 33 1986 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_north +execute positioned -529 34 1984 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_south +execute positioned -525 34 1998 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_south +execute positioned -525 33 2001 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_north +execute positioned -539 43 1989 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_west +execute positioned -542 42 1989 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_east +execute positioned -539 42 1995 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_west +execute positioned -543 36 2004 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_south +execute positioned -543 37 2006 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_north +execute positioned -570 45 1956 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_south +execute positioned -570 44 1959 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_north +execute positioned -561 44 1967 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_south +execute positioned -561 45 1970 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_north +execute positioned -563 44 1985 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_west +execute positioned -566 45 1985 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_east +execute positioned -579 44 1995 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_west +execute positioned -583 45 1995 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_east +execute positioned -563 44 1996 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_west +execute positioned -567 45 1996 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_east +execute positioned -612 42 1973 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_east +execute positioned -609 41 1973 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_west +execute positioned -623 42 2000 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_east +execute positioned -620 41 2000 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_west +execute positioned -588 44 2006 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_west +execute positioned -591 45 2006 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_east +execute positioned -603 41 2015 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_south +execute positioned -603 40 2018 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_north +execute positioned -607 42 2008 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_south +execute positioned -584 45 2020 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_north +execute positioned -556 46 2033 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_east +execute positioned -552 47 2033 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_west +execute positioned -536 42 2026 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_east +execute positioned -533 43 2026 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_west +execute positioned -522 44 2023 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_east +execute positioned -519 45 2023 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_west +execute positioned -576 42 2032 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_south +execute positioned -492 13 1998 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_north +execute positioned -455 20 2025 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_south +execute positioned -455 21 2027 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_north +execute positioned -456 19 2009 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_east +execute positioned -452 20 2009 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_west +execute positioned -455 16 1987 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_north +execute positioned -455 17 1985 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_south +execute positioned -476 26 1987 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_east +execute positioned -473 27 1987 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_west +execute positioned -468 15 1971 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_west +execute positioned -476 13 1956 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_east +execute positioned -493 9 2007 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_south +execute positioned -521 11 1995 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_north +execute positioned -505 14 1973 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_south +execute positioned -518 20 1967 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_north +execute positioned -518 21 1963 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_south +execute positioned -506 8 1962 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_west +execute positioned -530 7 1960 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_west +execute positioned -533 8 1960 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_east +execute positioned -521 7 1952 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_south +execute positioned -521 8 1954 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_north +execute positioned -530 14 1997 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_south +execute positioned -585 11 2015 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_south +execute positioned -572 10 1995 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_east +execute positioned -577 5 1977 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_south +execute positioned -556 8 1988 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_south +execute positioned -558 9 1965 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_south +execute positioned -484 19 2010 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_south +execute positioned -483 19 2010 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_south +execute positioned -536 10 2028 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_west +execute positioned -650 -19 1914 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_north +execute positioned -594 1 1907 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_north +execute positioned -613 -1 1895 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_north +execute positioned -627 -1 1889 run function do2:dungeon_setup/randomize_clank_blockers/randomize_group_north