Minecraft /fill Command
2つの座標間の3D領域を指定したブロックで塗りつぶし、必要に応じて他のブロックを置換します。
バージョン対応
コマンド構文
/fill <from> <to> <block>[<states>] [destroy|hollow|keep|outline|replace] [<filter>]/fill <from> <to> <tileName> [tileData|blockStates] [replace|destroy|hollow|keep|outline] [<replaceTileName>]引数の解説
from (X Y Z)Coordinates必須First corner of the 3D cuboid bounding box.
to (X Y Z)Coordinates必須Opposite diagonal corner of the bounding box.
block / tileNameNamespaced Block ID必須Block type to place (e.g. minecraft:stone, glass, oak_planks).
modeFill ModeHandling mode: replace (default), keep (fills air only), outline (outer perimeter shell), hollow (outer shell with air center), destroy (breaks blocks dropping items).
filter / replaceTileNameBlock FilterWhen mode is replace, only blocks matching this ID will be substituted.
実用的な使用例
/fill ~-10 ~-1 ~-10 ~10 ~-1 ~10 minecraft:stone_bricksCreates a 21x21 stone brick floor directly beneath your feet.
Fast foundation platform builder.
/fill ~-5 ~ ~-5 ~5 ~8 ~5 minecraft:glass hollowCreates an 11x9x11 hollow glass room with an empty interior.
Instant greenhouse or underwater shelter.
/fill ~-15 ~-3 ~-15 ~15 ~15 ~15 minecraft:air replace minecraft:waterDrains water from an ocean or cave area without affecting stone or sand.
Clearing flooded structures.
/fill ~-20 ~-5 ~-20 ~20 ~15 ~20 minecraft:air replaceClears a massive 41x21x41 volume into empty air without spawning laggy item entities.
Terrain clearing for large-scale creative builds.
/fill ~-4 ~ ~-4 ~4 ~4 ~4 minecraft:oak_planks outlineConstructs the outer walls, floor, and ceiling of a cube without altering the interior.
Frame building without overwriting pre-placed furniture.
よくあるミス
ミス:
一度に32,768ブロック以上を塗りつぶそうとする
修正方法:
大きな塗りつぶしを複数の小さなコマンドに分割してください。
ミス:
貴重なアイテムの近くでdestroyモードを使用し、大量のラグを起こす
修正方法:
destroyの代わりにreplaceモードを使用: /fill <coords> air replace
ミス:
置換フィルターを指定し忘れ、すべての建築物を置換してしまう
修正方法:
常に特定のブロックでreplaceモードを使用: /fill <coords> stone replace dirt
Java版と統合版の違い
Java版はコマンドあたり32,768ブロックの制限があります。Bedrock版はプラットフォームによって異なる制限がある場合があります。Javaは角括弧内のブロック状態を使用し、Bedrockは従来数値データ値を使用していましたが、最新の更新ではブロック状態が推奨されています。
Command Block Usage & Automation
Connect an Impulse command block to an arena reset button: "/fill 100 64 100 120 64 120 stone_bricks replace air" to regenerate the floor after each battle, or clear hazardous lava puddles during puzzle runs.
便利なヒント
大規模な塗りつぶしを行う前に、まず小さな領域で座標が正しいか確認してください。
hollowモードで家や部屋のような即席の構造物を作成します。
keepモードは既存の構造物を保持しながら洞窟や隙間を埋めるのに最適です。
/fillで空気に置換して水や溶岩を素早く取り除けます。
/fillを相対座標(~)と組み合わせて、位置を計算せずに作業できます。
重要な注意事項
Java版の最大ブロック制限は1コマンドあたり32,768ブロックです。Bedrock版はプラットフォームによって異なる制限がある場合があります。Javaは角括弧[state=value]のブロック状態を使用し、Bedrockは従来数値データ値を使用していました。
よくある質問
複数の異なるブロックを一度に塗りつぶせますか?
いいえ、/fillは一度に1種類のブロックタイプのみ対応しています。
「too many blocks」と出るのはなぜ?
32,768ブロック以上を塗りつぶそうとしています。領域名を減らしてください。
/fillコマンドを元に戻せますか?
取り消し機能は 없습니다。ワールドのバックアップを取ることが最善です。
destroyとreplaceの違いは?
destroyは壊れたブロックをアイテムとしてドロップし、replaceはドロップなしでブロックを変更します。