How do I set a specific team/player hungers bar?

How do I set a specific team/player hungers bar? - Stylish interior of bar in restaurant

So I want to make my own custom minigame just for me and my friends, and I was wondering if I could set certain players hunger bars, or even teams, to 3 so they can't sprint, I would really love to see a command for this, I already know a lot about commandblocks but this I don't.



Best Answer

Hunger is potion 17.

I ran to to this issue in 1.6.4

I had to run '/effect [playername] 17 [duration in seconds]




Pictures about "How do I set a specific team/player hungers bar?"

How do I set a specific team/player hungers bar? - Interior of stylish living room with comfortable couch placed near shelf with collection of vintage vinyl records and wooden cabinet decorated with classic table lamp
How do I set a specific team/player hungers bar? - Diligent black female worker setting signboard outside cafeteria at sunny day
How do I set a specific team/player hungers bar? - Crop unrecognizable female on modern monitor with video game on screen near ethnic partner



Quick Answer about "How do I set a specific team/player hungers bar?"

  • Give them really potent hunger, making everyone have 0 hunger points.
  • Give them just enough saturation to get them up to the hunger level you want.




  • *SIMPLE* HUNGERBAR in Unity 2020 | Beginner Tutorial




    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Rachel Claire, Charlotte May, Ketut Subiyanto, cottonbro