-
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.
force_food now is accessible config option
- Loading branch information
1 parent
58ccd46
commit ea0f6f6
Showing
5 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
...atapack/data/do2/functions/scoreboard/config/boolean_levers/force_food/disable.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 |
---|---|---|
@@ -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 |
1 change: 1 addition & 0 deletions
1
...atapack/data/do2/functions/scoreboard/config/boolean_levers/force_food/display.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 |
---|---|---|
@@ -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-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"}] |
2 changes: 2 additions & 0 deletions
2
...Datapack/data/do2/functions/scoreboard/config/boolean_levers/force_food/enable.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 |
---|---|---|
@@ -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 |
3 changes: 3 additions & 0 deletions
3
...e Datapack/data/do2/functions/scoreboard/config/boolean_levers/force_food/sign.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 |
---|---|---|
@@ -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"}']}} |
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