# 対象を指定した場所へテレポートさせる(mobs.teleportToPosition) > エンティティをほかの場所にテレポートします。 - カテゴリ:モブ(mobs) - ブロック:@e を~0 ~0 ~0 にテレポートさせる - URL:https://makecode.minecraft-okinawa.com/reference/mobs/teleport-to-position/ - Pythonでの名前:mobs.teleport_to_position - 公式データ取得日:2026-11-13 - 動作確認:確認待ち ## JavaScript ```javascript mobs.teleportToPosition( mobs.target(ALL_ENTITIES), pos(0, 0, 0) ) ``` ## Python ```python mobs.teleport_to_position(mobs.target(ALL_ENTITIES), pos(0, 0, 0)) ``` ## 引数 | 名前 | 値 | 意味 | |---|---|---| | target | ターゲットセレクター | どのエンティティがテレポートされるのかを決定するターゲットセレクター | | destination | 座標 | 選択したエンティティのテレポート先の座標 | ## 使用例 ### Teleport all chickens somewhere above the current player. ```javascript mobs.teleportToPosition( mobs.entitiesByType(CHICKEN), pos(0, 10, 0) ); ``` ```python mobs.teleport_to_position(mobs.entities_by_type(CHICKEN), pos(0, 10, 0)) ``` ## 出典 - [MakeCode for Minecraft 公式リファレンス(mobs.teleportToPosition)](https://minecraft.makecode.com/reference/mobs/teleport-to-position) 執筆:鈴木孝昌(現役プロジェクトマネージャー/マイクラカップ指導者)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)