Jump to content

[1.8] Error loading B3D model [SOLVED]


MCRaichu

Recommended Posts

Hi,

I get following error when loading a .b3d model. I can't figure out what is wrong. I checked other posts but coulnd't find anything related.

 

java.lang.RuntimeException: No base model or submodel provided for this MultiModel.Baked.
at net.minecraftforge.client.model.MultiModel$Baked.<init>(MultiModel.java:50)
at net.minecraftforge.client.model.MultiModel.bake(MultiModel.java:196)
at net.minecraftforge.client.model.ModelLoader$WeightedPartWrapper.bake(ModelLoader.java:393)
at net.minecraftforge.client.model.ModelLoader$WeightedRandomModel.bake(ModelLoader.java:458)
at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:122)
at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29)
at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:130)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:512)

 

Here my setup: tiberium.json

{
  "forge_marker": 1,
  "defaults": {
    "textures": {
      "all": "ool:textures/blocks/tiberium.png"
    },
    "model": "ool:tiberium.b3d"
  },
  "variants": {
    "normal": [{
      "transform": {
        "rotation": [{"y": 45}]
      }
    }],
    "inventory": [{
      "transform": {
        "firstperson": {
          "translation": [0, -0.2, 0.15]
        },
        "thirdperson": {
          "translation": [0, -0.05, 0.025],
          "scale": [0.45, 0.45, 0.45]
        },
        "gui": {
          "translation": [0, 0.04, 0],
          "scale": [0.7, 0.7, 0.7]
        }
      }
    }]
  }
}

 

My preInit:

itemTiberium = Item.getItemFromBlock(StartupCommon.tiberium);
B3DLoader.instance.addDomain(Reference.MODID);
ModelLoader.setCustomModelResourceLocation(itemTiberium, 0, new ModelResourceLocation(Reference.MODID + ":" + Tiberium.unl_name, "inventory"));

 

EDIT: solved, error had nothing to do with b3d. called wrong init-method.

It doesn't work, I don't know why.

It works, I don't know why.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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