Room template Management
As we create new puzzles, we sometimes want to reuse a room we've already built. This saves a considerable amount of time when constructions don't need to be modified, and all that's left is to concentrate on creating the Lasers-Enigma puzzle. This is why the plugin introduces the notion of a puzzle room template. This template can then be reused to create numerous rooms.
Note that a room template must contains blocks that symbolize the spawn point and the exit portals.
Room template create command​
- Type
/. roomtemplate add <template name> <minCorner x> <minCorner y> <minCorner z> <maxCorner x> <maxCorner y> <maxCorner z> [<spawn material>] [<portal material>] [<sub portal material>] [<teleport exit material>].
If you do not specify
All four marker materials (spawn, portal, sub-portal and teleport exit) must be different from one another, otherwise the command is rejected.
This command will create a room template with the given name at the given coordinates. This template will then be usable to create new rooms using the portal command.
Room template delete command​
- Type
/. roomtemplate delete <template name>. This command will delete the room template with the given name.
Room template edit command​
- Type
/. roomtemplate edit <template name> <minCorner x> <minCorner y> <minCorner z> <maxCorner x> <maxCorner y> <maxCorner z> [<spawn material>] [<portal material>] [<sub portal material>] [<teleport exit material>]. Any material parameter you omit keeps its current value (only the parameters you provide are changed). The same all-distinct rule as onaddapplies to the resulting materials.
This command will edit a room template having the given name and allow you to update all its attributes (except its name).
Sub-portal order and exit markers​
When a template is activated, each sub-portal (a block of the sub-portal material) can be configured directly from the template, so a hub does not need its sub-portals wired by hand afterwards:
- Order segment — place a sign (any sign type: standing, wall or hanging, any wood) within 3 blocks of the sub-portal. The sign must carry exactly one non-empty line, an integer, which becomes that sub-portal's order number. An empty/absent sign leaves the order auto-generated; a sign with several non-empty lines or a non-integer value is reported in chat at activation and ignored (activation still completes).
- Teleport exit — if the template defines a
<teleport exit material>, place one such marker block within 4 blocks of the sub-portal. Its position becomes the spot a player lands on when leaving that sub-portal, and the marker block is cleared to air at activation. Place it on the side the player should face away from the sub-portal, so they look outward when arriving.
When two sub-portals are close, each takes its own nearest sign and marker (closest wins, each sign/marker used once).
Room template info command​
- Type
/. roomtemplate info <template name>to get informations about the given room template.
Room template teleport command​
- Type
/. roomtemplate teleport <template name>to teleport to the given room template.