Panel Blocks

How to open a panel with a block

How to open a panel with a block

  1. Type /cpb add [panel] while looking at the desired block. The block you are looking at when the command is executed is the block that will open the panel.

  2. Right-clicking the block will open the panel, if the block is destroyed, the location will be saved so if the block is replaced, it will still open the panel.

You can do /cpl to view a list of the panel blocks. This will reveal the worlds and locations that you can find your blocks at.

‚Äč

The blocks.yml File

The blocks.yml file stores the locations that panels are located, take the following file for example

world_31_92_-80:
panel: examplePanel

The file will show the location of the block, in this syntax worldName_X_Y_Z. The plugin uses the underscore symbol to separate the world and the three axis, so if your world name contains an underscore use %dash% instead. If you want your panel block to execute commands, simply add a commands section like seen below. If your panel block contains a commands section it won't open the panel automatically anymore, simply add open= panelName into the commands section to open the panel instead.

world_31_92_-80:
panel: examplePanel
commands:
- open= examplePanel
- msg= panel opened!