Exporting Correctly  [Solved]

Get help and support for using Cubik Studio.
Post Reply

Exporting Correctly

Post by HappyGrenades » 20 Dec 2017, 03:05

Okay... So for the life of me I can't get this to work. I want 3D models, with custom textures, on specific item durabilities. Should be fairly straight forward.

I'm using iron_sword, and right now just the first dura value, so 0.00398406374, and then the default iron sword on full dura, so 0.

What I've done now, which isn't working, is

in minecraft/models/item I have iron_sword.json and iron_sword1.json

iron_sword.json looks like this

Code: Select all

{
    "parent": "item/handheld",
    "textures": {
        "layer0": "items/iron_sword"
    },
	"overrides": [
		{ "predicate": {"damaged": 1, "damage": 0}, "model": "item/iron_sword"},
		{ "predicate": {"damaged": 0, "damage": 0}, "model": "item/iron_sword"},
		{ "predicate": {"damaged": 0, "damage": 0.00398406374}, "model": "item/iron_sword1"},
	
}
And iron_sword1.json looks like this

Code: Select all

{
	"__comment": "Designed by Matt Hartnett with Cubik Studio - https://cubik.studio",
	"textures": {
		"particle": "mesh_palette",
		"texture": "mesh_palette",
		"mesh_palette": "item/1hansolo"
	
	},
	"elements": [
(it continues but there are a ton, the rest is just the elements section).

Then the texture is saved in minecraft/textures/models/items as 1hansolo.png

in game both the default iron sword texture and the durability value one show up as the cube black/purple. I've tried a TON of stuff, moving the files around to different locations etc but none of it is working. What am I doing wrong?
x
User avatar
HappyGrenades
Early Adopter
Posts: 16
Joined: 24 Feb 2015, 02:48

Re: Exporting Correctly  [Solved]

Post by HanFox » 20 Dec 2017, 08:43

In your iron_sword1.json the path for mesh_palette is wrong. It should be "items/1hansolo" not "item/1hansolo"
x
Create your own thread for purchase/activation/key issues.

Please don't Private Message admins without prior permission. Your message may be missed.

Profile pic by TsaoShin: https://www.deviantart.com/tsaoshin
User avatar
HanFox
Web Admin
Posts: 1137
Joined: 16 Apr 2012, 00:46

Post Reply

Return to “Help Centre”