#How to use custom_model_data in deluxemenus

1 messages · Page 1 of 1 (latest)

night arch
#

Hi, does anyone know how i can use the new custom_name metadata for items added in 1.21.4? I wanna use it for the items that are used in the guis

night arch
#

How to use model_data_component in deluxemenus

#

how do i use custom_name for items using these

#

these 2 are teh onyl 2 arguments i can find on the wiki

#

i tried typing this in the menu but it didnt work

#

this is the item model file in the texture pack

night arch
#

i read more into it and found this

#

but i still cant figure out what to type in strings to get the custom model data with teh custom name to pop up

#

How to use custom_model_data in deluxemenus

tepid glacier
#

try

material FEATHER
model_data_component:
  strings: ["Test"]
#

You can also try

material: FEATHER
item_model: "item/weapons/mini24"
night arch
#

Lemme try that when im on my pc again tyty

night arch
tepid glacier
#

Have you also tried using item_model?

night arch
#

i think it might be because item model is adifferent type of data

#

item_model: "minecraft:stick"

#

when i try this it turns into an actual stick

#

when i do minecraft:Test it just turns into a feather

#

same thing with this item_model: "feather[minecraft:custom_name=Test]"

night arch
#

Ive found a solution

tepid glacier
night arch
#

this is waht i am using currently for the item .json file

#

this is what im using for the menu.yml

#

@tepid glacier im not sure if the plugin can even read custom_name so i had to work around it

#

i added custom_model_data as Test for the item model and under it added a custom_name also called Test

#

and as a fallback i added just custom_name, and the fallback for this is the default item model

night arch
night arch
#

its a complicated workaround just to be able to use it and use the custom name along with it

#

if u dont wnat the custom name u can just set it as custom_model_data and put a name to that and thats literally it

#

the item json is so complicated only because i wanna make it a custom model data and work with custom names

#

i want it to be renamable in an anvil and pop up easily

tepid glacier
#

Oh. I see. I'm not sure what the difference between custom name and what DeluxeMenus uses as display_name is unfortunatelly.

night arch
#

I dont know i wish theres a developer here i can ask

#

Or if u can ask a dev for me

#

I mean how u can specify the custom_name for an item data

night arch
#

minecraft:custom_name is a feature for items in vanilla that is in the nbt that lets u rename an item

#

its like custom_model_data but just for renaming it

tepid glacier
#

but thanks for all the info

night arch
#

i dont think rn it can read custom_name for items but i might be wrong

#

i just cant find a way for it to read it

#

cuz if it can just read custom name itll be easy and i dont need to use cusotm model data for it to display themodel

tepid glacier
#

Yeah, I'm pretty sure it can't, since that's a custom nbt component

night arch
#

damn

#

would be cool if its added in the future tho

#

cuz its basically liek getting it to work with optifine cit mod

tepid glacier
#

Well, we'll probably only add it if there's an API for it provided by Spigot (or Paper)

night arch
#

ah

#

i dont code so hopefull they add it cuz idk what goes on with the coding stuff

#

im not usre why teh item_model:item/weapons/mini14 doesnt work

#

it shows up as a missing model

#

my friend said it might be cuz i didnt put the weapons file in the atlas folder in my resource pack

night arch