Skip to content

Commit

Permalink
force_food now is accessible config option
Browse files Browse the repository at this point in the history
  • Loading branch information
Frustrated-Programmer committed Jun 11, 2024
1 parent 58ccd46 commit ea0f6f6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"}]
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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"}']}}
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ea0f6f6

Please sign in to comment.