Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

When i'm trying to register a block, there's some problems with Block.Properties


Recommended Posts

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 */


Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.