Slots - DeOpping/GUI GitHub Wiki

Our slots are a bit advanced!


Let's say we add 1 gold block to our GUI:

contents:
 'gold-block':
   material: GOLD_BLOCK
   slots:
   - '0'

This will look like so:

Tutorial-1

If we want to move it down, we add a y position!

contents:
 'gold-block':
   material: GOLD_BLOCK
   slots:
   - '0;1'

Tutorial-2

Not only this, we can add it in multiple positions!

contents:
 'gold-block':
   material: GOLD_BLOCK
   slots:
   - '0;1'
   - '0;3'

Tutorial-3

Now, lets say we want to add a filler!

contents:
 'gold-block':
   material: GOLD_BLOCK
   slots:
   - '0,8;0,5'

Tutorial-4

If we wanted to split it...

contents:
 'gold-block':
   material: GOLD_BLOCK
   slots:
   - '0,8;0,1'
   - '0,8;4,5'

Tutorial-5

If we have a filler, how can we add another item?

Items further down have a higher priority, since they are added to the GUI in order!

contents:
 'gold-block':
   material: GOLD_BLOCK
   slots:
   - '0,8;0,5'
 'diamond-block':
   material: DIAMOND_BLOCK
   slots:
   - '3;3'

Tutorial-6