#How i change only layer0 color?

19 messages · Page 1 of 1 (latest)

echo lagoon
#

I want what the title says
change only the color of layer0 and layer1 will continue with the original color of the texture without receiving any changes in color

inner rainBOT
#

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

echo lagoon
#

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'] },
]
native meteor
#

let me see json model of this item?

echo lagoon
echo lagoon
#

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"
  }
}
native meteor
#

@echo lagoon why do you want to tint layer0, when layer1 is the overlay?

echo lagoon
#

that model i took from gregtech mod in 1.12.2

#

i want create a impure dust like gregtech

native meteor
#

can you change to .color(1, just to test?

echo lagoon
#

ok i will do

#

then I ping

#

this is from gregtech 1.12.2
the impure dust has overlay without change color

echo lagoon
#

the right one is pure so need that texture blue on overlay

#

need this

native meteor