diff --git a/data/score_damage/functions/core/get_status.mcfunction b/data/score_damage/functions/core/get_status.mcfunction index 65d8231..8a4dc39 100644 --- a/data/score_damage/functions/core/get_status.mcfunction +++ b/data/score_damage/functions/core/get_status.mcfunction @@ -6,6 +6,9 @@ # HP execute store result score $Health ScoreDamageCore run data get entity @s Health 10000 + # ScoreToHealthがある場合それがHP + execute if score @s ScoreToHealth matches -2147483648.. run scoreboard players operation $Health ScoreDamageCore = @s ScoreToHealth + execute if score @s ScoreToHealth matches -2147483648.. run scoreboard players operation $Health ScoreDamageCore *= $100 ScoreDamageCore # 防御力 execute if data storage score_damage: Argument{BypassArmor:0b} store result score $DefensePoints ScoreDamageCore run attribute @s generic.armor get 100 execute if data storage score_damage: Argument{BypassArmor:1b} run scoreboard players set $DefensePoints ScoreDamageCore 0