Skip to content

GUI

Forge GUI files live in gui/ and usually include the main forge GUI, recipe book, and editor GUI. The GUI protects input slots, handles clicks, returns items, and starts the forge process.

Common areas

AreaPurpose
Blueprint slotHolds or displays the required blueprint.
Target slotHolds the equipment modified in target-input mode.
Material slotsHold required and optional materials.
Preview slotShows possible output, quality pool, and risks.
Confirm buttonStarts forging.
Back buttonReturns to the recipe list or closes the menu.

Layout example

yaml
gui:
  title: '<dark_gray>Forge'
  rows: 6
  slots:
    blueprint: 10
    target: 13
    materials: [28, 29, 30, 31, 32, 33, 34]
    preview: 16
    confirm: 49

Confirm button example

yaml
confirm_button:
  material: ANVIL
  name: '<green>Start Forging'
  lore:
    - '<gray>Consumes blueprint and materials.'
    - '<gray>May produce a higher quality item.'
  actions:
    click:
      - 'forge_start'

Troubleshooting

If the confirm button does nothing, check slot conflicts, action names, permissions, and material validation. Always re-check inventory contents when the player confirms; do not rely only on cached state from when the GUI opened.