Started by
masterkatrix
on
Topic category: Help with MCreator software
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
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;
}
}
}
Full file:
https://hastebin.com/ritesajuze.cs
The code is not even Minecraft Java model code so this will not work. Blender was not made for this.
Ok thanks will try using blockbench then.
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
*not