Tutorial by Examples

First we need a class that represents the block public class CustomBlock extends Block { public CustomBlock () { super(Material.ROCK); setHardness(1.0f); setHarvestLevel("pickaxe", 0); setResistance(1.0f); setCreativeTab(CreativeTabs.DEC...
Next we need to tell Minecraft what we want our block to look like. { "parent": "block/cube_all", "textures": { "all": "example:blocks/decorative" } } That's pretty much all that's needed for it to work once the block is ...
Registering blocks is done from your main mod class, or a ModBlocks class method invoked from the main mod class during preInit. Block myBlock = new CustomBlock(); string registryname = "my_block"; block.setRegistryName(registryname); block.setUnlocalizedName(block.getRegistryName().to...

Page 1 of 1