From ea0f6f694c8486a44e42dbb727781589a19d391a Mon Sep 17 00:00:00 2001 From: FrustratedProgrammer Date: Mon, 10 Jun 2024 21:29:56 -0600 Subject: [PATCH] force_food now is accessible config option --- .../config/boolean_levers/force_food/disable.mcfunction | 2 ++ .../config/boolean_levers/force_food/display.mcfunction | 1 + .../config/boolean_levers/force_food/enable.mcfunction | 2 ++ .../config/boolean_levers/force_food/sign.mcfunction | 3 +++ .../do2/functions/scoreboard/config/config_setup.mcfunction | 4 ++-- 5 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 Brilliance Datapack/data/do2/functions/scoreboard/config/boolean_levers/force_food/disable.mcfunction create mode 100644 Brilliance Datapack/data/do2/functions/scoreboard/config/boolean_levers/force_food/display.mcfunction create mode 100644 Brilliance Datapack/data/do2/functions/scoreboard/config/boolean_levers/force_food/enable.mcfunction create mode 100644 Brilliance Datapack/data/do2/functions/scoreboard/config/boolean_levers/force_food/sign.mcfunction diff --git a/Brilliance Datapack/data/do2/functions/scoreboard/config/boolean_levers/force_food/disable.mcfunction b/Brilliance Datapack/data/do2/functions/scoreboard/config/boolean_levers/force_food/disable.mcfunction new file mode 100644 index 00000000..6f98d04f --- /dev/null +++ b/Brilliance Datapack/data/do2/functions/scoreboard/config/boolean_levers/force_food/disable.mcfunction @@ -0,0 +1,2 @@ +scoreboard players set $dungeon do2.config.forceFood 0 +playsound minecraft:entity.generic.extinguish_fire voice @a[distance=..20] -535 115 1961 1 1 diff --git a/Brilliance Datapack/data/do2/functions/scoreboard/config/boolean_levers/force_food/display.mcfunction b/Brilliance Datapack/data/do2/functions/scoreboard/config/boolean_levers/force_food/display.mcfunction new file mode 100644 index 00000000..dbfa0e8a --- /dev/null +++ b/Brilliance Datapack/data/do2/functions/scoreboard/config/boolean_levers/force_food/display.mcfunction @@ -0,0 +1 @@ +tellraw @s ["",{"text":"§6-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n\n §7Force Food & Saturation Levels\n\n§fThis config setting lets you enable/disable whether the datapack will §lforce §r§fthe player's food level to be full and their saturation level as if they eaten a cooked chicken.\n\n§lNotes§r:\n §o- If disabled, players can cheat higher saturation levels by eating specific foods.\n§6-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"}] diff --git a/Brilliance Datapack/data/do2/functions/scoreboard/config/boolean_levers/force_food/enable.mcfunction b/Brilliance Datapack/data/do2/functions/scoreboard/config/boolean_levers/force_food/enable.mcfunction new file mode 100644 index 00000000..4425cae9 --- /dev/null +++ b/Brilliance Datapack/data/do2/functions/scoreboard/config/boolean_levers/force_food/enable.mcfunction @@ -0,0 +1,2 @@ +scoreboard players set $dungeon do2.config.forceFood 1 +playsound minecraft:entity.player.burp voice @a[distance=..20] -535 115 1961 1 1 diff --git a/Brilliance Datapack/data/do2/functions/scoreboard/config/boolean_levers/force_food/sign.mcfunction b/Brilliance Datapack/data/do2/functions/scoreboard/config/boolean_levers/force_food/sign.mcfunction new file mode 100644 index 00000000..5fb692a3 --- /dev/null +++ b/Brilliance Datapack/data/do2/functions/scoreboard/config/boolean_levers/force_food/sign.mcfunction @@ -0,0 +1,3 @@ +# Force player's saturation and food +setblock -535 116 1960 minecraft:oak_wall_sign[facing=north] +data merge block -535 116 1960 {front_text:{has_glowing_text:1b,color:"cyan",messages:['{"text":""}','{"text":"Force player\'s","color":""}','{"text":"Food & Saturation","italic":"true","clickEvent":{"action":"run_command","value":"/function do2:scoreboard/config/boolean_levers/force_food/display"}}','{"text":"Levels.","italic":"true"}']}} 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 813c5a42..257c6788 100644 --- a/Brilliance Datapack/data/do2/functions/scoreboard/config/config_setup.mcfunction +++ b/Brilliance Datapack/data/do2/functions/scoreboard/config/config_setup.mcfunction @@ -33,6 +33,6 @@ function do2:scoreboard/config/boolean_levers/better_vex/sign function do2:scoreboard/config/boolean_levers/fast_reset/sign function do2:scoreboard/config/boolean_levers/force_gamemode/sign function do2:scoreboard/config/boolean_levers/disable_treasure/sign -function do2:scoreboard/config/boolean_levers/use_daylight_cycle/sign -function do2:scoreboard/config/boolean_levers/use_weather_cycle/sign +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