Skip to content

Commit

Permalink
fix distance function
Browse files Browse the repository at this point in the history
  • Loading branch information
Ai-Akaishi committed Apr 4, 2023
1 parent d2220ae commit fdf5312
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/math/functions/distance/16.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

### 65536m以上離れていたら65536を記録して、65536m距離を詰めてから次の精度で確認する
execute if entity @s[distance=65536..] run scoreboard players add _ AiMath 65536
execute if entity @s[distance=65536..] positioned ^ ^ ^65536 run function math:distance/16
execute if entity @s[distance=65536..] positioned ^ ^ ^65536 run function math:distance/15
### 65536m以上離れていなかったら、その場所で次の精度で確認する
execute unless entity @s[distance=65536..] run function math:distance/16
execute unless entity @s[distance=65536..] run function math:distance/15

0 comments on commit fdf5312

Please sign in to comment.