#How to use custom_model_data in deluxemenus
1 messages · Page 1 of 1 (latest)
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
does anyone know how to use custom names in this format?
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
try
material FEATHER
model_data_component:
strings: ["Test"]
You can also try
material: FEATHER
item_model: "item/weapons/mini24"
Lemme try that when im on my pc again tyty
Ive tried this one but it doesnt work
Have you also tried using item_model?
it comes out as missing model
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]"
Ive found a solution
Can you share please? A lot of people have had issues with the new component stuff, and it might help them.
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
this makes it so if the model has custom model data of Test, the mini14 model appears, if it has the custom model data and custom name of Test, the mini14 model appears also
this makes it so if it only has custom_name as Test it will appear as a mini14 model, the fallback is for when it doesnt have the custom name and itll just appear as a default feather
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
Oh. I see. I'm not sure what the difference between custom name and what DeluxeMenus uses as display_name is unfortunatelly.
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
Display name in deluxemenus is just what it displays the item name as
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
I'm a dev for DM. I was just writing my thoughts down with the hope I can look into it one day
but thanks for all the info
ohh
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
Yeah, I'm pretty sure it can't, since that's a custom nbt component
damn
would be cool if its added in the future tho
cuz its basically liek getting it to work with optifine cit mod
Well, we'll probably only add it if there's an API for it provided by Spigot (or Paper)
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
Do u know how i can like say a message to the user that clicks on the item instead of me doing [console] msg?
- [message]