Control Panel - How To Customize

The control panel for ASkyblock and AcidIsland can be customized.

Here is a snippet of the default control panel:

default:
  panelname: '&1Commands'
  buttons:
    0:
      material: GRASS
      description: Go to your island
      command: 'island go'
      nextsection: ''
    1:
      material: LAVA_BUCKET
      description: Open the minishop
      command: 'island ms'
      nextsection: ''

In this example, there are two buttons - one that does the command island go, the other that does the command island ms.

To make the control panel expand, you can make a button point to anther section - that is, a new panel. TO do that you put the name of new panelname in the entry for nextsection:

default:
  panelname: '&1Commands'
  buttons:
    0:
      material: GRASS
      description: Go to your island
      command: 'island go'
      nextsection: ''
    1:
      material: LAVA_BUCKET
      description: Go to another panel
      command: ''
      nextsection: '&ANext Panel'

nextpanel:
  panelname: '&ANext Panel'
  buttons:
    0:
      material: STONE
      description: Go to world spawn
      command: 'spawn'
      nextsection: ''
    1:
      material: SAPLING
      description: Back to the main menu
      command: ''
      nextsection: '&ACommands'

It is important that the panelname and nextsection names match exactly. Note that you can use chat colors.

Each panel can have up to 9 buttons.


Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes