#Craete block with overlay

7 messages · Page 1 of 1 (latest)

lost beacon
#
createCoils.forEach(block => {
        event.create(`kubejs_multiblock:machine_coil_${block.id}`)
            .material('stone')
            .hardness(7.5)
            .tagBlock('forge:mineable/paxel')
            .tagBlock('minecraft:mineable/pickaxe')
            .tagBlock('minecraft:needs_stone_tool')
            .item(item => {
                item.color(1, block.color)
            })
            .color(1, block.color)
            .defaultCutout()
            .modelJson = {
            parent: 'kubejs:block/block_coil',
            textures: {
                particle: 'kubejs:block/overlay/machine_coil',
                all: 'kubejs:block/overlay/machine_coil',
                side_overlay: 'kubejs:block/overlay/machine_coil_overlay'
            }
        }
    })

This code correctly creates the block as I want BUT when created from what I understand it gains the attributes of glass I wanted the block to be a solid block like stone
I wanted to be able to use redstone on the block and it doesn't work as it takes the attributes of the glass

I wanted to know if there is a way to create the block with overlay and have it be a solid block like stone

i give model model i use and textures

haughty dustBOT
#

Paste version of block_coil.json from @lost beacon

drowsy cliffBOT
#

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

random dagger
#

@lost beacon remove .defaultCutout()
add
.fullBlock(true)
.redstoneConductor(true)

#

maybe try .renderType("cutout") if color/tint goes wrong

lost beacon
#

thanks

#

what fullblock does?