# 相対座標を絶対座標に変換する(Position.toWorld) > この位置を世界での位置に変換して、世界での位置を新たに作成します。 - カテゴリ:位置(positions) - ブロック:○ の絶対座標 - URL:https://makecode.minecraft-okinawa.com/reference/positions/to-world/ - Pythonでの名前:Position.to_world - 公式データ取得日:2026-11-13 - 動作確認:確認待ち ## JavaScript ```javascript pos(0, 0, 0).toWorld() ``` ## Python ```python 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())) ``` ## 出典 - [MakeCode for Minecraft 公式リファレンス(Position.toWorld)](https://minecraft.makecode.com/reference/positions/to-world) 執筆:鈴木孝昌(現役プロジェクトマネージャー/マイクラカップ指導者)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)