Description
As the title implies - a mod that implements a style of eating seen similarly in a certain other voxel game ;p
Code is licensed under GPL-v3+
Provided sounds are licensed under CC0 1.0 Public Domain
1.11 FINALLY ADDS MOBILE SUPPORT! Thank grorp for their assistance with that. Now you mobile folk shouldn't be tortured with starvation anymore!
As of 1.12, supports https://content.luanti.org/packages/csirolli/thirsty/ and Mesecraft's implementation of it!
See mods + games with hardcoded (in mod) support here: https://content.luanti.org/collections/TPH/tph_eating_mod_supp/
Be sure to play Mantar's Exile! Which has full support from my mod (for both v3 and v4):
https://content.luanti.org/packages/Mantar/exile/
ALL EXILE V4 SERVERS NOW USE MY MOD!
Most recommended is exile-dev.planetofnix.com:30016 aka "Exiled From The Other Servers"
Documentation (Codeberg)
The video provided is hosted on catbox.moe (file hosting service): https://files.catbox.moe/4oe107.mp4
Holding down RMB (or whatever tph_eating.use_key is set to for player:get_player_controls() ) will make you begin to eat the food with eating sounds and upon 4 (or how many repetitions specified in API or tool), will complete eating with a burp (unless tph_eating.burping is not set to true or a tool specifies a custom end sound)
Pseudo-animation for 5.4.0+ implemented (you will see your food infront of your face and it will move with your head ;p)
Minetest 5.9 will have an issue with any version of this mod before 1.9 (spam of error logs)
Minetest 5.0.1 and 5.1.0 have odd but non-gamebreaking issues and are considered "compatible". Minetest 5.2.0 and 5.3.0 do not properly display the wield_item entity however is otherwise operational. No issues with Minetest 5.4.0 and onwards
If you wish to be able to iterate over the table with pairs() I recommend installing https://content.luanti.org/packages/TPH/metatable_metamethods/ !
Releases
2025-09-05 00:34 UTC
1.12 - Support for Thirsty mod! More stuff for coders
2025-08-18 19:56 UTC
Fixes eating throwable eggs, adds optional depency for metatable_metamethods
2025-08-16 14:26 UTC
Fix issues with Nathan S' drinks mod
Yeah so it was because of how I made it so if it wasn't edible, it'd return before the drink check
Whoops! This fixes that now
2025-08-13 22:10 UTC
1.11 - MOBILE SUPPORT!
TOUCHSCREEN SUPPORT! FINALLY! Thanks grorp! All mobile users now can properly eat!!!
Nothing too important to the end user (people using this mod for gameplay)
tph_eating is now protected with a metatable, preventing unwanted writing and permitting setting change events
New functions added for API:
tph_eating.register_on_setting_changed(function(key, value, oldvalue) end))
tph_eating.usekey_is_modern()
New read-only variables:
tph_eating.min_eating_repeats
tph_eating.v540 - for whether or not it's MT 5.4.0+
tph_eating.v560 - for whether or not it's MT 5.6.0+
Made it so variables can only be rewritten with supported types. tph_eating.use_key only permits the names of player control values
Introduction of groups tph_eating_edible (is edible) and tph_eating_drink (edible drinkable)
Edible check uses on_use == do_item_eat via core.serialize now
If MT 5.4.0+, converts use_key of RMB or LMB to place and dig respectively
2025-06-01 22:28 UTC
1.10 - 2 new sounds
Adds 2 sounds (removing 1), modifies their pitch and volume
Implements the ability to hold down to keep eating
Misc bug fixes (such as fixing edible fishing rods!!!)
Further compatibility with Exile v4
Minor code improvements
All releases
Threads
New thread
Information
Provides
tph_eating
Dependencies
- Required
-
No required dependencies
- Optional
-
default
farming
health
metatable_metamethods
minimal
thirsty
tph_wielditem
typeof
Information
- Type
- Mod
- Technical Name
- tph_eating
- Languages
-
English, Deutsch, Español, Français
- License
-
GPL-3.0-or-later
for code,
CC0-1.0
for media.
- Maintenance State
- Beta
- Added
- 2024-02-26 17:51 UTC
- Maintainers
-
TPH
Used By
Nice, could be better
The animation for eating is nice and the mechanic itself has potential to add another dimension of balance to food types (how long they take to eat) but the sounds are meh at worst and the burping should definitely be disabled by default. It's also a bit annoying that you can't eat repeatedly by continuing to hold down RMB; you have to release it first then start holding again to eat the next item.
Hello Again, Great Mod - I have a suggestion
Quite a QoL based suggestion so I hope it's easy enough to implement, but essentially it'd be neat if rightclicking to eat took priority and then holding-shift and rightclicking will have interacting like normal (and happens currently) take priority. As it is holding right click while you are looking at basically anything makes it attempt to interact instead of eat and you have to look away to begin eating, with shift (or anything else) not having any effect on this behaviour. I think this would make it feel much better.
Highly Recomended
This is one of those must have essential mods in my opinion. It adds a satisfying feel to eating food in its own style and adds that much appreciated level of polish to Luanti.
👌👌👌
Es un muy buen detalla poder ver como los jugadores comen, hace el juego mas estetico.
great mod for eating :)
we love the mod! author reacts very very quickly, reported bug was fixed after 7 hours. Danke :)
Cool little mod that improves eating a lot
The animation and sounds are neat, it lets you eat even when your belly is full and doesnt sutpport most food mods and its still the best eating mod out there. Remember to use right mouse button to eat. Works with 3d apples. You cant eat mushrooms dynamically since you place them with rmb