
[Feature]Choose and balance the diet based on the effects you whould get [Feature]:
gugakiinder13s opened this issue ยท 0 comments
What is the new feature or improvement?
I recently came across the "Diet" and used it, changing some settings for the effects that each group could give and the percentages.
However, my knowledge ends there... After that, I wanted to keep it so that there 5 food groups, but only the top 3 with the highest percentage would give the corresponding effects. I also wanted each group to have a negative effect assigned that would activate when the player was below a certain percentage.
The only thing I managed to do was change the positive and negative effects of each group as well as the percentage at which these effects would be active.
I couldn't find any configuration to do this in a simple way, so the solution I came up with was to create a data pack (as simple as possible as I have no knowledge of Java or code), but, as expected, the game crashed when I ate any food in the game.
I also tried to make it so that each time the player respawned or entered the world for the first time, they would have a sufficient percentage of each group just to avoid suffering the negative effects that I had configured, but I also did not succeed.
I also thought about implementing a feature that instead of each group having an individual % bar, each group represented 20% of a common bar, making the bars go up or down based on the food the player ate in the last "x" days. . ex: If the player in the last "x" days ate only 1 type of food the value of the respective group would be 100%, if the player starts eating another type of food the group declines based on the % of other groups that the player ate recently
I am doing this on version 0.15.1 of Fabric for Minecraft 1.20.1.
This feature could lead to a mod "diet 2.0", since in this way to maintain the positive effects we would have to base our main diet on a larger list of foods and at the same time it would mean that we would still have to eat from all groups to avoid the negative effectes.
builtin.json.json