Hello, I have been trying to set up an SMP for my friends and me where you start with one heart, and as you progress through the advancement tree, you gain more hearts. I want to implement custom advancements, but my issue is making the game automatically update how many hearts you get from each advancement, I have explored functions, but I do not know how to make the custom advancements use them using this website: https://advancements.thedestruc7i0n.ca/
I have now moved on to trying it with command blocks. I have a repeating command block with the command: /execute if entity @r[advancements={health:monster=true}] which uses a comparator leading into an impulse command block that executes the command to add health to the players. I have two total issues:
1. I do not know how to make the repeating command block affect every player, since when one player gets the advancement, the command block doesn't respond anymore.
I would like to make individual command blocks for each player, but I do not know how to do that.
2. I can't find out how to add health to their current value, I only know how to change their base value.
If somebody could guide me on what commands to use, that would be awesome.
I would look into Skript, as it is a well-documented light plugin tool that can run anywhere,
this setup requires the chunk to be loaded for it to work.
Additionally, /execute if entity @r[advancements={health:monster=true}] may have a problem because it might take a while to select a player who got an advancement since its randomly selected. I would change @r -> @a
I'm pretty sure since Skript allows math functions, you can set the base attribute to just be Base Max HP + 1.
I may be wrong, but you can probably use adv, or advancements in a Skript too.
Hello, I have been trying to set up an SMP for my friends and me where you start with one heart, and as you progress through the advancement tree, you gain more hearts. I want to implement custom advancements, but my issue is making the game automatically update how many hearts you get from each advancement, I have explored functions, but I do not know how to make the custom advancements use them using this website: https://advancements.thedestruc7i0n.ca/
I have now moved on to trying it with command blocks. I have a repeating command block with the command: /execute if entity @r[advancements={health:monster=true}] which uses a comparator leading into an impulse command block that executes the command to add health to the players. I have two total issues:
1. I do not know how to make the repeating command block affect every player, since when one player gets the advancement, the command block doesn't respond anymore.
I would like to make individual command blocks for each player, but I do not know how to do that.
2. I can't find out how to add health to their current value, I only know how to change their base value.
If somebody could guide me on what commands to use, that would be awesome.
I would look into Skript, as it is a well-documented light plugin tool that can run anywhere,
this setup requires the chunk to be loaded for it to work.
Additionally, /execute if entity @r[advancements={health:monster=true}] may have a problem because it might take a while to select a player who got an advancement since its randomly selected. I would change @r -> @a
I'm pretty sure since Skript allows math functions, you can set the base attribute to just be Base Max HP + 1.
I may be wrong, but you can probably use adv, or advancements in a Skript too.
Hopefully this helps!