xR4YM0ND / NutritionZ

nutritionz adds a nutrition system to enhance the gameplay.
https://modrinth.com/mod/nutritionz
MIT License
2 stars 1 forks source link

[BUG] Low nutrients grant positive effects instead of negative ones #19

Open BIG-Viljo opened 5 hours ago

BIG-Viljo commented 5 hours ago

Versions:

Description: Being low on carbs gives the player movement and attack speed bonus. Being low on protein gives the knockback and attack damage bonus. Being low on fat gives the player 2 armor points and knockback resistance. Being low on vitamins gives the player extra heart. Weakness is applied correctly. Being low on minerals gives the player 1 point of armor toughness. Mining fatigue is applied correctly.

Expected behavior: Being low on nutrients should give players negative effects.

Screenshots: (Hunger, regeneration and resistance were applied via commands, so I wouldn't die while testing.) 2024-11-17_20 48 40 2024-11-17_20 48 51 2024-11-17_20 49 02

BIG-Viljo commented 4 hours ago

Here's the fixed default.json: default.json The problem is that the negative sections still add positive values to attributes.

BIG-Viljo commented 4 hours ago

If anyone wants to have this fixed, here's the aforementioned file in a datapack: nutritionz_fix.zip It can be wherever in the datapack load order.