/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 است. فراتر از آن بروید دستور اجرا نمیشود، که در یک زنجیره command block طوری به نظر میرسد که گویی اصلاً هیچ اتفاقی نیفتاده است.
بررسی اینکه آیا از سقف مجاز گذشتهاید
شمارش شامل هر دو انتها میشود، بنابراین محدودهای از 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 | پوسته بیرونی را پر میکند، فضای داخلی را با air خالی میکند |
outline | پوسته بیرونی را پر میکند، فضای داخلی را دستنخورده باقی میگذارد |
destroy | ابتدا بلوکهای موجود را به شکل آیتم میاندازد |
keep | فقط air را پر میکند، هرگز جایگزین نمیکند |
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.