Posted October 17, 20213 yr So, for some reason, IntelliJ isn't able to resolve the constructer. I really need some help with the properties. public static final RegistryObject<Block> GRIMSTONESTAIRS= BLOCKS.register("grimstone_bricks_stairs",() -> new StairBlock(BlockBehaviour.Properties.of(Material.HEAVY_METAL).strength(1.5f,0.5f).sound(SoundType.DEEPSLATE)));
October 17, 20213 yr did you looked at the constructor, since the constructor need the default Block as an Supplier like the OakStair has the OakBlock as default
October 17, 20213 yr Author Well, if you mean this, it doesn't work either. public static final RegistryObject<Block> GRIMSTONESTAIRS= BLOCKS.register("grimstone_bricks_stairs",() -> new StairBlock(GRIMSTONEBRICK.get(), BlockBehaviour.Properties.of(Material.HEAVY_METAL).strength(1.5f,0.5f).sound(SoundType.DEEPSLATE)));
October 18, 20213 yr it needs the default BlockState as an Supplier, and not only the default Block Edited October 18, 20213 yr by Luis_ST
October 22, 20213 yr You have to add .defaultBlockState and COPY the block. Here an example: public static final RegistryObject<Block> CUSTOM_STAIRS = BLOCKS.register("custom_stairs", () -> new StairBlock(CUSTOM_PLANKS.get().defaultBlockState(), BlockBehaviour.Properties.copy(MANGROVE_PLANKS.get()).strength(0.3F, 0.3F)) ); Edited October 22, 20213 yr by ZainJx
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.