Skip to content
Building ToolsPlayer only

/replace regex

Replace blocks matching a regex pattern (e.g., Rock_.* matches all Rock blocks, .*_Hardwood matches blocks ending in _Hardwood)

  • Only runs when a player executes the command, not from the server console.

Spelling

  • /replace regex <from> <to…>
  • Main commandthe command name that starts it all
  • SubcommandSubcommand: an additional word after the command
  • Requiredrequired, in a fixed order

Arguments

ArgumentTypeTypeDescription
fromRequired

Text

Words, text, numbers, letters

The regex pattern to match block names against (must match the full block key)

toRequired

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

Permissions

Permission
hytale.buildertools.command.replace.regex
Default group
WorldEditor

The groups build on one another: Adventurer, Builder, WorldEditor, ServerEditor, Admin. Higher groups inherit the permissions of lower ones; new players are Adventurers, and admins (OP) can do everything.

Back to command reference

/replace regex — Hytale command reference | ZAP-Hosting