When i attempt to create (I used TestBlockSlab as a placeholde) :
public static final RegistryObject<SlabBlock> TEST_BLOCK_SLAB = BLOCKS.register("test_block_slab", TestBlockSlab::new);
It gives me this error:
Inferred type 'I' for type parameter 'I' is not within its bound; Should extend 'net.minecraft.block.Block'
Am i missing something?
I've got the slab class done, but I can't seem to figure out the ForgeRegistries for it. I've got this,
public static DeferredRegister<SlabBlock> SLABS = DeferredRegister.create(ForgeRegistries.???????, .MorePolishedBlocks.MOD_ID);
but can't find a class under ForgeRegistries that would make sense.
Also, thanks for telling me about the SlabBlock class.
Again, I'm new to this.
I am new to modding, and was attempting to create custom blocks. I am able to create the blocks, but am having a lot of trouble creating the slabs and stairs. I cant find a tutorial that goes through all the steps, and the ones i do find are outdated. If someone could help me with this, that would be great. Thanks.