MinecraftScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a block"
/* To create a block in Minecraft Forge, you'll need to create a custom Block class and register it. Here's an example: */ // Custom Block class public class CustomBlock extends Block { public CustomBlock() { super(Block.Properties.of(Material.STONE).strength(4f, 1200f).requiresCorrectToolForDrops()); } } // In your Mod class or a dedicated class for registering blocks public static final RegistryObject<Block> CUSTOM_BLOCK = BLOCKS.register("custom_block", () -> new CustomBlock()); /* Don't forget to add the block's texture and model files in the appropriate resource folders. */