ビルダーで構造物を読み込む builder.loadStructure

ビルダー公式データ取得日:2026年11月13日Python:builder.load_structure動作確認待ち

ひとことで言うと

指定された名前の構造物をビルダーの位置にロードする。

ブロックとコード

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

引数(ひきすう)

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

名前選べる値意味
name文字列
rotation数値
mirror数値

使用例

This example builds a colorful spiral, saves it to a structure, and then rotates and mirrors it in all of the possible combinations to demonstrate how those parameters work. For each rotated/mirrored spiral, a gold block is placed at the location of the builder at the time the structure is loaded.

JavaScript

let color = 0
player.onChat("rotation", function () {
    builder.teleportTo(pos(0, 0, 0))
    builder.face(WEST)
    builder.move(FORWARD, 5)
    builder.setOrigin()
    builder.startStructure()
    for (let index = 0; index <= 5; index++) {
        color = [
        LIGHT_BLUE_CONCRETE,
        LIME_CONCRETE,
        PINK_CONCRETE,
        ORANGE_CONCRETE,
        BROWN_CONCRETE,
        MAGENTA_CONCRETE
        ][index]
        for (let index2 = 0; index2 < 3; index2++) {
            builder.place(color)
            builder.move(FORWARD, 1)
        }
        builder.move(BACK, 1)
        builder.move(UP, 1)
        builder.turn(LEFT_TURN)
    }
    builder.saveStructure("spiral")
    builder.face(WEST)
    builder.teleportToOrigin()
    builder.move(FORWARD, 8)
    for (let index = 0; index <= 3; index++) {
        builder.setOrigin()
        for (let index2 = 0; index2 <= 3; index2++) {
            builder.move(FORWARD, 8)
            builder.loadStructure("spiral", index2, index)
            builder.place(GOLD_BLOCK)
        }
        builder.teleportToOrigin()
        builder.move(RIGHT, 8)
    }
})

Python

color = 0

def on_on_chat():
    global color
    builder.teleport_to(pos(0, 0, 0))
    builder.face(WEST)
    builder.move(FORWARD, 5)
    builder.set_origin()
    builder.start_structure()
    for index in range(6):
        color = [LIGHT_BLUE_CONCRETE,
            LIME_CONCRETE,
            PINK_CONCRETE,
            ORANGE_CONCRETE,
            BROWN_CONCRETE,
            MAGENTA_CONCRETE][index]
        for index2 in range(3):
            builder.place(color)
            builder.move(FORWARD, 1)
        builder.move(BACK, 1)
        builder.move(UP, 1)
        builder.turn(LEFT_TURN)
    builder.save_structure("spiral")
    builder.face(WEST)
    builder.teleport_to_origin()
    builder.move(FORWARD, 8)
    for index3 in range(4):
        builder.set_origin()
        for index22 in range(4):
            builder.move(FORWARD, 8)
            builder.load_structure("spiral", index22, index3)
            builder.place(GOLD_BLOCK)
        builder.teleport_to_origin()
        builder.move(RIGHT, 8)
player.on_chat("rotation", on_on_chat)
執筆:鈴木孝昌官公庁のWeb・システム開発を担当する現役プロジェクトマネージャー。マイクラカップ沖縄代表チームを指導(第6回・第7回、第7回TBS賞)。
沖縄マイクラ部で、子どもたちにMakeCodeを教えています。プロフィールと編集方針
Instagramで教室の様子を見る
noteで記事を読む