座標を文字列にする Position.toString
ひとことで言うと
この位置の文字列表現を返します。
ブロックとコード
○の文字列
ブロックの文言は公式の日本語版に合わせています(形は簡易表示です)。
pos(0, 0, 0).toString()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)