# ビルダーで通った道をなぞる(builder.tracePath) > 最後に印を付けた位置から指定された種類のブロックを使って軌跡をなぞります。 - カテゴリ:ビルダー(builder) - ブロック:ビルダー: ブロック 草ブロック を使って印を付けた場所から軌跡をなぞる - URL:https://makecode.minecraft-okinawa.com/reference/builder/trace-path/ - Pythonでの名前:builder.trace_path - 公式データ取得日:2026-11-13 - 動作確認:確認待ち ## JavaScript ```javascript builder.tracePath(GRASS) ``` ## Python ```python builder.trace_path(GRASS) ``` ## 引数 | 名前 | 値 | 意味 | |---|---|---| | block | ブロック・アイテムの種類 | ビルダーの軌跡をなぞるのに使用するブロックの種類 | ## 使用例 ### Make the builder move randomly around the player. Trace where the builder goes with gold blocks. ```javascript builder.teleportTo(pos(0, 2, 0)); builder.mark(); builder.move(FORWARD, Math.randomRange(0, 11)); builder.move(LEFT, Math.randomRange(0, 11)); builder.move(UP, Math.randomRange(0, 11)); builder.tracePath(GOLD_BLOCK); ``` ```python builder.teleport_to(pos(0, 2, 0)) builder.mark() builder.move(FORWARD, Math.random_range(0, 11)) builder.move(LEFT, Math.random_range(0, 11)) builder.move(UP, Math.random_range(0, 11)) builder.trace_path(GOLD_BLOCK) ``` ## 出典 - [MakeCode for Minecraft 公式リファレンス(builder.tracePath)](https://minecraft.makecode.com/reference/builder/trace-path) 執筆:鈴木孝昌(現役プロジェクトマネージャー/マイクラカップ指導者)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)