Conditional disappearing block
Introduction​
The Conditional disappearing block is a component that, as the name suggests, disappears only when specific conditions are met.
By default, this block is visible (using its configured material, default: obsidian) when conditions are not met and disappears when activated. You can customize these conditions extensively.
How to Place a Conditional disappearing block​
Two placement methods are available from the Place component menu.
Standard placement (default material)​
- Open Lasers-Enigma main shortcut bar by typing the
/laserscommand. - Aim for the block where you want to place the component. This can be on the floor, ceiling or wall. Then right-click with the "Place component" button in hand.
- In the component selector, pick Conditional disappearing block. The component is placed on the clicked face with obsidian as its default visible material.
- Once placed, the Conditional disappearing 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 display 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 keeps it while visible.
- 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).
- Open the main shortcut bar and right-click on that block with the "Place component" button.
- In the component selector, pick Conditional disappearing block (from shape). The native block is replaced in place by the component, which keeps the exact same visible appearance.
- The component disappears (becomes air) when its conditions are met and reappears with the captured shape when they are not.
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 disappearing block​
If the Conditional disappearing block edition shortcut bar is not already open, simply right-click on the component to open it. You can do this even if the component is hidden.
Via Shortcut bar​
From the Conditional disappearing 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 options summarized above, 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 type | Laser 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 block | The laser is blocked. |
When the block is invisible (conditions 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.