Your model name is not a valid Java name! Blender export

Started by masterkatrix on Tue, 05/05/2020 - 22:40

Topic category: Help with MCreator software

Last seen on 18:46, 7. Jun 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Your model name is not a valid Java name! Blender export
Tue, 05/05/2020 - 22:40

Hello im trying to get a blender java exporter to work with mcreator and i get this error.
Cant find any whitespaces etc. in the names.
Im using this: https://github.com/dacre-denny/py-blender-export-to-java
 

Last seen on 18:46, 7. Jun 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
This is what the text looks…
Tue, 05/05/2020 - 22:47

This is what the text looks like:

package defaultpackage;

public class mobtest {

    public static class sphere
    {
        private static float[] vertexPositions = 
        {
            0.00f, -0.98f, 0.20f,
            0.00f, -0.92f, 0.38f,
            0.07f, -0.92f, 0.38f,
            0.00f, -0.98f, 0.20f,
            0.07f, -0.92f, 0.38f,
            0.04f, -0.98f, 0.19f,
          
  Alot of numbers...

 

      private static float[] vertexNormals = 
        {

            0.63f, 0.06f, 0.77f,
            0.10f, 0.99f, 0.10f,
            0.63f, 0.06f, 0.77f,
            0.10f, 0.99f, 0.10f,
            0.10f, 0.99f, 0.10f,
            0.77f, 0.08f, 0.63f,
            0.77f, 0.08f, 0.63f,
            0.01f, 0.10f, 1.00f,
            0.77f, 0.08f, 0.63f,
            0.01f, 0.10f, 1.00f,
            0.88f, 0.09f, 0.47f,
            0.77f, 0.08f, -0.63f,
            0.63f, 0.06f, 0.77f,
            0.10f, 0.99f, 0.10f,
            0.77f, 0.08f, -0.63f,
            0.10f, 0.99f, 0.10f,
            0.10f, 0.99f, 0.10f,
            0.63f, 0.06f, -0.77f,
            0.77f, 0.08f, 0.63f,
            0.88f, 0.09f, 0.47f,
            0.63f, 0.06f, -0.77f,
            0.88f, 0.09f, 0.47f,
            0.88f, 0.09f, 0.47f
        };
        
        private static float[] vertexUVs = 
        {

        };
        
        public static float[] GetVertexPositions() {
            return vertexPositions;
        }
        
        public static float[] GetVertexNormals() {
            return vertexNormals;
        }
        
        public static float[] GetVertexUVs() {
            return vertexUVs;
        }
        
        public static int GetCount() {
            return 2880;
        }
    }
}

The code is not even…
Wed, 05/06/2020 - 07:19

The code is not even Minecraft Java model code so this will not work. Blender was not made for this.

Last seen on 18:46, 7. Jun 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Ok thanks will try using…
Wed, 05/06/2020 - 08:27

Ok thanks will try using blockbench then.

you can use blender for obj,…
Fri, 05/22/2020 - 16:08

you can use blender for obj, but for block nad item, else you have to code a custom entity renderer as forge does not support