Add a steel catwalk block

This commit is contained in:
Zontreck 2024-03-03 19:31:57 -07:00
parent 7fdde3654c
commit e4ea8d0b8f
13 changed files with 50 additions and 5 deletions

View file

@ -317,5 +317,7 @@ public class ModBlocks {
private static final VoxelShape STEEL_RAILING_EAST = Block.box(0.25, 0.25, 0.25, 1.25, 16, 15.75);
public static final RegistryObject<Block> STEEL_RAILING = registerWithItem(BLOCKS.register("steel_railing", ()->new RotatableBlockCustomVoxels(gratingBlock, STEEL_RAILING_NORTH, STEEL_RAILING_SOUTH, STEEL_RAILING_WEST, STEEL_RAILING_EAST)), new Item.Properties());
public static final RegistryObject<Block> STEEL_CATWALK_BLOCK = registerWithItem(BLOCKS.register("steel_catwalk_block", ()-> new Block(gratingBlock)), new Item.Properties());
}

View file

@ -136,6 +136,7 @@ public class ModBlockStatesProvider extends BlockStateProvider {
blockWithExistingModel(ModBlocks.STEEL_CATWALK_STAIRS_RR, "block/engineersdecor/furniture/steel_catwalk_stairs_rr", true);
blockWithExistingModel(ModBlocks.STEEL_CATWALK_STAIRS_DR, "block/engineersdecor/furniture/steel_catwalk_stairs_dr", true);
blockWithExistingModel(ModBlocks.STEEL_CATWALK_BLOCK, "block/steel_catwalk_block", false);
}

View file

@ -75,6 +75,8 @@ public class ModBlockLootTablesProvider extends BlockLootSubProvider
dropSelf(ModBlocks.STEEL_GRATING_TOP.get());
dropSelf(ModBlocks.STEEL_CATWALK_TOP.get());
dropSelf(ModBlocks.STEEL_CATWALK_BLOCK.get());
}