Datapack
AchievementHeartsPack
chce stworzyć datapack do minecrafta 26.2 który będzie dodwał serce za każde nowe osiągnięcie
data/achievement_hearts/functions/player/init.mcfunction
scoreboard players set @s ah_max_health 20
attribute @s minecraft:generic.max_health base set 20
attribute @s minecraft:generic.max_health modifier remove 8f8f6d65-1d8a-4e88-8c2f-6f7a1f8d4c01
attribute @s minecraft:generic.max_health modifier add 8f8f6d65-1d8a-4e88-8c2f-6f7a1f8d4c01 achievement_hearts:advancement_bonus 0 add
execute store result score @s ah_advancements run data get entity @s stats.minecraft.custom:minecraft.avancements 1