Skip to content

Commit

Permalink
HealAPIにDisableHealTriggerを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
Lapis-LJA committed Sep 27, 2024
1 parent 7f87bb5 commit 20e8aea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions TheSkyBlessing/data/api/functions/heal/.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# storage api: Argument.Heal : float
# storage api: Argument.FixedHeal? : boolean(default: false)
# storage api: Argument.DisableLog? : boolean(default: false)
# storage api: Argument.DisableHealTrigger? : boolean(default: false)
# @api

# 引数チェック
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
# Healthを持つEntityであれば実行
function lib:score_to_health_wrapper/fluctuation
# onHealのトリガー
function api:heal/core/trigger_on_heal
execute unless data storage api: Argument{DisableHealTrigger:true} run function api:heal/core/trigger_on_heal
1 change: 1 addition & 0 deletions TheSkyBlessing/data/api/functions/heal/reset.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
data remove storage api: Argument.Heal
data remove storage api: Argument.FixedHeal
data remove storage api: Argument.DisableLog
data remove storage api: Argument.DisableHealTrigger

0 comments on commit 20e8aea

Please sign in to comment.