-
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.
Randomize shrieker blockers at the start of a game.
- Loading branch information
1 parent
817b0a7
commit edf1be8
Showing
6 changed files
with
132 additions
and
0 deletions.
There are no files selected for viewing
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
15 changes: 15 additions & 0 deletions
15
...data/do2/functions/dungeon_setup/randomize_clank_blockers/randomize_group_east.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,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 | ||
|
15 changes: 15 additions & 0 deletions
15
...ata/do2/functions/dungeon_setup/randomize_clank_blockers/randomize_group_north.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,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 | ||
|
15 changes: 15 additions & 0 deletions
15
...ata/do2/functions/dungeon_setup/randomize_clank_blockers/randomize_group_south.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,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 | ||
|
15 changes: 15 additions & 0 deletions
15
...data/do2/functions/dungeon_setup/randomize_clank_blockers/randomize_group_west.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,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 | ||
|
71 changes: 71 additions & 0 deletions
71
...do2/functions/dungeon_setup/randomize_clank_blockers/randomize_shrieker_groups.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,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 |