(Minecraft) How to give a player a message when their hunger is low?Does saturation increase before or after hunger?How can you burn your hunger bar the fastest in minecraft?Can't eat food or shoot arrows in minecraft?Giving player extra hungerHow do I set a specific team/player hungers bar?How do I get nausea and hunger potions?How to a show message only once?How can I eat whenever I wantHow can I control the hunger bar?Use tellraw to display a player death message about the player who died
When and why did journal article titles become descriptive, rather than creatively allusive?
Theorem won't go to multiple lines and is causing text to run off the page
How to improve/restore vintage Peugeot bike, or is it even worth it?
Short story with physics professor who "brings back the dead" (Asimov or Bradbury?)
My ID is expired, can I fly to the Bahamas with my passport?
Selecting a secure PIN for building access
For a benzene shown in a skeletal structure, what does a substituent to the center of the ring mean?
Why do we use caret (^) as the symbol for ctrl/control?
What word means "to make something obsolete"?
Can I get a paladin's steed by True Polymorphing into a monster that can cast Find Steed?
60s (or earlier) SF short story with FTL Travel using electron psychology aka addiclenendar technology
How did Arya get her dagger back from Sansa?
If Earth is tilted, why is Polaris always above the same spot?
Should one double the thirds or the fifth in chords?
What happens to matryoshka Mordenkainen's Magnificent Mansions?
Point of the the Dothraki's attack in GoT S8E3?
Identifying a transmission to myself
What happens to the Time Stone
Manager is threatning to grade me poorly if I don't complete the project
Junior developer struggles: how to communicate with management?
If 1. e4 c6 is considered as a sound defense for black, why is 1. c3 so rare?
Transpose of product of matrices
Why wasn't the Night King naked in S08E03?
What are the spoon bit of a spoon and fork bit of a fork called?
(Minecraft) How to give a player a message when their hunger is low?
Does saturation increase before or after hunger?How can you burn your hunger bar the fastest in minecraft?Can't eat food or shoot arrows in minecraft?Giving player extra hungerHow do I set a specific team/player hungers bar?How do I get nausea and hunger potions?How to a show message only once?How can I eat whenever I wantHow can I control the hunger bar?Use tellraw to display a player death message about the player who died
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I want players to get the message "Your hunger is low: eat something." when their hunger is at three bars.
minecraft minecraft-commands
New contributor
add a comment |
I want players to get the message "Your hunger is low: eat something." when their hunger is at three bars.
minecraft minecraft-commands
New contributor
add a comment |
I want players to get the message "Your hunger is low: eat something." when their hunger is at three bars.
minecraft minecraft-commands
New contributor
I want players to get the message "Your hunger is low: eat something." when their hunger is at three bars.
minecraft minecraft-commands
minecraft minecraft-commands
New contributor
New contributor
edited 34 mins ago
Nik3141
35412
35412
New contributor
asked 3 hours ago
Du GangschterDu Gangschter
82
82
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You should set up a scoreboard to track their hunger: /scoreboard objectives add hunger food
, and then in a repeating, always active command block (placed in a spawn chunk so its always loaded) put execute as @a[scores=hunger=6] run say I need to eat something
. I assumed that by 3 bars you meant three out of the ten, which is actually 6 hunger points, and that you want the message to play just once, not every tick that they have 6 or less food points, because that would probably be annoying. I also assumed it would be okay if the message is from the first person, but if it's not I can try to figure out how to use tellraw
selectors. This is a 1.14 specific answer but should also work in 1.13 too.
Thanks that worked for me but when I try it with title like this: execute as @a[scores=hunger=6] run title @a title "text":"I need to eat something" minecraft is spamming the messages
– Du Gangschter
41 mins ago
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "41"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Du Gangschter is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgaming.stackexchange.com%2fquestions%2f350734%2fminecraft-how-to-give-a-player-a-message-when-their-hunger-is-low%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You should set up a scoreboard to track their hunger: /scoreboard objectives add hunger food
, and then in a repeating, always active command block (placed in a spawn chunk so its always loaded) put execute as @a[scores=hunger=6] run say I need to eat something
. I assumed that by 3 bars you meant three out of the ten, which is actually 6 hunger points, and that you want the message to play just once, not every tick that they have 6 or less food points, because that would probably be annoying. I also assumed it would be okay if the message is from the first person, but if it's not I can try to figure out how to use tellraw
selectors. This is a 1.14 specific answer but should also work in 1.13 too.
Thanks that worked for me but when I try it with title like this: execute as @a[scores=hunger=6] run title @a title "text":"I need to eat something" minecraft is spamming the messages
– Du Gangschter
41 mins ago
add a comment |
You should set up a scoreboard to track their hunger: /scoreboard objectives add hunger food
, and then in a repeating, always active command block (placed in a spawn chunk so its always loaded) put execute as @a[scores=hunger=6] run say I need to eat something
. I assumed that by 3 bars you meant three out of the ten, which is actually 6 hunger points, and that you want the message to play just once, not every tick that they have 6 or less food points, because that would probably be annoying. I also assumed it would be okay if the message is from the first person, but if it's not I can try to figure out how to use tellraw
selectors. This is a 1.14 specific answer but should also work in 1.13 too.
Thanks that worked for me but when I try it with title like this: execute as @a[scores=hunger=6] run title @a title "text":"I need to eat something" minecraft is spamming the messages
– Du Gangschter
41 mins ago
add a comment |
You should set up a scoreboard to track their hunger: /scoreboard objectives add hunger food
, and then in a repeating, always active command block (placed in a spawn chunk so its always loaded) put execute as @a[scores=hunger=6] run say I need to eat something
. I assumed that by 3 bars you meant three out of the ten, which is actually 6 hunger points, and that you want the message to play just once, not every tick that they have 6 or less food points, because that would probably be annoying. I also assumed it would be okay if the message is from the first person, but if it's not I can try to figure out how to use tellraw
selectors. This is a 1.14 specific answer but should also work in 1.13 too.
You should set up a scoreboard to track their hunger: /scoreboard objectives add hunger food
, and then in a repeating, always active command block (placed in a spawn chunk so its always loaded) put execute as @a[scores=hunger=6] run say I need to eat something
. I assumed that by 3 bars you meant three out of the ten, which is actually 6 hunger points, and that you want the message to play just once, not every tick that they have 6 or less food points, because that would probably be annoying. I also assumed it would be okay if the message is from the first person, but if it's not I can try to figure out how to use tellraw
selectors. This is a 1.14 specific answer but should also work in 1.13 too.
answered 3 hours ago
Nik3141Nik3141
35412
35412
Thanks that worked for me but when I try it with title like this: execute as @a[scores=hunger=6] run title @a title "text":"I need to eat something" minecraft is spamming the messages
– Du Gangschter
41 mins ago
add a comment |
Thanks that worked for me but when I try it with title like this: execute as @a[scores=hunger=6] run title @a title "text":"I need to eat something" minecraft is spamming the messages
– Du Gangschter
41 mins ago
Thanks that worked for me but when I try it with title like this: execute as @a[scores=hunger=6] run title @a title "text":"I need to eat something" minecraft is spamming the messages
– Du Gangschter
41 mins ago
Thanks that worked for me but when I try it with title like this: execute as @a[scores=hunger=6] run title @a title "text":"I need to eat something" minecraft is spamming the messages
– Du Gangschter
41 mins ago
add a comment |
Du Gangschter is a new contributor. Be nice, and check out our Code of Conduct.
Du Gangschter is a new contributor. Be nice, and check out our Code of Conduct.
Du Gangschter is a new contributor. Be nice, and check out our Code of Conduct.
Du Gangschter is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Arqade!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgaming.stackexchange.com%2fquestions%2f350734%2fminecraft-how-to-give-a-player-a-message-when-their-hunger-is-low%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown