#How i change only layer0 color?
19 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
first texture is overlay
let overlayItems = ['crushed', 'dust_impure', 'dust_pure', 'wire_fine']
global.database.forEach(items => {
items.itemsOptions.forEach(shapeItem => {
let id = items.id == 'raw_material' ? 'raw' : items.id
if (shapeItem.includes(overlayItems)) {
let itemOverlay = event.create(`unify:${items.id}_${shapeItem}`)
.maxStackSize(64)
.color(0, items.color)
.texture('layer0', `unify:unify/${shapeItem}`)
.texture('layer1', `unify:unify/${shapeItem}_overlay`)
return
}
let item = event.create(`unify:${id}_${shapeItem}`)
.maxStackSize(64)
.color(0, items.color)
.texture(`unify:unify/${shapeItem}`)
})
})
global.database = [
{ id: 'copper', color: '#FF6400', hardness: 5, level: 'minecraft:needs_stone_tool', oresOptions: ['stone', 'deepslate'], itemsOptions: ['dust_impure'] },
]
let me see json model of this item?
i dont have model
the model is look likes this
{
"parent": "item/generated",
"textures": {
"layer0": "gregtech:items/material_sets/dull/dust_impure",
"layer1": "gregtech:items/material_sets/dull/dust_impure_overlay"
}
}
@echo lagoon why do you want to tint layer0, when layer1 is the overlay?
that model i took from gregtech mod in 1.12.2
i want create a impure dust like gregtech
can you change to .color(1, just to test?
ok i will do
then I ping
this is from gregtech 1.12.2
the impure dust has overlay without change color
not working
the right one is pure so need that texture blue on overlay
need this
