-
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.
- Loading branch information
1 parent
61b8f48
commit 21a8e2c
Showing
22 changed files
with
18 additions
and
18 deletions.
There are no files selected for viewing
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...mob_spawning/ensure_fish_count.mcfunction → ...y_controller/ensure_fish_count.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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Check for fish markers | ||
execute unless entity @e[type=minecraft:marker,tag=fish_marker] run function do2:mob_spawning/fish_counts/summon_fish_markers | ||
execute unless entity @e[type=minecraft:marker,tag=fish_marker] run function do2:entity_controller/fish_counts/summon_fish_markers | ||
|
||
scoreboard players set $dungeon do2.utility.currentFishCount 0 | ||
execute as @e[type=minecraft:tropical_fish] run scoreboard players add $dungeon do2.utility.currentFishCount 1 | ||
|
||
execute if score $dungeon do2.config.amountOfFish > $dungeon do2.utility.currentFishCount at @r at @e[distance=24..64,type=marker,tag=fish_marker,limit=1,sort=random] unless entity @e[type=tropical_fish,distance=..3] run function do2:mob_spawning/fish_counts/summon_fish | ||
execute if score $dungeon do2.config.amountOfFish > $dungeon do2.utility.currentFishCount at @r at @e[distance=24..64,type=marker,tag=fish_marker,limit=1,sort=random] unless entity @e[type=tropical_fish,distance=..3] run function do2:entity_controller/fish_counts/summon_fish |
File renamed without changes.
File renamed without changes.
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
4 changes: 2 additions & 2 deletions
4
...awning/fish_counts/summon_fish.mcfunction → ...roller/fish_counts/summon_fish.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
scoreboard players set $dungeon do2.utility.randomNumberRange 10 | ||
function do2:utility/random_gen/generate_random_number | ||
execute if score $dungeon do2.utility.randomNum matches ..8 run function do2:mob_spawning/fish_counts/summon_common_variant | ||
execute if score $dungeon do2.utility.randomNum matches 9.. run function do2:mob_spawning/fish_counts/summon_random_variant | ||
execute if score $dungeon do2.utility.randomNum matches ..8 run function do2:entity_controller/fish_counts/summon_common_variant | ||
execute if score $dungeon do2.utility.randomNum matches 9.. run function do2:entity_controller/fish_counts/summon_random_variant |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...h_counts/summon_random_variant.mcfunction → ...h_counts/summon_random_variant.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
summon minecraft:tropical_fish ~ ~ ~ {Variant:235340288,Tags:["determine_variant","do2.manually_spawned"]} | ||
function do2:mob_spawning/fish_counts/determine_variant | ||
function do2:entity_controller/fish_counts/determine_variant | ||
execute store result entity @e[type=minecraft:tropical_fish,tag=determine_variant,limit=1] Variant double 1 run scoreboard players get $dungeon do2.utility.fishVariant | ||
tag @e[type=minecraft:tropical_fish,tag=determine_variant] remove determine_variant |
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.