/worldborder має десять форм, і лише дві з них анімуються
set та add приймають необов'язковий аргумент часу, який поступово звужує межу; решта вісім — миттєві. А також що насправді означають чотири типові значення межі Minecraft.
Межа світу — це одна команда з десятьма повними формами, і різниця між двома з них та рештою — це головна причина, чому працюють карти зі звуженням межі. Взято з власного дерева команд Mojang для 26.2 та типових значень, з яких починає планувальник на цій сторінці.
Усі десять форм
/worldborder get
/worldborder set <distance>
/worldborder set <distance> <time>
/worldborder add <distance>
/worldborder add <distance> <time>
/worldborder center <pos>
/worldborder damage amount <damagePerBlock>
/worldborder damage buffer <distance>
/worldborder warning distance <distance>
/worldborder warning time <time>
Це повний список — тут немає remove, no reset, and no way to query an individual setting. get returns the diameter and nothing else.
Лише set and add take a time
Дві форми мають необов'язковий кінцевий <time>, in seconds:
/worldborder set 100 60— move to a 100-block diameter за 60 секунд/worldborder add -50 30— shrink by 50 blocks over 30 seconds
Будь-яка інша форма застосовується миттєво. Це механіка, на якій побудована кожна мінігра зі звуженням межі, і саме тому ці карти використовують set/add on a timer rather than repeatedly setting a smaller number — one command with a time argument produces a smooth shrink that the client renders as the moving wall.
add with a від'ємна відстань — це те, як ви звужуєте межу відносно. Окремої форми subtract немає.
distance means diameter, not radius
set and add take the діаметр. A /worldborder set 6000 gives you 3000 blocks from the centre in each direction, not 6000. This is the single most common mistake with the command, and the planner on this page exists partly to convert between the two.
center is separate and takes a position, so a border is a square centred wherever you last set it — moving the centre does not resize it.
Що означають чотири типові значення
| налаштування | типове значення | значення |
|---|---|---|
damage amount | 0.2 | шкоди на секунду, за блок ви знаходитесь за межами буфера |
damage buffer | 5 | блоків за межею до початку завдання шкоди |
warning distance | 5 | блоків від межі, де з'являється червона віньєтка |
warning time | 15 | секунд до наближення межі, коли з'являється попередження |
Шкода — це та частина, яку варто прочитати двічі: вона масштабується залежно від того, як далеко за межами ви перебуваєте, а не від часу, проведеного ззовні. За типових значень знаходження на 10 блоків за межею означає 5 блоків за буфером, тобто 1 шкоди на секунду — а 30 блоків за межею — це 5 на секунду. Гравець, який стабільно рухається назовні, гине дедалі швидше, що й є запланованим тиском.
Налаштування damage buffer to 0 removes the grace zone entirely, and setting damage amount to 0 makes the border purely visual — a wall you can walk through with a red screen and no consequence.
Час попередження залежить від руху, а не від позиції
warning distance triggers on where you are. warning time triggers on where the border will be: with the default 15, a shrinking border warns you 15 seconds before it reaches you, even if you are currently well inside it.
Обидва можуть спрацьовувати одночасно, і обидва лише забарвлюють екран — жоден не зупиняє гравця.