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);
}
}