The Best Resource for Minecraft
The Best Resource for Minecraft

/fill та /clone: ліміт у 32,768 блоків і режими для його обходу

/fill та /clone: ліміт у 32,768 блоків і режими для його обходу

Обидві команди обмежені 32,768 блоками за виклик і мовчки зазнають невдачі понад цей ліміт. Ось режими hollow, outline та replace, маски clone і як перемістити споруду, більшу за ліміт.

/fill and /clone share a hard limit that is not in the error message people expect: 32,768 блоків на команду. Тобто 32×32×32. Якщо перевищити, команда відмовиться працювати, що в ланцюжку командних блоків виглядає так, ніби взагалі нічого не відбувається.

Як визначити, чи ви перевищили ліміт

Підрахунок включає обидва кінці, тому регіон від 0 0 0 to 31 31 31 is exactly 32,768 — right at the cap. From 0 0 0 to 32 32 32 is 35,937 and fails.

blocks = (|x2-x1|+1) × (|y2-y1|+1) × (|z2-z1|+1)

Для всього більшого розділіть на шари та запустіть кілька команд. Розділення за віссю Y зазвичай найпростіше продумати.

режими fill

РежимЩо робить
replaceза замовчуванням; додатково фільтрує за одним типом блоку
hollowзаповнює зовнішню оболонку, очищає всередині повітрям
outlineзаповнює зовнішню оболонку, залишає внутрішню частину недоторканою
destroyспочатку викидає наявні блоки як предмети
keepзаповнює лише повітря, ніколи не перезаписує

hollow versus outline is the pair people mix up. Building a glass box around an existing structure needs outline; hollow would delete what is inside it.

keep is the safe one for terrain — it will not eat anything already placed.

Форма з фільтром приймає блок для заміни останнім:

/fill ~ ~ ~ ~10 ~5 ~10 stone replace dirt

Це замінює лише dirt на stone і залишає все інше недоторканим.

режими та маски clone

/clone has two independent settings and the order matters:

Маскаreplace (everything) or filtered <block> (only that block) or masked (skip air in the source).

Режимnormal, force (allow overlapping regions), or move (clear the source after copying).

/clone <begin> <end> <destination> masked normal

masked is what you want when stamping a build onto existing terrain — air in the source will not punch holes in the destination.

move is the one that surprises people: it deletes the original. There is no undo.

Для перекриття потрібен force

Якщо джерело та призначення взагалі перекриваються, normal refuses. force allows it, but the result depends on copy order and is rarely what you wanted. Cloning to a scratch area and back is more predictable.

Чанки мають бути завантажені

Обидві команди працюють лише на завантажених чанках. A /fill reaching into unloaded terrain silently does nothing out there. For scripted builds, /forceload add the region first and remove it after — otherwise the same command works when you are standing nearby and fails when run from spawn.

Створіть будь-яку з них із правильним порядком аргументів і перевіркою ліміту блоків у Конструктор команд «Світ і блоки».

Спробувати інструмент: World & Blocks Command Builder →