Model Imports are kinda broken...

Published by FireBlox on Tue, 01/29/2019 - 01:22
Status
Works as designed
Type
Product/platform
MCreator/Windows
Priority
Normal
Issue description

When I imported my workspace, I immedeately ran the test environment, and noticed all of my mobs had the same model. So I went and looked at the models, and saw that there was only one model. I tried to import the other models, but after the animation wizard, nothing happened. Im not entirely sure if this is a problem on my part, but it's definetly a big problem.

Issue comments

Could you please attach the workspace you imported and one of the example models you tried to import? Thanks!

You can upload it to Mediafire and paste the link here. Make sure to upload your mod workspace mcr file and at least two java mob models you tried to import. Thanks!

 

Hello my friend! (I'm sorry I'm curious) I downloaded the two models and I saw the code, did you do it on Techne? (I saw it in the code)
Good if yes, make sure everything is correct!
A question:
You've dragged the parts of the models into the little blue folder that's there in the parts part!
Sorry for my bad English!

I did in fact use Techne to create the models, and they worked fine in 1.8.1

I see the issue. All your models are called ModelNew. This worked fine in 1.8.1 where each mob had its own model storage. Now the model storage is global and if you import multiple models called ModelNew, they will just overwrite each other and this is what happens on the import too.

To fix this bug, rename your models, example:

...

package net.minecraft.src;

public class ModelNew extends ModelBase
{
  //fields
    ModelRenderer Head;
    ModelRenderer Body;
    ModelRenderer Shape1;
    ModelRenderer Shape2;
  
  public ModelNew()
  {

...

change this to different names for different models:

...

package net.minecraft.src;

public class ModelCaktoid extends ModelBase
{
  //fields
    ModelRenderer Head;
    ModelRenderer Body;
    ModelRenderer Shape1;
    ModelRenderer Shape2;
  
  public ModelCaktoid()
  {

...

and so on. Then import these different named models in MCreator and select the proper ones for each mob.



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.