createFenceGate

fun createFenceGate(block: Block, fenceGate: Block, blockStateModelGenerator: BlockModelGenerators)(source)

Creates a fence gate model based off another block

Example:

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