# Is It possible to make hunger system like Minecraft?

**URL:** <https://forums.unrealengine.com/t/is-it-possible-to-make-hunger-system-like-minecraft/412106>\
**Category:** Blueprint\
**Tags:** coding, unreal-engine, UE4, Blueprint, question\
**Created:** [December 12, 2017, 10:37pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-make-hunger-system-like-minecraft/412106 "2017-12-12T22:37:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![I\_Hate\_Apples](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@I\_Hate\_Apples](https://forums.unrealengine.com/u/I_Hate_Apples)\
**Post date:** [December 12, 2017, 10:37pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-make-hunger-system-like-minecraft/412106/1 "2017-12-12T22:37:12Z")

</div>

I kind of understand the part, how blueprints are made and used, but the problem is… I don’t know, how to link hunger to stamina and health. For example In Minecraft, if you’re low on hunger you can’t regenerate your health(even loses health slowly, when hunger reaches 0%) and can’t sprint(run) in the game . And if you eat, it starts to regain health, hunger and able to sprint again. Is it possible, in the blueprint? Or is it really, complicated coding and hard to understand?

Thank you 🙂

---

<div class="post-metadata">

**Author:** ![DavidOConnor](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davidoconnor/32/978533_2.png) [@DavidOConnor](https://forums.unrealengine.com/u/DavidOConnor)\
**Post date:** [December 13, 2017, 3:53am UTC](https://forums.unrealengine.com/t/is-it-possible-to-make-hunger-system-like-minecraft/412106/2 "2017-12-13T03:53:21Z")

</div>

Yes, it’s very achievable in Blueprints… for this you’d have float variables for “health” and “hunger”, and a boolean variable for “can run”. Then you’d set up the logic for how they interact, exactly as you mentioned. I’d start googling some Unreal beginner tutorial… especially including variables…
