createSlabs

fun createSlabs(block: Block, slab: Block, blockStateModelGenerator: BlockModelGenerators)(source)

Creates a slab model based off another block

Example:

class SofterPastelsModelProvider(generator: FabricDataOutput) : FabricModelProvider(generator) {
override fun generateBlockStateModels(blockStateModelGenerator: BlockModelGenerators) {
createSlabs(SofterPastelsBlocks.WHITE_PASTEL_BLOCK, SofterPastelsBlocks.WHITE_PASTEL_SLAB_BLOCK, blockStateModelGenerator)
}
}