MinecraftScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a block"
/* First, register your block in a class where you register all your blocks. Here, we'll use the example of a custom block called "my_custom_block". */ public static final RegistryObject<Block> MY_CUSTOM_BLOCK = BLOCKS.register("my_custom_block", () -> new MyCustomBlock(Block.Properties.copy(Blocks.IRON_BLOCK))); /* Next, create a custom class for your block that extends the Block class. */ public class MyCustomBlock extends Block { public MyCustomBlock(AbstractBlock.Properties props) { super(props); } } /* Now, your block is created and registered in Minecraft Forge. You will need to add textures and other properties as needed. */