Skip to content

Commit 16190e5

Browse files
committed
🚨 cache_max_health の linter エラーを解消
1 parent d3da810 commit 16190e5

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

TheSkyBlessing/data/player_manager/functions/cache_max_health.mcfunction

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@
66
#
77
# @within function core:tick/player/pre
88

9+
# ScoreToHealth ライブラリ側で @internal 宣言されているタグの forward declaration
10+
#> Private
11+
# @private
12+
#declare tag ScoreToHealth.Modified
13+
#declare tag ScoreToHealth.AntiGlitch.Protected
14+
915
# PlayerStorage 呼び出し
1016
function oh_my_dat:please
1117
# キャッシュ更新
12-
execute if entity @s[tag=!ScoreToHealth.Modified, tag=!ScoreToHealth.AntiGlitch.Protected] store result storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].Attributes.Value.MaxHealth double 0.01 run attribute @s max_health get 100
18+
execute if entity @s[tag=!ScoreToHealth.Modified, tag=!ScoreToHealth.AntiGlitch.Protected] store result storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].Attributes.Value.MaxHealth double 0.01 run attribute @s generic.max_health get 100

0 commit comments

Comments
 (0)