Error with model and texture in Minecraft

Get help and support for using Cubik Studio.
Post Reply

Error with model and texture in Minecraft

Post by An1k1n » 05 Jan 2019, 01:11

I was editing a .png minecraft sword based on the tutorial by sphax, but in the world the model and texture are just broken. Images.
x
User avatar
An1k1n
Supporter
Posts: 5
Joined: 12 Sep 2017, 18:17

Re: Error with model and texture in Minecraft

Post by HanFox » 05 Jan 2019, 13:20

Towards the top of your json I suspect your "texture" and "diamond_sword" are wrong. The path should reflect the location in the resourcepack. It's more likely your texture is inside the item folder.

So:

Code: Select all

"textures": {
	"particle": "items/diamond_sword",
	"texture": items/diamond_sword",
	"diamond_sword":  items/diamond_sword"
},
Although items generally don't need "particle" and if you're referring to "diamond_sword" everywhere you don't need the "texture" either.
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: 1156
Joined: 16 Apr 2012, 00:46

Re: Error with model and texture in Minecraft

Post by An1k1n » 05 Jan 2019, 21:18

Ok I will try without it but these paths were created by Cubik Studio so...
x
User avatar
An1k1n
Supporter
Posts: 5
Joined: 12 Sep 2017, 18:17

Re: Error with model and texture in Minecraft

Post by An1k1n » 05 Jan 2019, 21:39

OK i have tried it but it didn't changed anything. I uploaded the model and the texture for everybody who wants to check through http://www.mediafire.com/file/f61ekug7n ... exture.zip
x
User avatar
An1k1n
Supporter
Posts: 5
Joined: 12 Sep 2017, 18:17

Re: Error with model and texture in Minecraft

Post by HanFox » 07 Jan 2019, 23:42

Your texture should be in assets/minecraft/textures/items and in the json on line 4 and 5 the path should be items/diamond_sword.

All textures are always relative to assets/minecraft/textures. They can't be alongside the json.

The easiest way to make models is to work within the correct structure from the start. Textures should always be in the textures folder, then Cubik will always set the paths correctly automatically.
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: 1156
Joined: 16 Apr 2012, 00:46

Re: Error with model and texture in Minecraft

Post by An1k1n » 08 Jan 2019, 22:45

My textures are in the texture folder for items i just had a copy laying around in the models folder aw.
x
User avatar
An1k1n
Supporter
Posts: 5
Joined: 12 Sep 2017, 18:17

Re: Error with model and texture in Minecraft

Post by An1k1n » 08 Jan 2019, 22:51

Code: Select all

{
	"__comment": "Designed by anikin",
	"textures": {
		"texture": "items/diamond_sword",
		"diamond_sword": "items/diamond_sword"
	},
My first 6 lines in the diamond_sword.json
x
User avatar
An1k1n
Supporter
Posts: 5
Joined: 12 Sep 2017, 18:17

Re: Error with model and texture in Minecraft

Post by HanFox » 09 Jan 2019, 18:42

Code: Select all

			"__comment": "Box920",
			"from": [ 31.8871, 8, -15.6047 ],
			"to": [ 32.00004, 9, -15.54823 ],
This element is out of bounds. The maximum a number can be is 32. So, 32.00004 is too large.

Red elements in the Cubik element list usually have some sort of error attached to them, and Minecraft's game log will tell you the actual error:

Code: Select all

[18:40:18] [Client thread/WARN]: Unable to load model: 'minecraft:diamond_sword#inventory' referenced from: minecraft:diamond_sword#inventory: com.google.gson.JsonParseException: 'to' specifier exceeds the allowed boundaries: cph@64695f76
"exceeds the allowed boundaries".
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: 1156
Joined: 16 Apr 2012, 00:46

Post Reply

Return to “Help Centre”