• 0

    posted a message on Making Advancements Grant Extra Hearts Using Commands

    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.

    Posted in: Commands, Command Blocks and Functions
  • To post a comment, please .