HyperScript
Docs

← All of the Docs HyperEdit

Schematics HyperEdit

expressionsave schematic <name> from <location> to <location>HyperEdit

Write every block in the box between two corners to a schematic. One of that name is replaced

save schematic "arena" from {arena.corner} to {arena.far}
expressionpaste schematic <name> at <location>HyperEdit

Put it into the world, so that what was at the first corner comes to that place

paste schematic "house" at player's location rotated 90 skipping air
expressionpaste schematic <name> at <location> rotated <degrees>HyperEdit

The same, turned: 90, 180 or 270, clockwise seen from above

paste schematic "house" at player's location rotated 90 skipping air
expressionpaste schematic <name> at <location> skipping airHyperEdit

Leave what is there wherever the schematic has air

paste schematic "house" at player's location rotated 90 skipping air
effectdelete schematic <name>HyperEdit

Remove the file

delete schematic arg.1
expressionall schematicsHyperEdit

A list of the names of every schematic

send "&7Schematics: &f" + join all schematics with ", "
expressionschematic exists <name>HyperEdit

Whether there is one of that name

if not schematic exists "house":
    send "&cThere is no schematic called house."
    stop
expressionsize of schematic <name>HyperEdit

A list of three numbers: how many blocks it is along x, y and z

set {_size} to size of schematic "arena"
Guide and examples
command /savearena:
    permission: "arena.admin"
    trigger:
        save schematic "arena" from {arena.corner} to {arena.far}
        set {_size} to size of schematic "arena"
        send "&aSaved: %{_size}% blocks along x, y and z."

command /house:
    permission: "build.house"
    players only: true
    trigger:
        if not schematic exists "house":
            send "&cThere is no schematic called house."
            stop
        paste schematic "house" at player's location rotated 90 skipping air
        send "&aBuilt. %blocks changed by last edit% blocks were placed."

command /schematics:
    permission: "arena.admin"
    trigger:
        send "&7Schematics: &f" + join all schematics with ", "

command /delschematic <name>:
    permission: "arena.admin"
    trigger:
        delete schematic arg.1
SyntaxEffect
save schematic <name> from <location> to <location>Write every block in the box between two corners to a schematic. One of that name is replaced
paste schematic <name> at <location>Put it into the world, so that what was at the first corner comes to that place
paste schematic <name> at <location> rotated <degrees>The same, turned: 90, 180 or 270, clockwise seen from above
paste schematic <name> at <location> skipping airLeave what is there wherever the schematic has air
delete schematic <name>Remove the file
all schematicsA list of the names of every schematic
schematic exists <name>Whether there is one of that name
size of schematic <name>A list of three numbers: how many blocks it is along x, y and z
  • A name is letters, digits, - and _. Anything else is refused, so a script cannot write outside the schematics folder.
  • rotated and skipping air can be combined, in that order.
  • Entities (animals, item frames, armour stands) are not saved.