diff --git a/Brilliance Datapack/data/do2/functions/mob_controller/generate_mobs.mcfunction b/Brilliance Datapack/data/do2/functions/mob_controller/generate_mobs.mcfunction index 56d7dd7f..1f7ddc06 100644 --- a/Brilliance Datapack/data/do2/functions/mob_controller/generate_mobs.mcfunction +++ b/Brilliance Datapack/data/do2/functions/mob_controller/generate_mobs.mcfunction @@ -66,6 +66,8 @@ function do2:mob_controller/generate_mobs/zones/l4z1 function do2:mob_controller/generate_mobs/zones/l4z2 function do2:mob_controller/generate_mobs/zones/l4z3 +# Other Mobs +function do2:mob_controller/generate_mobs/check_other_mobs # Display any errors execute store result score $dungeon do2.utility.mc.collectingLogs run data get storage do2:mobs mobCountErrors diff --git a/Brilliance Datapack/data/do2/functions/mob_controller/generate_mobs/check_other_mobs.mcfunction b/Brilliance Datapack/data/do2/functions/mob_controller/generate_mobs/check_other_mobs.mcfunction new file mode 100644 index 00000000..069e331a --- /dev/null +++ b/Brilliance Datapack/data/do2/functions/mob_controller/generate_mobs/check_other_mobs.mcfunction @@ -0,0 +1,12 @@ +scoreboard objectives add do2.tests.amountOfMobsExists + + +# Death Room Ravager +scoreboard players set $dungeon do2.tests.amountOfMobsExists 0 +execute as @e[type=ravager,tag=L0DEATHROOM] run scoreboard players add $dungeon do2.tests.amountOfMobsExists 1 +execute unless score $dungeon do2.tests.amountOfMobsExists matches 1 run kill @e[type=ravager,tag=L0DEATHROOM] +execute unless score $dungeon do2.tests.amountOfMobsExists matches 1 run summon minecraft:ravager -632 -48 1990 {PersistenceRequired:1b, Tags: ["L0DEATHROOM"], Invulnerable: 1b, Health: 100f, CustomName: '{"text":"nothing, they survived Decked Out"}', Fire: -1s} + +# Todo: do checks for other killers. Such as skeleton, evokers, axolotals, etc + +scoreboard objectives remove do2.tests.amountOfMobsExists diff --git a/Brilliance Datapack/data/do2/functions/version.mcfunction b/Brilliance Datapack/data/do2/functions/version.mcfunction index c626f807..829ba820 100644 --- a/Brilliance Datapack/data/do2/functions/version.mcfunction +++ b/Brilliance Datapack/data/do2/functions/version.mcfunction @@ -1,3 +1,3 @@ -# DATAPACK VERSION NUMBER: 0.13.10 +# DATAPACK VERSION NUMBER: 0.13.11 -tellraw @s ["",{"text":"The §o§n§aBrilliance Datapack§r's version is: [§b0.13.10§r] Check latest version "},{"text":"§o§b§nhere§r","clickEvent":{"action":"open_url","value":"https://github.com/trackedout/Brilliance/blob/main/Brilliance%20Datapack/data/do2/functions/version.mcfunction"}},{"text":"."}] +tellraw @s ["",{"text":"The §o§n§aBrilliance Datapack§r's version is: [§b0.13.11§r] Check latest version "},{"text":"§o§b§nhere§r","clickEvent":{"action":"open_url","value":"https://github.com/trackedout/Brilliance/blob/main/Brilliance%20Datapack/data/do2/functions/version.mcfunction"}},{"text":"."}]