画面にタイトルを表示する gameplay.title

ゲームプレイ公式データ取得日:2026年11月13日動作確認待ち

ひとことで言うと

選択したターゲットのタイトルとサブタイトルを表示します。

ブロックとコード

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

引数(ひきすう)

引数とは、ブロックの中で自分で選んだり入力したりする部分のことです。

名前選べる値意味
targetターゲットセレクター選択するプレイヤーとエンティティ
title文字列表示する大きなタイトル
subTitle文字列表示するサブタイトル

使用例

In the treasure mini-game below, a diamond is placed randomly around the current positions. All players are then teleported to the location and shown a message to start looking for the diamond.

JavaScript

player.onChat("hunt", function () {
    blocks.place(DIAMOND_BLOCK, pos(Math.randomRange(-10, 10), Math.randomRange(-3, -2), Math.randomRange(-10, 10)))
    mobs.teleportToPosition(
    mobs.target(ALL_PLAYERS),
    pos(0, 0, 0)
    )
    gameplay.title(mobs.target(ALL_PLAYERS), "READY?", "Find the hidden diamond!")
})

Python

def on_on_chat():
    blocks.place(DIAMOND_BLOCK,
        pos(Math.random_range(-10, 10),
            Math.random_range(-3, -2),
            Math.random_range(-10, 10)))
    mobs.teleport_to_position(mobs.target(ALL_PLAYERS), pos(0, 0, 0))
    gameplay.title(mobs.target(ALL_PLAYERS),
        "READY?",
        "Find the hidden diamond!")
player.on_chat("hunt", on_on_chat)
執筆:鈴木孝昌官公庁のWeb・システム開発を担当する現役プロジェクトマネージャー。マイクラカップ沖縄代表チームを指導(第6回・第7回、第7回TBS賞)。
沖縄マイクラ部で、子どもたちにMakeCodeを教えています。プロフィールと編集方針
Instagramで教室の様子を見る
noteで記事を読む