Skip to content

Commit

Permalink
NO-ISSUE Add 武器で与えた物理ダメージを取得
Browse files Browse the repository at this point in the history
  • Loading branch information
NePonpon committed Feb 3, 2025
1 parent ade9256 commit 2b6af39
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data/entity/function/damage/add/physical/melee.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#> entity:damage/add/physical/melee
### 与えた武器ダメージを取得
execute store result score _ Damage run data get entity @e[tag=Enemy,nbt=!{AbsorptionAmount:2048f},limit=1] AbsorptionAmount -1
execute store result storage entity: damage.physical int 1 run scoreboard players add _ Damage 2048

0 comments on commit 2b6af39

Please sign in to comment.