Jump to content

[1.12.2] Exception loading model


maximOP

Recommended Posts

I need some help, my block currently looks like this:

butgaiJ.png

 

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

 

Edited by maximOP
Link to comment
Share on other sites

Update to a modern version of minecraft to receive support. 1.12.2 is old and you shouldn’t be making new mods for an outdated version.

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.