Simple Nutrition

Simple Nutrition

Mod

A Fabric Minecraft mod to move players towards a more balanced diet.

Client and server FoodGame Mechanics

16 downloads
1 follower
Follow Save
90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

0.0.2 Digestion Update

Changelog

Digestion and Command Update (0.0.2 Release)

Content

Gameplay

Saved Items will now store their (world) time when they have been eaten. A new system will now compare the player's digestive capabilities and that consumed time to figure out when an Item has finished the digestion process.

Players start with the same digestion performance but will be able to improve their digestion speed. When the stomach is filled (a full list of stored Items which have been eaten and are in the process of digestion, which is also known as Digestion Buffer) the currently eaten item is being analyzed for its hunger points that it gives to the player. The more nutrition you get out of that item, the higher the chance of improving the digestion speed.

So for example, if you have a food item which gives you 3 hunger points (1.5 chicken drumsticks in Minecraft's GUI) you have a chance of 15%, since the maximum is 20 Hunger points, to improve the digestion speed.

Currently, the digestion speed improvement is hard-coded to be between 20 ticks and 100 ticks (again taking the percentage of the consumed item's hunger points). So if you have an item, which fills the player up completely (20 Hunger points), their digestion speed will improve by 5 seconds with a chance of 100%.

The possible digestion improvement time will not be applied if the player's digestion time is below 300 ticks (15 sec). This doesn't limit the actual player's digestion time, being manually set to lower values using the newly introduced commands.

Also, any drinkable item removes now only the oldest entry in the digestion process.

The values are experimental, subject to change and may even need a rework, depending on how broken those are actually in a real environment. For any ideas and suggestions, make use of the GitHub Issues page.

Gamerules

  • Added new APPLY_NUTRITION_FATIGUE Boolean (true / false) Gamerule to toggle the whole nutrition system. No new items will be added to the digestion buffer, and already existing ones will keep ticking down until they also will be removed.
  • Added new STORED_NUTRITION_BUFFER_SIZE Integer (number) Gamerule which defines how many nutrition items can be stored on a player. When the buffer (saved eaten Nutrition Items) is full on a specific player, the oldest entries will be removed, even if the digestion didn't finish yet. The default is set to 10 items.

Commands

  • /nutrition clear clears the digestion buffer completely. You can specify a player (or multiply players) after the command to clear that for other players, instead of yourself.
  • /nutrition digestion add a player (or multiple players) to check out their current digestion speed. Add a number (long) after that to set it to a specific time in ticks.
  • /nutrition of add a player (or multiple players) to check out the stored entries in their digestion buffer and their digestion speed.

Config

The mod has now an optional compatibility with Cloth Config. Having Cloth config installed, you can change values, which are usually hard coded.

  • loadGui adds an addition to the player's inventory screen to display the Digestion Buffer. It will only render, if the Digestion Buffer contains entries. This value is turned off by default and won't be available without Cloth Config!
  • baseDigestionTime sets the base digestion time, with which players start out. This value is 6000 ticks (5 min) by default and won't be adjustable without Cloth Config!

Files

simple-nutrition-0.0.2.jar(46.68 KiB) Primary Download

Project members

ShiroJR

Member

Details

Licensed MIT
Published 20 days ago
Updated 20 days ago