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

maximOP

Members
  • Posts

    1
  • Joined

  • Last visited

maximOP's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I need some help, my block currently looks like this: Log (line 83): https://hastebin.com/megutidoju.md Blockstate: { "variants": { "normal": { "model": "medievalstuff:rooftile" } } } Model: { "parent": "block/cube_all", "textures": { "all": "medievalstuff:blocks/rooftile" } } Block Class: public class BlockRoofTile extends Block { public BlockRoofTile() { super(Material.ROCK); setHarvestLevel("pickaxe", 1); setCreativeTab(medievalstuff.medievalStuffBlocks); } } How its registered public class CommonProxy { public void preInit(FMLPreInitializationEvent e) { } public void init(FMLInitializationEvent e) { } public void postInit(FMLPostInitializationEvent e) { } @SubscribeEvent public static void registerBlocks(RegistryEvent.Register<Block> event) { final Block[] blocks = { new BlockRoofTile().setRegistryName("rooftile").setTranslationKey(medievalstuff.MOD_ID + ".rooftile"), }; event.getRegistry().registerAll(blocks); } @SubscribeEvent public static void registerItems(RegistryEvent.Register<Item> event) { final Item[] itemBlocks = { new ItemBlock(ModBlocks.roofTile).setRegistryName(ModBlocks.roofTile.getRegistryName()), }; event.getRegistry().registerAll(itemBlocks); } }
×
×
  • Create New...

Important Information

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