#one model for many custom plates

18 messages · Page 1 of 1 (latest)

mystic girder
#

hi!
how to apply model and color for custom plates, rods, gears? like jaopca. i can install jaopca, but it has a lot of unnecessary things. thanks!

trim ploverBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

quick cosmos
#

.color(0x012345) in the item builder

mystic girder
#

sorry for ping

quick cosmos
#

event.create("myitem").color(0x123456)

mystic girder
#

what about model?

quick cosmos
#

Will apply that color to the Texture in kubejs/assets/kubejs/textures/item/myitem

quick cosmos
tacit dove
#

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.

mystic girder
#

how to apply tag to new items?

#

something like .setTag()

quick cosmos
mystic girder
#

no, i mean while creating new item

quick cosmos
#

yeah .tag("tag")

mystic girder
#

thanks gentlemen, works perfect

warped mortarBOT
#

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.