HyperScript
Docs

← All of the Docs HyperEdit

Changing many blocks HyperEdit

expressionedit fill from <location> to <location> with <block>HyperEdit

Set every block in the box

edit fill from {hall.a} to {hall.b} with smooth stone
expressionedit replace <block> from <location> to <location> with <block>HyperEdit

Change only the blocks of one kind in the box, to the block named last

edit replace ice from {lake.a} to {lake.b} with "water"
expressionedit walls from <location> to <location> with <block>HyperEdit

The four sides of the box, without floor or roof

edit walls from player's location offset by -3, 0, -3 to player's location offset by 3, 4, 3 with glass
expressionedit outline from <location> to <location> with <block>HyperEdit

All six faces of the box

edit outline from {vault.a} to {vault.b} with obsidian
expressionedit sphere at <location> radius <n> with <block>HyperEdit

A ball around that place; hollow at the end for a shell

edit sphere at player's location radius 6 with glass hollow
expressionedit biome from <location> to <location> to <biome>HyperEdit

Make the box between two corners that biome, by the game's name for it: "desert", "snowy_taiga". Players see it when the chunks are sent to them again

edit biome from {_a} to {_b} to "desert"
expressionedit cylinder at <location> radius <n> height <n> with <block>HyperEdit

A pillar standing on that place; hollow at the end for a tube

edit cylinder at player's location radius 4 height 20 with stone bricks hollow
expressionundo last editHyperEdit

Take the last edit or paste back. Again for the one before, up to fifteen

undo last edit
expressionredo last editHyperEdit

Do again what was just taken back

redo last edit
expressionedit count of <block> from <location> to <location>HyperEdit

How many blocks of that kind are in the box between two corners

set {_left} to edit count of stone from {_a} to {_b}
expressionblocks changed by last editHyperEdit

How many blocks the last edit or paste changed

send "&a%blocks changed by last edit% blocks set."
Guide and examples
command /floor:
    permission: "build.floor"
    trigger:
        edit fill from {hall.a} to {hall.b} with smooth stone
        send "&a%blocks changed by last edit% blocks set."

command /melt:
    permission: "build.melt"
    trigger:
        edit replace ice from {lake.a} to {lake.b} with "water"

command /cage:
    permission: "build.cage"
    players only: true
    trigger:
        edit walls from player's location offset by -3, 0, -3 to player's location offset by 3, 4, 3 with glass
        edit sphere at player's location radius 6 with glass hollow

command /tower:
    permission: "build.tower"
    players only: true
    trigger:
        edit cylinder at player's location radius 4 height 20 with stone bricks hollow
        edit outline from {vault.a} to {vault.b} with obsidian

command /oops:
    permission: "build.floor"
    trigger:
        undo last edit
        send "&7Taken back."

command /again:
    permission: "build.floor"
    trigger:
        redo last edit
        send "&7Done again."
SyntaxEffect
edit fill from <location> to <location> with <block>Set every block in the box
edit replace <block> from <location> to <location> with <block>Change only the blocks of one kind in the box, to the block named last
edit walls from <location> to <location> with <block>The four sides of the box, without floor or roof
edit outline from <location> to <location> with <block>All six faces of the box
edit sphere at <location> radius <n> with <block>A ball around that place; hollow at the end for a shell
edit biome from <location> to <location> to <biome>Make the box between two corners that biome, by the game's name for it: "desert", "snowy_taiga". Players see it when the chunks are sent to them again
edit cylinder at <location> radius <n> height <n> with <block>A pillar standing on that place; hollow at the end for a tube
undo last editTake the last edit or paste back. Again for the one before, up to fifteen
redo last editDo again what was just taken back
edit count of <block> from <location> to <location>How many blocks of that kind are in the box between two corners
blocks changed by last editHow many blocks the last edit or paste changed
  • A block is written as in the rest of HyperScript: stone, oak planks. Blocks that are not also items go in quotes: "air", "water", "lava", "fire".
  • HyperScript's own fill from ... with stops at 32,768 blocks; edit fill goes up to max-blocks.
  • A large edit holds the server up while it is made, as the same edit does in WorldEdit. With FastAsyncWorldEdit it does not.
  • undo last edit knows the edits scripts have made since the server started, not those players made with WorldEdit's own commands.