📚
GSLibrary
  • 👋Welcome
  • 👾Our plugins
  • Language API
    • 🇬🇧Languages
    • 🇰🇳For developers
  • Color API
    • 🎨Colors in configurations
  • GUI API
    • 🆕Creating GUI
    • 📕GUI Normal item
  • ACTIONS API
    • ⚙️How to make action
    • 📰Actions list
  • CONDITIONS API
    • 📐How to make condition
    • 📰Conditions types list
Powered by GitBook
On this page
  • - Material
  • - Item amount
  • - Player head
  • - Base64 head
  • - Item name
  • - Item lore
  • - CustomModelData
  • - Update
  • - Item enchants
  • - Item itemflags

Was this helpful?

  1. GUI API

GUI Normal item

A tutorial how to create a normal static item to the gui

PreviousCreating GUINextHow to make action

Last updated 2 years ago

Was this helpful?

syntax
item:
  #data
  material: string
  amount: number
  player: string
  base64: string
  name: string
  lore: string list
  custommodeldata: number
  update: boolean
  enchants: string list
  itemflags: string list
  actions: action data

- Material

The item material you want to use. It will be displayed in the menu and you can expand it further. All materials can be found here:

material: 'your material' # example: STONE

- Item amount

The amount of the item that will be showed

amount: 'number' # example: 10

- Player head

In case you use the PLAYER_HEAD material, you can add a player skin to this head according to his name.

player: 'player name' # example: Gennario

- Base64 head

This is head base64 string (at the bottom of the selected head page)

base64: 'base64 value'

- Item name

name: 'text here' # example: '&cHello &aworld'

- Item lore

lore: 
  - 'text here' # example: '&cHello &aworld'
  - 'text here' # example: '&cHello &aworld'
  ...

- CustomModelData

If you want to use a resourcepack item, you can set it with item custom model data

custommodeldata: 'model number' # example: 1002

- Update

If you want to be your item in the GUI live updated, just add update line to your item and your item will be updated in specified interval for the gui.

update: 'boolean' # example: true

- Item enchants

enchants: 
  - 'enchant;level' # example: 'DAMAGE_ALL;1'

- Item itemflags

itemflags: 
  - 'flag' # example: 'HIDE_ENCHANTS'

In case you use the PLAYER_HEAD material, you can add a base64 skin to this head with base64 string.

Item can have a display name. Name supports and PlaceholderAPI.

Item can have a lore that contains multiple lines without any langth and size limit. Lore supports and PlaceholderAPI.

If you want to add enchants to your item, you can do it this way. Format: ENCHANT;LEVEL All enchant types can by found !

If you want to hide some things from the item, you can use itemflags. All itemflags can be found !

📕
click here!
Heads can be found here...
colors
colors
here
here