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

Started by masterkatrix on

Topic category: Help with MCreator software

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Your model name is not a valid Java name! Blender export

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
 

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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;
        }
    }
}

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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