/replace regex
Replace blocks matching a regex pattern (e.g., Rock_.* matches all Rock blocks, .*_Hardwood matches blocks ending in _Hardwood)
- Działa tylko wtedy, gdy komendę wykonuje gracz, a nie przez konsolę serwera.
Zapis
/replace regex <from> <to…>
- Polecenie głównenazwa polecenia, od której wszystko się zaczyna
- PodpoleceniePodpolecenie: kolejne słowo po poleceniu
- Wymaganewymagane, w ustalonej kolejności
Argumenty
| Argument | Typ | Typ | Opis |
|---|---|---|---|
from | Wymagane | Text Words, text, numbers, letters | The regex pattern to match block names against (must match the full block key) |
to | Wymagane | Block Pattern: List A list of blocks with optional weights (e.g., [20%Rock_Stone, 80%Rock_Shale]) | The block pattern to replace matched blocks with |
Uprawnienia
- Uprawnienie
hytale.buildertools.command.replace.regex- Grupa domyślna
- WorldEditor
Grupy tworzą hierarchię: Adventurer, Builder, WorldEditor, ServerEditor, Admin. Wyższa grupa dziedziczy uprawnienia niższych; nowi gracze trafiają do grupy Adventurer, a administratorzy (OP) mogą robić wszystko.