#DM custom item component help

1 messages · Page 1 of 1 (latest)

quasi wasp
#

hello i used to use a custom gui with dm before the new rp updates so now im using minecraft 1.21.4 but it seems the older method no longer worked so if switched to the method using component but im having no luck is anyone able to help me this is my current layout for resourcepack and the file for the dm.


size: 52

menu_title: "&f七七七七七七七七ㇺ"

open_requirement:
  requirements:
    permission:
      type: has permission
      permission: deluxemenus.menu
      deny_commands:
        - '[message] &cPlease contact your local admin to be perminated with the warp permission.'

items:
  '1':
    model_data_component: icon_pack:pixel
    slot: 26
    display_name: "&c+1 Strength"
    lore:
      - "&7Left-Click to allocate Stat-Point"
    left_click_commands:
      - '[player] gamemode survival'
      - '[close]'
  'close':
    model_data_component: icon_pack:pixel
    slot: 52
    display_name: "&c CLOSE MENU"
    left_click_commands:
      - '[close]'```
hidden shell
quasi wasp
#

size: 52

menu_title: "&f七七七七七七七七ㇺ"

open_requirement:
  requirements:
    permission:
      type: has permission
      permission: deluxemenus.menu
      deny_commands:
        - '[message] &cPlease contact your local admin to be perminated with the warp permission.'

items:
  '1':
    item_model: icon_pack:pixel
    slot: 26
    display_name: "&c+1 Strength"
    lore:
      - "&7Left-Click to allocate Stat-Point"
    left_click_commands:
      - '[player] gamemode survival'
      - '[close]'
  'close':
    item_model: icon_pack:pixel
    slot: 52
    display_name: "&c CLOSE MENU"
    left_click_commands:
      - '[close]'```
quasi wasp
# hidden shell Can you send the error please?
[10:22:22 WARN]: [DeluxeMenus] Material for item: 1 in menu: account is not present!
Skipping item: 1
[10:22:22 WARN]: [DeluxeMenus] Material for item: close in menu: account is not present!
Skipping item: close
[10:22:22 ERROR]: [DeluxeMenus] Failed to load menu items for menu: account```
hidden shell
# quasi wasp ```[10:22:22 INFO]: EmperorSenju issued server command: /dm reload [10:22:22 WAR...

Ah. I see now that you have no material set. You need to set a base material. I am not very familiar with how item_model works but I think it could be any item. Try this.

open_command: account

size: 52

menu_title: "&f七七七七七七七七ㇺ"

open_requirement:
  requirements:
    permission:
      type: has permission
      permission: deluxemenus.menu
      deny_commands:
        - '[message] &cPlease contact your local admin to be perminated with the warp permission.'

items:
  '1':
    material: PAPER
    item_model: icon_pack:pixel
    slot: 26
    display_name: "&c+1 Strength"
    lore:
      - "&7Left-Click to allocate Stat-Point"
    left_click_commands:
      - '[player] gamemode survival'
      - '[close]'
  'close':
    material: PAPER
    item_model: icon_pack:pixel
    slot: 52
    display_name: "&c CLOSE MENU"
    left_click_commands:
      - '[close]'
quasi wasp
#

hm

quasi wasp
solid nova
#

that is the item you need to set for the material for it to show properly

quasi wasp
#

this is in items

solid nova
solid nova
# quasi wasp okay tyy

so, even though it's item_model, you still have the base item it draws from. So I set up a test resourcepack and menu, and yeah it's not working for item_model,

quasi wasp
#

for like an invisible object /

solid nova
#

I use custom model data and it works great

quasi wasp
#

i hate how minecraft updates the resourcepack

solid nova
#

for an invisble object as in?

quasi wasp
#

all the time

solid nova
#

fortunately I only started in 1.21.4 so i never had to unlearn all the jank

quasi wasp
#

as in having an item e.g paper using a pixel like png

#

to make it invisble

solid nova
#

yeah you can do that with custommodeldata

#

you can do it with 0 pixels as well

quasi wasp
#

that works with 1.21.4 ?

solid nova
#

yup yup i use it

quasi wasp
#

do you have an example how ?

solid nova
#

yup yup, do you need help on setting up Custom model data, the menus, or both?

quasi wasp
#

both if possible

solid nova
#

all good yeah i can send you the example set

quasi wasp
#

ty so much

#

wait i have another question if ur able to answer

solid nova
#

yup yup

#

i can't send files in here so i'll DM you the file