Started by
P5yui
on
Topic category: Help with Minecraft modding (Java Edition)
I Am Trying To Make Angel Fruit For My Mod
How Do I Add More Hearts To the Player
And How Do I Lake It Stack Like
1st Time You Eat It You Get +1 Heart
2st Time You Eat It You Get +1 More Heart So It Makes 2 And ETC
This is assuming your developing for version 1.16+
There are 2 ways
#1 - Use the Potion effect "Health Boost" you have less control on how many hearts but it works
#2 - use commands to set the max health attribute. go in game and type /attribute to see all the ones you can change, you have to use commands in mcreator to change them (as far as I know)
I Cant Find The /attribute Command
The attribute command only works for MC 1.16, so you need to wait till the 2021 Update releases. I have a bug using Health Boost or Absorption caused by probably the Update Tick system, adding the effect each tick and recovering all the health, making you invincible. I hope you find a way to do that, with the new command i think is more configurable
there is a plugin that can change the attributes
DTM's Toolkit is the plugin
Ok but how do i make it give 1 heart the first time, 2 the second time and 3 the third time
use a variable