疑似align
code:疑似align
/execute
as @a at @s
positioned ~-0.5 ~ ~
positioned ~10000000 ~ ~
positioned ~-10000000 ~ ~
run particle minecraft:balloon_gas_particle
は
code:ガチalign
/execute
as @a at @s
align x
run particle minecraft:balloon_gas_particle
と同じ動きをする
座標$ x が$ 2^{23+n}\le x\le2^{24+n} のとき$ 2^n ブロック単位で丸められる
$ n は(1以下の)整数
以下、Nブロック単位の丸めをNm毎alignとよぶ
例えば、1m毎alignをしたいとき
$ n=0
区間 $ [2^{23}, 2^{24}] に移動させればいい
10000000m動かして戻す
$ 2^{23}<10000000<2^{24}
code:xyz座標1m毎align
/execute
as @a at @s
positioned ~-0.5 ~ ~-0.5
positioned ~10000000 ~10000000 ~10000000
positioned ~-10000000 ~-10000000 ~-10000000
run ...
/execute in netherにより実行位置を1/8にできる
16m毎まで可能
code:チャンク北西端取得
/execute
as **** at @s
in nether
positioned ~-1 ~ ~-1
positioned ~20000000 ~ ~20000000
positioned ~-20000000 ~ ~-20000000
run ...
code:チャンク表示
/execute
as @a at @s
in nether
positioned ~-1 ~ ~-1
positioned ~20000000 ~ ~20000000
positioned ~-20000000 ~ ~-20000000
in overworld
positioned ~8 ~ ~8
rotated as @etag=opp positioned ^8 ^ ^0.5 rotated as @etag=opp positioned ^ ^ ^0.5 rotated as @etag=opp positioned ^ ^ ^1 rotated as @etag=opp positioned ^ ^ ^2 rotated as @etag=opp positioned ^ ^ ^4 run particle minecraft:balloon_gas_particle
/execute
as @a at @s
in nether
positioned ~-1 ~ ~-1
positioned ~20000000 ~ ~20000000
positioned ~-20000000 ~ ~-20000000
in overworld
positioned ~8 ~ ~8
rotated as @etag=opp positioned ^0.5 ^ ^8 rotated as @etag=opp positioned ^-0.5 ^ ^ rotated as @etag=opp positioned ^1 ^ ^ rotated as @etag=opp positioned ^2 ^ ^ rotated as @etag=opp positioned ^4 ^ ^ run particle minecraft:balloon_gas_particle
座標がdouble型で保存されている
$ 2^{52+n}\le x\le2^{53+n} で$ 2^nm毎align