# 座標を文字列にする(Position.toString) > この位置の文字列表現を返します。 - カテゴリ:位置(positions) - ブロック:○ の文字列 - URL:https://makecode.minecraft-okinawa.com/reference/positions/to-string/ - Pythonでの名前:Position.to_string - 公式データ取得日:2026-11-13 - 動作確認:確認待ち ## JavaScript ```javascript pos(0, 0, 0).toString() ``` ## Python ```python str(pos(0, 0, 0)) ``` ## 使用例 ### Display the current player's position in the game chat when you type the "where" command. ```javascript player.onChat("where", function () { player.say("My current position is:"); player.say(player.position().toString()); }); ``` ```python def on_on_chat(): player.say("My current position is:") player.say(str(player.position())) player.on_chat("where", on_on_chat) ``` ## 出典 - [MakeCode for Minecraft 公式リファレンス(Position.toString)](https://minecraft.makecode.com/reference/positions/to-string) 執筆:鈴木孝昌(現役プロジェクトマネージャー/マイクラカップ指導者)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)