HyperScript
Docs

← All of the Docs The world

Scenes

expressionmove camera of <who> from <location> to <location> over <duration>since 1.7.17

They watch from a point that travels between the two places, starting and stopping gently. Add looking at <location> to keep something in view; otherwise the camera looks the way it travels

on first join:
    set {_high} to player's location offset by 0, 25, 0
    move camera of player from {_high} to player's location over 4 seconds
Try it
effectstop camera of <who>since 1.7.17

End it early

command /skip:
    trigger:
        stop camera of player
        send "&7Skipped."
Try it
effectset border of <who> to <n> blocks around <location>since 1.7.17

A world border only they have, n blocks from edge to edge. Needs Minecraft 1.18.2 or newer

command /plot:
    trigger:
        set border of player to 32 blocks around player's location
        send "&7This is your plot."
Try it
effectreset border of <who>since 1.7.17

They get the world's own border back

on world change:
    reset border of player
Try it
Guide and examples

For an entrance, an introduction or the moment a boss appears: a camera that glides through the world, and a border only one player has.

command /intro:
    players only: true
    trigger:
        set {_from} to player's location offset by 0, 20, -30
        set {_to} to player's location offset by 0, 6, -6
        move camera of player from {_from} to {_to} over 6 seconds looking at player's location
        wait 6 seconds
        send title "&6Welcome" to player
StatementEffect
move camera of <who> from <location> to <location> over <duration>They watch from a point that travels between the two places, starting and stopping gently. Add looking at <location> to keep something in view; otherwise the camera looks the way it travels
stop camera of <who>End it early
set border of <who> to <n> blocks around <location>A world border only they have, n blocks from edge to edge. Needs Minecraft 1.18.2 or newer
reset border of <who>They get the world's own border back
  • While the camera has a player they are a spectator and cannot move themselves. When it is over they are put back where they stood, in the game mode they had. The same happens if they log out in the middle, or the server stops: nobody is left a spectator far from home.
  • The camera does not wait: the lines after it run at once. Follow it with wait for as long as it takes, as above, when the next thing should happen at the end.
  • A border of one's own is only drawn, like a fake block: it stops the player walking through it but the server does not enforce it. It lasts until it is reset or they change world or log out.