diff --git a/Brilliance Datapack/TODO.md b/Brilliance Datapack/TODO.md index 710eb023..47ae4f84 100644 --- a/Brilliance Datapack/TODO.md +++ b/Brilliance Datapack/TODO.md @@ -1,6 +1,5 @@ # Other TODO: -- Rename Level Controller to Mob Controller. -- level controller has no preset names for wardens and drowned. In case player somehow goes over default number of names. +- mob controller has no preset names for wardens and drowned. In case player somehow goes over default number of names. - Backroom zone markers need to be populated. - Numbered Ravager currently only counts ravagers in their ZONE, not across the entire level. Need to fix, and exclude special mobs in the count. - Check for TOO MANY mobs to correct them. diff --git a/Brilliance Datapack/data/do2/functions/dev/books/level_interface_book.mcfunction b/Brilliance Datapack/data/do2/functions/dev/books/level_interface_book.mcfunction index 462a8e30..5a4fb3e8 100644 --- a/Brilliance Datapack/data/do2/functions/dev/books/level_interface_book.mcfunction +++ b/Brilliance Datapack/data/do2/functions/dev/books/level_interface_book.mcfunction @@ -1 +1 @@ -give @s written_book{"pages": ["[\" Tracked Out's\\n§1§oLevel Controller!\\n\\n\",{\"text\":\"§1[INFO]\",\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[{\"text\":\"§oNote, you can §o§lCLICK§r §ror §o§lHOVER§r §ron any text wrapped in brackets: §1[LIKE THIS]\"}]}},\"\\n\\n§lButton Panel:§r\\nLevel Selector.\",{\"text\":\"§1[PG 2]\",\"clickEvent\":{\"action\":\"change_page\",\"value\":\"2\"}},\"\\n\\n§lFloor Lever:§r\\n§rZone Controller\",{\"text\":\"§1[PG 3]\",\"clickEvent\":{\"action\":\"change_page\",\"value\":\"3\"}},\"\\n\\n§lMain Interface:§r\\n§rLevel Modifier\",{\"text\":\"§1[PG 8]\",\"clickEvent\":{\"action\":\"change_page\",\"value\":\"8\"}}]","[\" §lButton Panel§r\\n§r===================\\n\\nThis is a level selector panel. This lets you choose which level to edit using the \",{\"text\":\"§1§l[Level Modifier]\",\"clickEvent\":{\"action\":\"change_page\",\"value\":8}},\".\\n\\n§oNote§r: Only one level may be edited at a time.\"]","[\" §lZone Controller§r\\n===================\\n\\nFor three of the levels you may use the lever on the floor to enable or disable zones for that level.\\n\\nLevels with zones:\\n - §3Level 1§r\\n - §cLevel 2§r\\n - §5Level 4§r\\n\",{\"text\":\"§9§o---§lContinues§r§9§o---\\\\/§r\",\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[{\"text\":\"Information continues\\nonto the next page.\"}]}}]","[\" §lZone Controller§r\\n===================\\n\\n§oNote§r: §8Level 3§r §rcan't ever have zones due to level design restrictions.\\n\\nZones are areas that have obstacles that prevent killers from leaving their area.\\n\\n\",{\"text\":\"§9§o---§lContinues§r§9§o---\\\\/§r\",\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[{\"text\":\"Information continues\\nonto the next page.\"}]}}]","[\" §lZone Controller§r\\n===================\\n\\nIf you have a zone disabled, the killers will start spread out but may leave their area at any time.\\n\\n§oNote§r: §6TangoTek§r §rmentioned on stream he hated having zones in §3Decked Out 2§r\\n\",{\"text\":\"§9§o---§lContinues§r§9§o---\\\\/§r\",\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[{\"text\":\"Information continues\\nonto the next page.\"}]}}]","[\" §lZone Controller§r\\n===================\\n\\nHowever, §6TangoTek§r §rfelt it was the lesser evil to ensure killers start the game spread out.\\n\\n§bBrilliance§r §rdistributes killers automatically throughout levels upon game start.\\n\",{\"text\":\"§9§o---§lContinues§r§9§o---\\\\/§r\",\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[{\"text\":\"Information continues\\nonto the next page.\"}]}}]","[\" §lZone Controller§r\\n===================\\n\\nIt is up to you whether you would prefer:\\n\\n - Playing the game how §6TangoTek§r §rwished it could be.\\n§o§lOR§r\\n - How §3Decked Out 2§r §rwas played originally.\"]","[\" §lLevel Modifier§r\\n===================\\n\\nThis panel lets you control a lot of things happening in each level.\\n\\nThis is a complicated subject, so we will split it up into multiple sections.\\n\\n\",{\"text\":\"§9§o---§lContinues§r§9§o---\\\\/§r\",\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[{\"text\":\"Information continues\\nonto the next page.\"}]}}]","[\" §lLevel Modifier§r\\n===================\\n\\n\",{\"text\":\"§1§l[The Signs]\",\"clickEvent\":{\"action\":\"change_page\",\"value\":10}},\"\\n\\n\",{\"text\":\"§1§l[The Levers]\",\"clickEvent\":{\"action\":\"change_page\",\"value\":11}},\"\\n\\n\",{\"text\":\"§1§l[The Wool]\",\"clickEvent\":{\"action\":\"change_page\",\"value\":12}},\"\\n\\n\",{\"text\":\"§1§l[The Shulkers]\",\"clickEvent\":{\"action\":\"change_page\",\"value\":13}},\"\\n\\n\",{\"text\":\"§1§l[The Barrels]\",\"clickEvent\":{\"action\":\"change_page\",\"value\":14}},\"\\n\\n\"]","[\" §l§oThe Signs§r\\n===================\\n\\nThe §b1st§r §rrow of the interface.\\n\\nThis will tell you what zone the §lCOLUMN§r §rcontrols. It will also hold a brief description what areas are in it's zone.\"]","[\" §l§oThe Levers§r\\n===================\\n\\nThe §b2nd§r §rrow of the interface.\\n\\nThe levers here is for developers or game masters to enable making all the invisible markers in it's zone temporarily visible.\\n\\nThis doesn't effect gameplay but would be highly annoying if you accidentally left it on.\"]","[\" §l§oThe Wool Blocks§r\\n===================\\n\\nThe §b3rd§r §rrow of the interface.\\n\\nThe color of the wool is what color the invisible markers would be if turned visible temporarily.\\n\\nMore info about the markers: \",{\"text\":\"§1[PG 16]\",\"clickEvent\":{\"action\":\"change_page\",\"value\":\"16\"}}]","[\" §l§oThe Shulkers§r\\n===================\\n\\nThe §b4th§r §rrow of the interface.\\n\\nThe shulkers here do:\"]","[\" §l§oThe Barrels§r\\n===================\\n\\nThe §b5th§r §rrow of the interface.\\n\\nThe barrels here do:\"]","[\" §l§oADDITIONAL INFO§r\\n===================\\n\\nIf you have Zones Disabled, §3Decked Out 2§r §rwill §lNOT§r §ruse the shulker and barrel in it's Zone Enabled counterpart, §oand vice versa§r.\\n\\nEach one is completely separated.\"]","[\" §l§oMarkers Info§r\\n===================\\n\\nThe invisible markers control where killers might start in their zone.\\n\\nAt the start of each game, each killer randomly chooses 1 marker in their zone and will start the game in that marker's position.\"]","[\" §l§oLevel Four§r\\n===================\\n\\nLevel 4 is particularly unique, while you may disable zones, this isn't recommended.\\n\\nWardens §owill§r clump up together and lessen the difficulty if zones dont keep the Wardens separated.\"]"],"author": "§6Tracked Out§r","title": "Level Controllers","display": {"Lore": ["[\"§5§oDescription of how to use the new \"]","[\"§3§oDecked Out 2§r§r§5§o's level controller.\"]"]}} +give @s written_book{"pages": ["[\" Tracked Out's\\n§1§oMob Controller!\\n\\n\",{\"text\":\"§1[INFO]\",\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[{\"text\":\"§oNote, you can §o§lCLICK§r §ror §o§lHOVER§r §ron any text wrapped in brackets: §1[LIKE THIS]\"}]}},\"\\n\\n§lButton Panel:§r\\nLevel Selector.\",{\"text\":\"§1[PG 2]\",\"clickEvent\":{\"action\":\"change_page\",\"value\":\"2\"}},\"\\n\\n§lFloor Lever:§r\\n§rZone Controller\",{\"text\":\"§1[PG 3]\",\"clickEvent\":{\"action\":\"change_page\",\"value\":\"3\"}},\"\\n\\n§lMain Interface:§r\\n§rLevel Modifier\",{\"text\":\"§1[PG 8]\",\"clickEvent\":{\"action\":\"change_page\",\"value\":\"8\"}}]","[\" §lButton Panel§r\\n§r===================\\n\\nThis is a level selector panel. This lets you choose which level to edit using the \",{\"text\":\"§1§l[Level Modifier]\",\"clickEvent\":{\"action\":\"change_page\",\"value\":8}},\".\\n\\n§oNote§r: Only one level may be edited at a time.\"]","[\" §lZone Controller§r\\n===================\\n\\nFor three of the levels you may use the lever on the floor to enable or disable zones for that level.\\n\\nLevels with zones:\\n - §3Level 1§r\\n - §cLevel 2§r\\n - §5Level 4§r\\n\",{\"text\":\"§9§o---§lContinues§r§9§o---\\\\/§r\",\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[{\"text\":\"Information continues\\nonto the next page.\"}]}}]","[\" §lZone Controller§r\\n===================\\n\\n§oNote§r: §8Level 3§r §rcan't ever have zones due to level design restrictions.\\n\\nZones are areas that have obstacles that prevent killers from leaving their area.\\n\\n\",{\"text\":\"§9§o---§lContinues§r§9§o---\\\\/§r\",\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[{\"text\":\"Information continues\\nonto the next page.\"}]}}]","[\" §lZone Controller§r\\n===================\\n\\nIf you have a zone disabled, the killers will start spread out but may leave their area at any time.\\n\\n§oNote§r: §6TangoTek§r §rmentioned on stream he hated having zones in §3Decked Out 2§r\\n\",{\"text\":\"§9§o---§lContinues§r§9§o---\\\\/§r\",\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[{\"text\":\"Information continues\\nonto the next page.\"}]}}]","[\" §lZone Controller§r\\n===================\\n\\nHowever, §6TangoTek§r §rfelt it was the lesser evil to ensure killers start the game spread out.\\n\\n§bBrilliance§r §rdistributes killers automatically throughout levels upon game start.\\n\",{\"text\":\"§9§o---§lContinues§r§9§o---\\\\/§r\",\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[{\"text\":\"Information continues\\nonto the next page.\"}]}}]","[\" §lZone Controller§r\\n===================\\n\\nIt is up to you whether you would prefer:\\n\\n - Playing the game how §6TangoTek§r §rwished it could be.\\n§o§lOR§r\\n - How §3Decked Out 2§r §rwas played originally.\"]","[\" §lLevel Modifier§r\\n===================\\n\\nThis panel lets you control a lot of things happening in each level.\\n\\nThis is a complicated subject, so we will split it up into multiple sections.\\n\\n\",{\"text\":\"§9§o---§lContinues§r§9§o---\\\\/§r\",\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[{\"text\":\"Information continues\\nonto the next page.\"}]}}]","[\" §lLevel Modifier§r\\n===================\\n\\n\",{\"text\":\"§1§l[The Signs]\",\"clickEvent\":{\"action\":\"change_page\",\"value\":10}},\"\\n\\n\",{\"text\":\"§1§l[The Levers]\",\"clickEvent\":{\"action\":\"change_page\",\"value\":11}},\"\\n\\n\",{\"text\":\"§1§l[The Wool]\",\"clickEvent\":{\"action\":\"change_page\",\"value\":12}},\"\\n\\n\",{\"text\":\"§1§l[The Shulkers]\",\"clickEvent\":{\"action\":\"change_page\",\"value\":13}},\"\\n\\n\",{\"text\":\"§1§l[The Barrels]\",\"clickEvent\":{\"action\":\"change_page\",\"value\":14}},\"\\n\\n\"]","[\" §l§oThe Signs§r\\n===================\\n\\nThe §b1st§r §rrow of the interface.\\n\\nThis will tell you what zone the §lCOLUMN§r §rcontrols. It will also hold a brief description what areas are in it's zone.\"]","[\" §l§oThe Levers§r\\n===================\\n\\nThe §b2nd§r §rrow of the interface.\\n\\nThe levers here is for developers or game masters to enable making all the invisible markers in it's zone temporarily visible.\\n\\nThis doesn't effect gameplay but would be highly annoying if you accidentally left it on.\"]","[\" §l§oThe Wool Blocks§r\\n===================\\n\\nThe §b3rd§r §rrow of the interface.\\n\\nThe color of the wool is what color the invisible markers would be if turned visible temporarily.\\n\\nMore info about the markers: \",{\"text\":\"§1[PG 16]\",\"clickEvent\":{\"action\":\"change_page\",\"value\":\"16\"}}]","[\" §l§oThe Shulkers§r\\n===================\\n\\nThe §b4th§r §rrow of the interface.\\n\\nThe shulkers here do:\"]","[\" §l§oThe Barrels§r\\n===================\\n\\nThe §b5th§r §rrow of the interface.\\n\\nThe barrels here do:\"]","[\" §l§oADDITIONAL INFO§r\\n===================\\n\\nIf you have Zones Disabled, §3Decked Out 2§r §rwill §lNOT§r §ruse the shulker and barrel in it's Zone Enabled counterpart, §oand vice versa§r.\\n\\nEach one is completely separated.\"]","[\" §l§oMarkers Info§r\\n===================\\n\\nThe invisible markers control where killers might start in their zone.\\n\\nAt the start of each game, each killer randomly chooses 1 marker in their zone and will start the game in that marker's position.\"]","[\" §l§oLevel Four§r\\n===================\\n\\nLevel 4 is particularly unique, while you may disable zones, this isn't recommended.\\n\\nWardens §owill§r clump up together and lessen the difficulty if zones dont keep the Wardens separated.\"]"],"author": "§6Tracked Out§r","title": "Level Controllers","display": {"Lore": ["[\"§5§oDescription of how to use the new \"]","[\"§3§oDecked Out 2§r§r§5§o's level controller.\"]"]}} diff --git a/Brilliance Datapack/data/do2/functions/dungeon_setup/all.mcfunction b/Brilliance Datapack/data/do2/functions/dungeon_setup/all.mcfunction index ecee5aa8..045fb816 100644 --- a/Brilliance Datapack/data/do2/functions/dungeon_setup/all.mcfunction +++ b/Brilliance Datapack/data/do2/functions/dungeon_setup/all.mcfunction @@ -11,7 +11,7 @@ function do2:dungeon_setup/refill/all execute if score $dungeon do2.config.fr.resetComposters matches 1 run function do2:dungeon_setup/reset_composters execute if score $dungeon do2.config.fr.cakeGauntlet matches 1 run setblock -618 -47 1988 cake[bites=0] -execute if score $dungeon do2.config.mc.controlSummons matches 1 run function do2:level_controller/generate_mobs +execute if score $dungeon do2.config.mc.controlSummons matches 1 run function do2:mob_controller/generate_mobs # - Start Log - execute if score $dungeon do2.config.mc.controlSummons matches 0 as @a[scores={do2.logs.dungeon_setup=3..}] run tellraw @s ["",{"text":"[§9B§r]: Testing for required entities. ("},{"text":" ? ","color":"dark_red","hoverEvent":{"action":"show_text","contents":["",{"text":"§rIncludes:\n - Teleport Markers\n - Ravagers\n - Wardens\n - §oOne Eyed Willy§r\n - §oDavy Bones§r\n - §oEndermites§r\n - §oEvokers§r"}]}},{"text":")"}] execute if score $dungeon do2.config.mc.controlSummons matches 0 run function do2:dungeon_setup/test_for_ravagers diff --git a/Brilliance Datapack/data/do2/functions/dungeon_setup/summon/summon_ravagers.mcfunction b/Brilliance Datapack/data/do2/functions/dungeon_setup/summon/summon_ravagers.mcfunction index 0f8dfdee..70f3eaf2 100644 --- a/Brilliance Datapack/data/do2/functions/dungeon_setup/summon/summon_ravagers.mcfunction +++ b/Brilliance Datapack/data/do2/functions/dungeon_setup/summon/summon_ravagers.mcfunction @@ -4,17 +4,17 @@ execute as @a[scores={do2.logs.dungeon_setup=3..}] run tellraw @s ["",{"text":"[ #L1 -execute if score $dungeon do2.config.mc.controlSummons matches 1 run function do2:level_controller/generate_mobs/zones/l1z1 -execute if score $dungeon do2.config.mc.controlSummons matches 1 run function do2:level_controller/generate_mobs/zones/l1z2 -execute if score $dungeon do2.config.mc.controlSummons matches 1 run function do2:level_controller/generate_mobs/zones/l1z3 -execute if score $dungeon do2.config.mc.controlSummons matches 1 if score $dungeon do2.config.mc.level1Zones matches 0 run function do2:level_controller/generate_mobs/zones/l1z4 -execute if score $dungeon do2.config.mc.controlSummons matches 1 if score $dungeon do2.config.mc.level1Zones matches 0 run function do2:level_controller/generate_mobs/zones/l1z5 +execute if score $dungeon do2.config.mc.controlSummons matches 1 run function do2:mob_controller/generate_mobs/zones/l1z1 +execute if score $dungeon do2.config.mc.controlSummons matches 1 run function do2:mob_controller/generate_mobs/zones/l1z2 +execute if score $dungeon do2.config.mc.controlSummons matches 1 run function do2:mob_controller/generate_mobs/zones/l1z3 +execute if score $dungeon do2.config.mc.controlSummons matches 1 if score $dungeon do2.config.mc.level1Zones matches 0 run function do2:mob_controller/generate_mobs/zones/l1z4 +execute if score $dungeon do2.config.mc.controlSummons matches 1 if score $dungeon do2.config.mc.level1Zones matches 0 run function do2:mob_controller/generate_mobs/zones/l1z5 #L2 -execute if score $dungeon do2.config.mc.controlSummons matches 1 run function do2:level_controller/generate_mobs/l2z1 -execute if score $dungeon do2.config.mc.controlSummons matches 1 run function do2:level_controller/generate_mobs/l2z2 -execute if score $dungeon do2.config.mc.controlSummons matches 1 run function do2:level_controller/generate_mobs/l2z3 -execute if score $dungeon do2.config.mc.controlSummons matches 1 if score $dungeon do2.config.mc.level2Zones matches 0 run function do2:level_controller/generate_mobs/zones/l2z4 -execute if score $dungeon do2.config.mc.controlSummons matches 1 if score $dungeon do2.config.mc.level2Zones matches 0 run function do2:level_controller/generate_mobs/zones/l2z5 +execute if score $dungeon do2.config.mc.controlSummons matches 1 run function do2:mob_controller/generate_mobs/l2z1 +execute if score $dungeon do2.config.mc.controlSummons matches 1 run function do2:mob_controller/generate_mobs/l2z2 +execute if score $dungeon do2.config.mc.controlSummons matches 1 run function do2:mob_controller/generate_mobs/l2z3 +execute if score $dungeon do2.config.mc.controlSummons matches 1 if score $dungeon do2.config.mc.level2Zones matches 0 run function do2:mob_controller/generate_mobs/zones/l2z4 +execute if score $dungeon do2.config.mc.controlSummons matches 1 if score $dungeon do2.config.mc.level2Zones matches 0 run function do2:mob_controller/generate_mobs/zones/l2z5 #L1 diff --git a/Brilliance Datapack/data/do2/functions/events/on_datapack_tick.mcfunction b/Brilliance Datapack/data/do2/functions/events/on_datapack_tick.mcfunction index 3af0130c..de096c8c 100644 --- a/Brilliance Datapack/data/do2/functions/events/on_datapack_tick.mcfunction +++ b/Brilliance Datapack/data/do2/functions/events/on_datapack_tick.mcfunction @@ -40,7 +40,7 @@ execute if score $dungeon do2.config.forceFood matches 1 as @a[scores={do2.utili function do2:scoreboard/triggers/checks # Run the mob controller panel -function do2:level_controller/run_per_tick +function do2:mob_controller/run_per_tick # Summon Dev Markers #function do2:dev/markers/edit_markers/summon_markers diff --git a/Brilliance Datapack/data/do2/functions/level_controller/get_mob_count/count_mobs.mcfunction b/Brilliance Datapack/data/do2/functions/level_controller/get_mob_count/count_mobs.mcfunction deleted file mode 100644 index 36fe8535..00000000 --- a/Brilliance Datapack/data/do2/functions/level_controller/get_mob_count/count_mobs.mcfunction +++ /dev/null @@ -1,5 +0,0 @@ -function do2:level_controller/get_mob_count/l1 -function do2:level_controller/get_mob_count/l2 -function do2:level_controller/get_mob_count/l3 -function do2:level_controller/get_mob_count/l4 -function do2:level_controller/get_mob_count/backrooms diff --git a/Brilliance Datapack/data/do2/functions/level_controller/get_mob_names/backrooms.mcfunction b/Brilliance Datapack/data/do2/functions/level_controller/get_mob_names/backrooms.mcfunction deleted file mode 100644 index 2850bf66..00000000 --- a/Brilliance Datapack/data/do2/functions/level_controller/get_mob_names/backrooms.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -execute positioned -519 123 1946 run function do2:level_controller/get_mob_names/get_names_from_shulker -data modify storage do2:mobs level0_zone1 set from storage do2:mobs temp -execute positioned -519 123 1945 run function do2:level_controller/get_mob_names/get_names_from_shulker -data modify storage do2:mobs level0_zone2 set from storage do2:mobs temp -execute positioned -519 123 1943 run function do2:level_controller/get_mob_names/get_names_from_shulker -data modify storage do2:mobs level2_willy set from storage do2:mobs temp diff --git a/Brilliance Datapack/data/do2/functions/level_controller/get_mob_names/get_mob_names.mcfunction b/Brilliance Datapack/data/do2/functions/level_controller/get_mob_names/get_mob_names.mcfunction deleted file mode 100644 index 9a72bb8f..00000000 --- a/Brilliance Datapack/data/do2/functions/level_controller/get_mob_names/get_mob_names.mcfunction +++ /dev/null @@ -1,5 +0,0 @@ -function do2:level_controller/get_mob_names/l1 -function do2:level_controller/get_mob_names/l2 -function do2:level_controller/get_mob_names/l3 -function do2:level_controller/get_mob_names/l4 -function do2:level_controller/get_mob_names/backrooms diff --git a/Brilliance Datapack/data/do2/functions/level_controller/get_mob_names/l3.mcfunction b/Brilliance Datapack/data/do2/functions/level_controller/get_mob_names/l3.mcfunction deleted file mode 100644 index 8cc6e499..00000000 --- a/Brilliance Datapack/data/do2/functions/level_controller/get_mob_names/l3.mcfunction +++ /dev/null @@ -1,6 +0,0 @@ -execute positioned -523 123 1945 run function do2:level_controller/get_mob_names/get_names_from_shulker -data modify storage do2:mobs level3_zone1 set from storage do2:mobs temp -execute positioned -523 123 1944 run function do2:level_controller/get_mob_names/get_names_from_shulker -data modify storage do2:mobs level3_zone2 set from storage do2:mobs temp -execute positioned -523 123 1943 run function do2:level_controller/get_mob_names/get_names_from_shulker -data modify storage do2:mobs level3_zone3 set from storage do2:mobs temp diff --git a/Brilliance Datapack/data/do2/functions/mob_controller/add_mob_names/ravager_add_numbered_name.mcfunction b/Brilliance Datapack/data/do2/functions/mob_controller/add_mob_names/ravager_add_numbered_name.mcfunction index c523f53b..1482f3e7 100644 --- a/Brilliance Datapack/data/do2/functions/mob_controller/add_mob_names/ravager_add_numbered_name.mcfunction +++ b/Brilliance Datapack/data/do2/functions/mob_controller/add_mob_names/ravager_add_numbered_name.mcfunction @@ -3,12 +3,9 @@ scoreboard objectives add do2.tests.amountOfRavagers dummy scoreboard players set $dungeon do2.tests.amountOfRavagers 0 # Count number of ravagers. -execute as @e[type=ravager] run scoreboard players add $dungeon do2.tests.amountOfRavagers 1 -# Subtract 2 from that number. To no longer count backroom ravager & deathroom ravager. -scoreboard players remove $dungeon do2.tests.amountOfRavagers 2 +execute as @e[type=ravager,tag=!L0DEATHROOM,tag=!L0Z1] run scoreboard players add $dungeon do2.tests.amountOfRavagers 1 + -# Humans count from 1, computers count from 0. Add a fix. -scoreboard players add $dungeon do2.tests.amountOfRavagers 1 # Summon a text_display entity, to convert data into raw text, to store the raw text as a mob name. summon minecraft:text_display -508 123 1956 {Tags:["ConvertToTextHelper"],text:'[{"text":"Ravager: #"},{"score":{"name":"$dungeon","objective":"do2.tests.amountOfRavagers"}}]'} @@ -18,7 +15,6 @@ scoreboard players add $dungeon do2.utility.mc.mobNamesCount 1 # Cleanup kill @e[type=minecraft:text_display,tag=ConvertToTextHelper] scoreboard objectives remove do2.tests.amountOfRavagers -scoreboard players remove $dungeon do2.tests.amountOfRavagers 1 # If there STILL isn't enough mobNames for the amount of names needed, loop this function. execute if score $dungeon do2.utility.mc.mobNamesCount < $l1z1 do2.config.mc.levelZoneMobCount run function do2:mob_controller/add_mob_names/ravager_add_numbered_name 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 12308a37..48d86f63 100644 --- a/Brilliance Datapack/data/do2/functions/mob_controller/generate_mobs.mcfunction +++ b/Brilliance Datapack/data/do2/functions/mob_controller/generate_mobs.mcfunction @@ -7,26 +7,38 @@ scoreboard players set $dungeon do2.utility.mc.collectingLogs 1 data modify storage do2:mobs mobCountErrors set value [] data modify storage do2:mobs mobNameCountErrors set value [] +# kill all old mobs +kill @e[type=ravager,tag=L0Z1] +kill @e[type=drowned,tag=L0Z2] +kill @e[type=drowned,tag=L2WILLY] +kill @e[type=ravager,tag=L1Z1] +kill @e[type=ravager,tag=L1Z2] +kill @e[type=ravager,tag=L1Z3] +kill @e[type=ravager,tag=L1Z4] +kill @e[type=ravager,tag=L1Z5] +kill @e[type=ravager,tag=L2Z1] +kill @e[type=ravager,tag=L2Z2] +kill @e[type=ravager,tag=L2Z3] +kill @e[type=ravager,tag=L2Z4] +kill @e[type=ravager,tag=L2Z5] +kill @e[type=warden,tag=L3Z1] +kill @e[type=warden,tag=L3Z2] +kill @e[type=warden,tag=L3Z3] +kill @e[type=warden,tag=L4Z1] +kill @e[type=warden,tag=L4Z2] +kill @e[type=warden,tag=L4Z3] + # For backwards compatibility kill @e[tag=L0TRAIN] # L0 -kill @e[type=drowned,tag=L2WILLY] -kill @e[type=ravager,tag=L0Z1] -kill @e[type=drowned,tag=L0Z2] -function do2:mob_controller/generate_mobs/zones/l2willy function do2:mob_controller/generate_mobs/zones/l0z1 function do2:mob_controller/generate_mobs/zones/l0z2 +function do2:mob_controller/generate_mobs/zones/l2willy # L1 -kill @e[type=ravager,tag=L1Z1] -kill @e[type=ravager,tag=L1Z2] -kill @e[type=ravager,tag=L1Z3] -kill @e[type=ravager,tag=L1Z4] -kill @e[type=ravager,tag=L1Z5] - function do2:mob_controller/generate_mobs/zones/l1z1 function do2:mob_controller/generate_mobs/zones/l1z2 function do2:mob_controller/generate_mobs/zones/l1z3 @@ -35,12 +47,6 @@ execute if score $dungeon do2.config.mc.level1Zones matches 0 run function do2:m # L2 -kill @e[type=ravager,tag=L2Z1] -kill @e[type=ravager,tag=L2Z2] -kill @e[type=ravager,tag=L2Z3] -kill @e[type=ravager,tag=L2Z4] -kill @e[type=ravager,tag=L2Z5] - function do2:mob_controller/generate_mobs/zones/l2z1 function do2:mob_controller/generate_mobs/zones/l2z2 function do2:mob_controller/generate_mobs/zones/l2z3 @@ -49,19 +55,11 @@ execute if score $dungeon do2.config.mc.level2Zones matches 0 run function do2:m # L3 -kill @e[type=warden,tag=L3Z1] -kill @e[type=warden,tag=L3Z2] -kill @e[type=warden,tag=L3Z3] - function do2:mob_controller/generate_mobs/zones/l3z1 function do2:mob_controller/generate_mobs/zones/l3z2 function do2:mob_controller/generate_mobs/zones/l3z3 # L4 -kill @e[type=warden,tag=L4Z1] -kill @e[type=warden,tag=L4Z2] -kill @e[type=warden,tag=L4Z3] - function do2:mob_controller/generate_mobs/zones/l4z1 function do2:mob_controller/generate_mobs/zones/l4z2 function do2:mob_controller/generate_mobs/zones/l4z3 diff --git a/Brilliance Datapack/data/do2/functions/mob_controller/generate_mobs/generate_enough_mobs.mcfunction b/Brilliance Datapack/data/do2/functions/mob_controller/generate_mobs/generate_enough_mobs.mcfunction index 0ca5a943..abe2c797 100644 --- a/Brilliance Datapack/data/do2/functions/mob_controller/generate_mobs/generate_enough_mobs.mcfunction +++ b/Brilliance Datapack/data/do2/functions/mob_controller/generate_mobs/generate_enough_mobs.mcfunction @@ -1,4 +1,3 @@ - # If no more mobs need to be made, return execute if score $dungeon do2.utility.mc.mobGenerationCount matches ..0 run return 0 diff --git a/Brilliance Datapack/data/do2/functions/scoreboard/config/config_setup.mcfunction b/Brilliance Datapack/data/do2/functions/scoreboard/config/config_setup.mcfunction index 9f1daf22..1431dc4e 100644 --- a/Brilliance Datapack/data/do2/functions/scoreboard/config/config_setup.mcfunction +++ b/Brilliance Datapack/data/do2/functions/scoreboard/config/config_setup.mcfunction @@ -37,12 +37,12 @@ function do2:scoreboard/config/boolean_levers/use_world_cycles/sign function do2:scoreboard/config/boolean_levers/force_food/sign function do2:scoreboard/config/boolean_levers/bats_distraction/sign -# ==================== -# - LEVEL CONTROLLER - -# ==================== +# ================== +# - MOB CONTROLLER - +# ================== # Reset Selected to Default setblock -522 115 1950 minecraft:warped_wall_sign[facing=east] -data merge block -522 115 1950 {front_text:{messages:['{"text":"§b§oReset selected"}','{"text":"§b§oto defaults"}','{"text":""}','{"text":"§9§o§n( CLICK ME )","clickEvent":{"action":"run_command","value":"function do2:level_controller/reset_to_default/reset_current"}}']}} +data merge block -522 115 1950 {front_text:{messages:['{"text":"§b§oReset selected"}','{"text":"§b§oto defaults"}','{"text":""}','{"text":"§9§o§n( CLICK ME )","clickEvent":{"action":"run_command","value":"function do2:mob_controller/reset_to_default/reset_current"}}']}} # Reset All to Default setblock -522 115 1951 minecraft:warped_wall_sign[facing=east] -data merge block -522 115 1951 {front_text:{messages:['{"text":"§b§oReset all"}','{"text":"§b§oto defaults"}','{"text":""}','{"text":"§9§o§n( CLICK ME )","clickEvent":{"action":"run_command","value":"function do2:level_controller/reset_to_default/reset_all"}}']}} +data merge block -522 115 1951 {front_text:{messages:['{"text":"§b§oReset all"}','{"text":"§b§oto defaults"}','{"text":""}','{"text":"§9§o§n( CLICK ME )","clickEvent":{"action":"run_command","value":"function do2:mob_controller/reset_to_default/reset_all"}}']}} diff --git a/Brilliance Datapack/data/do2/functions/version.mcfunction b/Brilliance Datapack/data/do2/functions/version.mcfunction index b9eba7e3..75cfbd25 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.1 +# DATAPACK VERSION NUMBER: 0.13.2 -tellraw @s ["",{"text":"The §o§n§aBrilliance Datapack§r's version is: [§b0.13.1§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.2§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":"."}]