HyperScript
Docs

← All of the Docs HyperBedrock

Buttons with a picture, and another server HyperBedrock

expression"<text>" with image "<address>"HyperBedrock

In with buttons: a picture beside what the button says. An address that begins with http is fetched by the player's game; anything else is a path in a resource pack, such as textures/items/diamond. A button without it has no picture. Not for the two buttons of a question form

show form "hub" to player titled "&lWhere to?" with buttons "Survival" with image "https://example.com/icons/survival.png", "Skyblock" with image "textures/items/diamond", "Stay here"
expressiontransfer <who> to bedrock server <address>HyperBedrock

Send a Bedrock player to another Bedrock server. The port is 19132 unless port <n> follows, or the address ends in :<n>. A Java player stays where they are

transfer player to bedrock server "survival.example.com"
Guide and examples
command /hub:
    trigger:
        if platform of player is not "bedrock":
            send "&7This menu is for Bedrock players."
            stop
        show form "hub" to player titled "&lWhere to?" with buttons "Survival" with image "https://example.com/icons/survival.png", "Skyblock" with image "textures/items/diamond", "Stay here"

on form "hub":
    if {_button} is "Survival":
        transfer player to bedrock server "survival.example.com"
    else if {_button} is "Skyblock":
        transfer player to bedrock server "skyblock.example.com" port 19133
SyntaxEffect
"<text>" with image "<address>"In with buttons: a picture beside what the button says. An address that begins with http is fetched by the player's game; anything else is a path in a resource pack, such as textures/items/diamond. A button without it has no picture. Not for the two buttons of a question form
transfer <who> to bedrock server <address>Send a Bedrock player to another Bedrock server. The port is 19132 unless port <n> follows, or the address ends in :<n>. A Java player stays where they are
  • In on form "<id>": {_button} is what the button says, without the picture.
  • A transfer hands the player's game an address to connect to: the other server has to be one a Bedrock client can reach from where the player is.