Skip to content

Commit

Permalink
👽 正しく落下距離が計算できていないのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenCMD committed Sep 22, 2024
1 parent d88ad7a commit 0ffda95
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# 1tick前のFallDistance取得
execute store result score $FallDistance Temporary run scoreboard players get @s OldFallDistance
function api:player_vector/get
execute store result score $YVec Temporary run data get storage api: Return.PlayerVector[1] 10
execute store result score $YVec Temporary run data get storage api: Return.Vector[1] 10
scoreboard players operation $FallDistance Temporary -= $YVec Temporary

# 落下ダメージ倍率の初期化
Expand All @@ -27,4 +27,4 @@
scoreboard players add $JumpBoost Temporary 10

# リセット
scoreboard players reset $YVec Temporary
scoreboard players reset $YVec Temporary

0 comments on commit 0ffda95

Please sign in to comment.