First puzzle

From Lasers-Enigma Documentation
Jump to: navigation, search

Introduction

Creating a simple room with basic puzzles is relatively easy. You can do this without issues if you follow this page.

Building the puzzle room

The first step is to build the room in which your puzzle will take place. To make this tutorial as simple as possible. we will focus on the main parts of the plugin rather than an indepth room build. We will use a very basic room for demonstration, however you can decorate it as you wish.

  • Go somewhere where you can build. At least 30 block away from any existing structure you would like to keep.
  • Write (or copy paste) the following WorldEdit commands:
    • //pos1
    • //pos2
    • //expand 21 north
    • //expand 21 east
    • //set stone
    • //expand 10 up
    • //walls glowstone
    • //contract 1 up
    • //contract 8 down
    • //contract 10 east
    • //contract 10 west
    • //set air

Room created.png

  • Then create a small corridor outside of the structure's exit. It must be 2 blocks long.
  • Create 2 blocks of orange wool that mark the corners of this corridor.

Corridor.png

  • Create 2 blocks of green wool that mark the corners of the whole structure (this must include the corridor).

Block for area creation1.pngBlock for area creation2.png

So if you have done everything correctly this is what the result should look like:

Build done.png

Well done. Now let's focus on the plugin's usage.

Creating the area

Now let's create the puzzle area

  • Use the /lasers command to open the plugin's main menu.
  • Have the Create area tool in your hand then right click one of the green blocks.

First area point.png

  • Right click on the second green wool block still while holding the Create area menu item.

Second area point.png

Now you have made your first area! Time to whip out the lasers!

Laser related components

Let's start manipulating lasers.

Create the laser sender

  • Have the <Create component</code> in your hand, then right click on the surface where you want to place the laser sender (even if it's possible to create components on the wall or the ceiling, let's start by placing it on the floor).
  • Select Laser sender in the component selection menu.

Place laser sender.png

  • Select the Red color. (But you can use others later)
  • Once placed it should start shooting its laser.

Since you just placed a component the component edition shortcut bar just opened

  • Rotate the laser if you want, but only horizontally for now (in order for your players not to get lost already).
  • Exit the component shortcut bar by clicking on the small exit button (the last one).

Create a mirror support

  • Right click on the floor where you want to place the mirror support, on the laser beam actual path, while holding the Place component menu item.
  • Select the Mirror support in the component selection menu.

Place mirror support.png

  • Select the White color (colored mirrors are really complicated, so let's start simple).
  • Rotate the mirror support to reflect the laser in a new direction.
  • Exit the component shortcut bar.

Create a laser receiver

  • Right click on the floor where you want to place the laser receiver to be, while holding the Place component menu item. It doesn't have to be inline with the laser but for now, place it aligned with the sender or mirror support.
  • Select the Laser receiver in the component selection menu.

Place laser receiver.png

  • Select the Red color (in order for it to be activated by a red laser beam).
  • If neededhe laser be, rotate the laser receiver or mirrored supported in order for the laser receiver to be activated.

This is what it should look like:

First puzzle result 1.png

  • Exit the component shortcut bar.

Other components

We finished the laser part. Let's do the last required actions to finish our first puzzle.

Create a mirror chest

To let player retrieve the mirror they will need to place on the mirror supports we have to create a mirror chest.

  • Right click on the surface where you want to place the mirror chest while holding the Create component menu item.
  • Select the Mirror chest in the component selection menu.

Place mirror chest.png

This is what it should look like:

First puzzle result 2.png

  • Exit this component edition and go back the main shortcut bar.

Create a door

Let's first deactivate the laser.

  • Click on the mirror support to open the second shortcut bar.
  • Rotate the mirror support or the laser sender to the receiver is no longer active.

To create a door that players can pass only if they have solved the puzzle we will use Conditional disappearing blocks.

  • Aim for one of the block on the entrance of your exit corridor.

Place conditional disapearing block.png

  • Right click while holding the Create component menu item.
  • Select the Conditional disappearing block in the component selection menu.

Place conditional disapearing block 2.png

Now rotate the laser again, this is what it should look like:

First puzzle result 5.pngFirst puzzle result 6.png

Area configuration

Configure players permissions

  • From the main shortcut bar click on Area configuration.
  • Define the player permissions within this puzzle area. Just allow them to rotate mirrors horizontally for now.

Define permissions.png

Create a checkpoint

  • Player yourself at the entrance of your area.
  • From the main shortcut bar click on Area configuration.
  • Click on the Define the checkpoint menu item.
  • This is highly important if there is a chance of death due to a trap, parkour or a deadly laser!

Place checkpoint.png

Now players that dies inside the area will respawn at this exact location facing the same direction as you just did when setting up the checkpoint.

Create a victory area

We need to detect that players has won the area for multiple reasons (mainly for statistics and checkpoints). There is multiple victory conditions you can set but in this example we will use the victory area's one: In order to do that we need to create a Victory area. Players that leaves the area passing through this Victory area will be considered as winners of this puzzle.


  • From the main shortcut bar click on Area configuration.
  • Click on the Victory area mod checkbox.
  • Click on the Add victory areas menu item.

Place victory area 1.png

  • Right click on the first orange wool item we created earlier around our exit corridor.

Place victory area 2.png

  • Right click on the second one.

Place victory area 3.png

That's it. You can exit all the plugin's menus.

Test the puzzle

  • Get yourself in survival/adventure game mode by writing the /gamemode adventure command.
  • Let's test it.