SamsCreations
SamsCreations

Every menu has its own file in plugins/SamsFishing/gui/. These files are never overwritten by updates, so your changes are safe. Run /fishing reload after editing.

FileMenu
menu.yml/fishing (main menu)
journal.yml/fishing journal
market.yml/fishing sell
gut.yml/fishing gut
shop.yml/fishing shop
deliveries.yml/fishing deliveries
tree.yml, branch.yml/fishing tree and one branch
totem.ymlA player totem
items.yml/fishing items
enchants.yml/fishing enchants
craft.yml, recipe.yml/fishing craft and one recipe

Want a button a new version added? Copy it from the bundled file, or delete your file and reload.

The layout

Every menu has 6 rows:

  • slot 0 – info about the menu
  • slot 8 – back (or close)
  • slots 43 and 44 – pages
  • the last row stays empty

Buttons

elements:
  close:
    slot: 49               # -1 removes the button
    material: BARRIER
    name: "&cClose"        # optional
    lore: ["&7Bye!"]       # optional
    glint: true            # optional
    item-model: "myserver:close"   # optional, your own model
    custom-model-data: 1001        # optional

Leave out name and lore to use the language file, so every language keeps working.

Your own buttons

A button with command: runs that command as the player:

# gui/menu.yml
elements:
  warp:
    slot: 13
    material: OAK_BOAT
    name: "&#8CC9FF⚓ Fishing Pier"
    command: "warp pier"           # no slash, %player% works
    close-menu: true
    permission: "server.warp.pier" # optional
  • requires: market hides a button while that feature is off (also levels, pearls, deliveries, skills, crafting, exchange, party, competitions).
  • A button named label-<anything> is just a label. It does nothing on click.
  • Texts can use %player% %level% %xp% %pearls% %species% %percent% %skill_points% and more.

Pictures

With the resource pack every menu gets its own picture, and the glass panes disappear. Players without the pack see the normal menu with glass panes, so everything still works.

To use your own picture, save it as resourcepack/textures/gui/<menu>.png (like shop.png) and reload:

  • size 198 × 157 px
  • the top row is the title bar
  • keep the slot squares where the default picture has them

Keep titles short, about 20 letters fit in the bar.

Picture extras

KeyWhat it does
hidden-on-picture: trueHides a button where the picture already draws it
pack-model: "samsfishing:icon/next"A different icon for players with the pack
also-in: [39, 41]One button in several slots (for wide buttons)
picture-label / picture-labelsText written onto the picture

Icons you put in resourcepack/textures/icons/ become samsfishing:icon/<name>. The built-in ones are previous, next, skill_point, locked, blank, progress_full, progress_empty and the four skill branches.

# gui/menu.yml
picture-labels:
  - { text: "Catches", x: 11, row: 1, align: left }   # x in px, row 1-4

The SamsFishing pack needs a 1.21.7+ client. Older clients see the plain menu.