Skip to main content

Conditional appearing block

Introduction​

The Conditional appearing block is a component that appears only when specific conditions are met. By default, this block is not visible unless the conditions are met, at which point it becomes visible using its configured material (default: obsidian). These conditions are highly customizable.

How to Place a Conditional appearing block​

Two placement methods are available from the Place component menu.

Standard placement (default material)​

  1. Open Lasers-Enigma main shortcut bar by typing the /lasers command.
  2. Aim for the block where you want to place the component. This can be on the floor, ceiling or wall. Right-click with the "Place component" button in hand.
  3. In the component selector, pick Conditional appearing block. The component is placed on the clicked face with obsidian as its default visible material.
  4. Once placed, the Conditional appearing block edition shortcut bar will open, allowing you to edit the component.

From an existing block (copy shape and orientation)​

When you want the block to appear as a stair, log, slab, fence, or any block with a specific orientation, use this method. The component captures the full shape of the source block (facing, axis, half, rotation, ...) and reproduces it exactly when visible.

  1. Place a native Minecraft block where you want the component, oriented as you want it to appear (e.g. oak stairs facing east, bottom half).
  2. Open the main shortcut bar and right-click on that block with the "Place component" button.
  3. In the component selector, pick Conditional appearing block (from shape). The native block is replaced by the component, and its shape is stored as the component's visible appearance.
  4. The component is invisible at rest (as with any appearing block) and will reappear with the captured shape when its conditions are met.

Changing the material later through the Select material menu resets the captured shape. To change the shape, destroy the component and recreate it from a new source block.

How to Edit a Conditional appearing block​

If the Conditional appearing block edition shortcut bar is not open already, simply right-click on the component to open it, even if the component is hidden.

Via Shortcut bar​

From the Conditional appearing block edition shortcut bar, you can:

  • Change the condition of activation.
  • Increase or decrease the minimum number required to activate the component for your respective mod.
  • Increase or decrease the maximum number required to activate the component for your respective mod.
  • Open the "Select material" menu to change the block's material.
  • Open the Component configuration for more options.

Via Component Configuration menu​

In the Component configuration menu, you will have access to all the features summarized before, including the Select material button.

Material and laser interaction​

When the block is in its visible state, laser beams interact with it exactly as they would with a real block of the chosen material:

Material typeLaser behaviour
Concrete powder (any colour)The laser is reflected (mirror behaviour).
Stained glass (any colour)The laser passes through with colour filtering.
Transparent / crossable materials (air, slabs, …)The laser passes through unaffected.
Any other solid blockThe laser is blocked.

When the block is invisible (conditions not met), the laser always passes through.

Portal Surface compatibility​

When this block is configured with a quartz material (Quartz Block, Smooth Quartz, Quartz Stairs, or Smooth Quartz Stairs), it acts as a valid Portal Surface while visible. Any portal placed on it is automatically removed when the block becomes invisible.

Known issues​

No known issue currently.

See our issue board for more information.