#How to create new slab block

9 messages · Page 1 of 1 (latest)

golden tree
#

I want to create iron slab block. Textures same as Iron block. Is it possible to implement this using kubejs?

verbal rampartBOT
#

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

golden tree
#

I know about mods adding this block.
But I don't want to add global mod only for one slab.

fierce lotus
#

event.create(‘slab’, ‘slab’) in block registry event

novel osprey
#

The First "slab" String is your ID ^

golden tree
#

How to copy texture from original iron block?

novel osprey
#

Just use .textureAll("path")

#

Or if only one Side texture("side", "path")

golden tree
#

Thanks!

StartupEvents.registry('block', event => {
    event.create('iron_slab', 'slab')
        .displayName('Iron Slab')
        .material("metal")
        .model("block/iron_block")
        .hardness(4)
        .tagBlock('minecraft:mineable/pickaxe')
        .textureAll('minecraft:block/iron_block')
})