Create A New Bank Inventory

Follow the instruction to understand the inventory system and build unlimited GUIs by our own!

Buttons Values

NOTICE: Following the buttons values and understands them will save you a lot of time.

  • GUI buttons can be named like: deposit1, deposit2, withdraw12, withdraw24, and so on.

  • The custom values such: depositCustom, withdrawCustom or Transfer, can be numbered, with full action keyword (deposit/withdrawall/transfer/depositcustom etc..) and the value of all of them needs to be 0.

Example of creating a new bank GUI menu

Final result

inventories.yml:

inventories:
  default:
    my-custom-menu:

        title: '&3&lMy Custom Bank GUI'

        slots: 36

        fillMaterial: CYAN_STAINED_GLASS_PANE

        items:
            
            deposit1:
              material: LIME_STAINED_GLASS_PANE
              slot: 10
              flags: false
              name: '&a&lDeposit $100'
              value: 100.0

            deposit2:
              material: LIME_STAINED_GLASS_PANE
              slot: 11
              flags: false
              name: '&a&lDeposit $5,000'
              value: 5000.0

            deposit3:
              material: LIME_STAINED_GLASS_PANE
              slot: 12
              flags: false
              name: '&a&lDeposit $15,000'
              value: 15000.0

            depositcustom:
              material: GREEN_STAINED_GLASS_PANE
              slot: 20
              flags: false
              name: '&a&lDeposit Custom Amount'
              value: 0.0

            depositall:
              material: LIME_STAINED_GLASS_PANE
              slot: 19
              flags: false
              name: '&2&lDeposit All'
              value: 0.0

            withdraw1:
              material: YELLOW_STAINED_GLASS_PANE
              slot: 14
              flags: false
              name: '&6&lWithdraw $100'
              value: -100.0

            withdraw2:
              material: YELLOW_STAINED_GLASS_PANE
              slot: 15
              flags: false
              name: '&6&lWithdraw $5,000'
              value: -5000.0

            withdraw3:
              material: YELLOW_STAINED_GLASS_PANE
              slot: 16
              flags: false
              name: '&6&lWithdraw $15,000'
              value: -15000.0

            withdrawcustom:
              material: ORANGE_STAINED_GLASS_PANE
              slot: 24
              flags: false
              name: '&6&lWithdraw Custom Amount'
              value: 0.0

            withdrawall:
              material: YELLOW_STAINED_GLASS_PANE
              slot: 25
              flags: false
              name: '&6&lWithdraw All'
              value: 0.0

            balance:
              material: Sunflower
              slot: 22
              flags: false
              name: '&2&l${balance}'

            transfer:
              material: Barrier
              slot: 27
              flags: false
              name: '&5&lTransfer Money'
              lore:
                - '&7&lto other account'
                - '&8(Click again to clear selection)'

            back:
              material: IRON_DOOR
              slot: 31
              flags: false
              name: '&c&lExit' 

Last updated