Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]Choose and balance the diet based on the effects you whould get [Feature]: #192

Open
gugakiinder13s opened this issue May 23, 2024 · 0 comments
Assignees
Labels
status: triage This issue or pull request is awaiting review type: enhancement New feature or request

Comments

@gugakiinder13s
Copy link

gugakiinder13s commented May 23, 2024

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

@gugakiinder13s gugakiinder13s added status: triage This issue or pull request is awaiting review type: enhancement New feature or request labels May 23, 2024
@gugakiinder13s gugakiinder13s changed the title Choose and balance the diet based on the effects you whould get [Feature]: [Feature]Choose and balance the diet based on the effects you whould get [Feature]: May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: triage This issue or pull request is awaiting review type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants