Posted January 31, 20223 yr import com.pupil.cringe_mod.CringeMod; import net.minecraft.block.AbstractBlock; import net.minecraft.block.Block; import net.minecraftforge.fml.RegistryObject; import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.ForgeRegistries; public class ModItems { public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, CringeMod.MOD_ID); public static final RegistryObject<Block> EXAMPLEBLOCK = BLOCKS.register("exampleblock", ()-> new Block(Block.Properties.create(Material.IRON));/* in this line, when i print Block.Properties it's auto-changing on AbstractBlock.Properties and it hasn't create() method */ }
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.