Ehm... took a look at it and nope, Minecraft doesn't allow half cubes (unless I and a giant amount of other modders missed something)
However I noticed there is an other vvariant of this method that might be even better.
Code: Select all
addBox(String partName, float offX, float offY, float offZ, int width, int height, int depth)
I am not sure for what that can be used, but I think it shouldn't cause any trouble, and might be useful for some advanced features.
Here is a template:
https://www.dropbox.com/s/stpauumufsawf ... e.zip?dl=0
Just unzip it into an empty folder. Open your command line there and execute "gradlew setupDecomWorkspace" in case you have eclipse "gradlew eclipse" or intelliJ (don't know that command D:)
In case you don't use any of them and just have notepad you just need a command to launch minecraft but I have no Idea what the command is D:
Ok so the explanation:
The model itself should be pasted into "Model_Random_Entity.java" you shouldn't remove the imports and maybe also don't include them into cubik studio export as it might cause additional work for new minecraft versions.
The "Render_Random_Entity" class contains things like the texture path and some other things, that also shouldn't be in Cubik Studio as it's mainly for additional rendering information.
Basicly that's all, just don't change anything else and it should work ^^
The texture path is also set up.
Edit: Oh and for the thing with entities using half pixels, they are probably made with a higher scale and just scaled down for rendering.
Which entities do you mean with that? I would take a look at their model code to be sure.
Edit2: Oh and if you have 2 exactly same cubes with the same texture you can just assign the same UV for them. But they still need to be 2 seperate cubes with their corresponding positions and stuff.