座標を文字列にする Position.toString

位置公式データ取得日:2026年11月13日Python:Position.to_string動作確認待ち

ひとことで言うと

この位置の文字列表現を返します。

ブロックとコード

ブロックの文言は公式の日本語版に合わせています(形は簡易表示です)。

使用例

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)
執筆:鈴木孝昌官公庁のWeb・システム開発を担当する現役プロジェクトマネージャー。マイクラカップ沖縄代表チームを指導(第6回・第7回、第7回TBS賞)。
沖縄マイクラ部で、子どもたちにMakeCodeを教えています。プロフィールと編集方針
Instagramで教室の様子を見る
noteで記事を読む