#one model for many custom plates
18 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
.color(0x012345) in the item builder
show me example, pls
sorry for ping
event.create("myitem").color(0x123456)
what about model?
Will apply that color to the Texture in kubejs/assets/kubejs/textures/item/myitem
You don't need a model for color
Assuming you want multiple items to use the same custom model, where the path to texture is within the model, then this would work:
const myModel = { ...datapack-style-json.... }
event.create("item1").modelJson(myModel).color(0x123456)
event.create("item2").modelJson(myModel).color(0x654321)
However, assuming you're just creating Items that should be a regular image, and not items that look 3D like blocks, then you won't need that.
If all you need is to change the colors of the item textures, but need the same texture, then this will be better for you:
event.create("item3").texture('minecraft:item/iron_ingot').color(0x123456)
event.create("item4").texture('minecraft:item/iron_ingot').color(0x654321)
Just substitute "minecraft:item/iron_ingot" for whatever texture you want, for example "mekanism:item/gear" or whatever texture they use.
If you are creating blocks instead, that's a different matter, but I am assuming the plates, rods, and gears are items.
no, i mean while creating new item
yeah .tag("tag")
Please close your ticket (with </ticket close:1054771505520717835> or the button atop this thread) once you resolved your issue! This also helps others that would like to help out, as they don't have to look into this thread to check if it has been resolved by now.
Do you have any other questions regarding your issue? Feel free to ask!
Note: You should generally create a new post for unrelated issues.