EcoSkills icon indicating copy to clipboard operation
EcoSkills copied to clipboard

Custom Items

Open m4kii420 opened this issue 2 years ago • 2 comments

https://user-images.githubusercontent.com/85348361/177104246-8bddef7e-e51f-4cfd-9971-9a73e2e69743.mp4

Can you make it possible to add custom items in the gui so I can connect skills menu with other GUIs like so. Every other plugin has that option, even the free ones.

custom-items:
  example:
    item: 'player_head texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzAyN2UyYTNjNGJjNzU2MzgwNWVmOGNlMmEyZjczYzRiODMwNjNlZTRhMzNmMmQwY2U2ZDM5ZDc5YTg4ZmRiYSJ9fX0='
      name: example
      lore:
        - "&7Custom items are very needed"
        - "&7for new plugin generations."
      enchanted: true 
      location:
        column: 5
        row: 6
      left-click-command:
        - dmenu open main_menu (example)
      left-click-command: []
      middle-click-command: []
      left-click-console-command: []

m4kii420 avatar Jul 04 '22 07:07 m4kii420

Would be very awesome.

Dev Notes There's a slight delay when switching from one menu to another, so the current inventory view must be closed for the player. I found opening the menu 1 tick after our previous view is closed to be best.

Islati avatar Jul 04 '22 08:07 Islati

rlly cool!

Auxilor take a look 👌👌

Scrulius avatar Jul 05 '22 23:07 Scrulius