HyperScript
Docs

← All of the Docs HyperGuard

Working with HyperScript's own areas HyperGuard

expressioncopy guard region <name> as <name>HyperGuard

Remember every block in the region's box, to put back with HyperScript's paste <name>. Needs HyperScript 1.7.15 or newer

copy guard region "arena" as "arena-clean"
effectset fake blocks in guard region <name> to <block>HyperGuard

Show the player the whole box as that block, without changing the world; for <who> for someone else. Needs HyperScript 1.7.14 or newer

set fake blocks in guard region "land_%player.name%" to "glass"
effectclear fake blocks in guard region <name>HyperGuard

Show what is really there again

clear fake blocks in guard region "land_%player.name%"
Guide and examples

HyperScript can copy a piece of the world and put it back, and show blocks that only one player sees. These do the same for the box of a WorldGuard region:

command /savearena:
    permission: "arena.manage"
    trigger:
        copy guard region "arena" as "arena-clean"

command /resetarena:
    permission: "arena.manage"
    trigger:
        paste "arena-clean"

command /showplot:
    players only: true
    trigger:
        set fake blocks in guard region "land_%player.name%" to "glass"
        wait 5 seconds
        clear fake blocks in guard region "land_%player.name%"
SyntaxEffect
copy guard region <name> as <name>Remember every block in the region's box, to put back with HyperScript's paste <name>. Needs HyperScript 1.7.15 or newer
set fake blocks in guard region <name> to <block>Show the player the whole box as that block, without changing the world; for <who> for someone else. Needs HyperScript 1.7.14 or newer
clear fake blocks in guard region <name>Show what is really there again
  • The limits are HyperScript's: a copy holds up to 250,000 blocks and fake blocks come up to 32,768 at a time, so these are for arenas and plots rather than whole cities.