プレイヤーの向いている方角を調べる player.getOrientation

プレイヤー公式データ取得日:2026年11月13日Python:player.get_orientation動作確認待ち

ひとことで言うと

プレイヤーの向きを度数で返す。

ブロックとコード

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

使用例

Display the player's current heading (orientation) in degrees.

JavaScript

player.onChat("playerheading", function () {
    player.say("My player's orientation is: " + player.getOrientation())
})

Python

def on_on_chat():
    player.say("My player's orientation is: " + str(player.get_orientation()))
player.on_chat("playerheading", on_on_chat)
執筆:鈴木孝昌官公庁のWeb・システム開発を担当する現役プロジェクトマネージャー。マイクラカップ沖縄代表チームを指導(第6回・第7回、第7回TBS賞)。
沖縄マイクラ部で、子どもたちにMakeCodeを教えています。プロフィールと編集方針
Instagramで教室の様子を見る
noteで記事を読む