相対座標を絶対座標に変換する Position.toWorld
ひとことで言うと
この位置を世界での位置に変換して、世界での位置を新たに作成します。
ブロックとコード
○の絶対座標
ブロックの文言は公式の日本語版に合わせています(形は簡易表示です)。
pos(0, 0, 0).toWorld()pos(0, 0, 0).to_world()使用例
Convert the relative position above the player's head to a world position. Then, display the position in the chat.
JavaScript
player.say("The block above my head is at position: " + pos(0, 2, 0).toWorld())Python
player.say("The block above my head is at position: " + str(pos(0, 2, 0).to_world()))