Jump to content

Recommended Posts

Posted

working on a simple item. I just want to use the games doll shape and use a custom texture. So I created a copy of the base game shape. Modified it slightly. Keeps crashing. 

Item:

Spoiler
{
	code: "evocation:idol",
	class: "Item",
	maxstacksize: 64,
	attributes: {
		displaycaseable: true, 
		shelvable: true
	},
	variantgroups: [ 
        { code: "type", states: ["doll" ] },
        { code: "spirit", states: [ "none", "agriculture", "artisan", "buildmaterials", "clothing", "furniture", "luxuries", "survivalgoods" ] }
    ],
    shape: { base: "evocation:idols/idol" },
    texturesByType: {
        "idol-doll-*": {
            "hemp": { base: "craftsmanship:item/resource/hemp/hemp-plain" },
		    "buttoneye": { base: "craftsmanship:item/resource/hemp/hemp-plain" },
		    "rusty": { base: "craftsmanship:item/resource/hemp/hemp-plain" }
        },
    },
	creativeinventory: { "general": ["*"], "items": ["*"] },
    combustibleProps: {
		burnTemperature: 900,
		burnDuration: 10
	},
	materialDensity: 700,
	guiTransform: {
		translation: { x: 3, y: 0, z: 0 },
		rotation: { x: -22.5, y: -44.6875, z: 90 },
		origin: { x: 0.43, y: 0.43, z: 0.5 },
		scale: 1.45
	},
	fpHandTransform: {
        translation: { "x": 0.05, "y": -0.6, "z": 0.3 }, 
        rotation: { "x": 180, "y": 90, "z": 0 },         
        origin: { "x": 0.5, "y": 0, "z": 0.5 },          
        scale: 1.5                                       
    },
	groundTransform: {
        translation: { "x": 0, "y": 0.05, "z": 0 },  
        rotation: { "x": 0, "y": 0, "z": 0 },       
        origin: { "x": 0.5, "y": 0, "z": 0.5 },    
        scale: 2.5                                 
    },
	tpHandTransform: {
        translation: { "x": -0.5, "y": -0.15, "z": -0.3 },
        rotation: { "x": 90, "y": 0, "z": 0 },      
        origin: { "x": 0.5, "y": 0, "z": 0.5 }, 
        scale: 1.2
    }
}

 

Shape Code:

Spoiler
{
	"editor": {
		"allAngles": false,
		"entityTextureMode": false
	},
	"textureWidth": 16,
	"textureHeight": 16,
	"textureSizes": {
	},
	"textures": {
	},
	"elements": [
		{
			"name": "origin",
			"from": [ 8.0, 0.0, 8.0 ],
			"to": [ 8.0, 0.0, 8.0 ],
			"rotationOrigin": [ 8.0, 0.0, 8.0 ],
			"faces": {
				"north": { "texture": "#null", "uv": [ 11.5, 15.0, 12.0, 15.5 ], "enabled": false },
				"east": { "texture": "#null", "uv": [ 4.5, 2.5, 5.0, 3.0 ], "enabled": false },
				"south": { "texture": "#null", "uv": [ 5.0, 1.5, 5.5, 2.0 ], "enabled": false },
				"west": { "texture": "#null", "uv": [ 2.5, 7.0, 3.0, 7.5 ], "enabled": false },
				"up": { "texture": "#null", "uv": [ 10.0, 11.0, 10.5, 11.5 ], "enabled": false },
				"down": { "texture": "#null", "uv": [ 10.5, 14.5, 11.0, 15.0 ], "enabled": false }
			},
			"children": [
				{
					"name": "body",
					"from": [ -1.5, 0.1, -1.5 ],
					"to": [ 1.5, 5.1, 1.5 ],
					"rotationOrigin": [ 0.0, 0.1, 0.0 ],
					"rotationX": -10.0,
					"faces": {
						"north": { "texture": "#hemp", "uv": [ 8.5, 3.5, 11.5, 8.5 ] },
						"east": { "texture": "#hemp", "uv": [ 0.0, 9.0, 3.0, 14.0 ] },
						"south": { "texture": "#hemp", "uv": [ 5.0, 9.0, 8.0, 14.0 ] },
						"west": { "texture": "#hemp", "uv": [ 8.0, 2.0, 11.0, 7.0 ] },
						"up": { "texture": "#hemp", "uv": [ 5.5, 8.5, 8.5, 11.5 ] },
						"down": { "texture": "#hemp", "uv": [ 6.5, 3.5, 9.5, 6.5 ] }
					},
					"children": [
						{
							"name": "neck",
							"from": [ 1.0, 4.5, 1.0 ],
							"to": [ 2.0, 7.0, 2.0 ],
							"rotationOrigin": [ 1.5, 5.0, 1.5 ],
							"rotationX": 45.0,
							"faces": {
								"north": { "texture": "#hemp", "uv": [ 12.5, 4.5, 13.5, 7.0 ] },
								"east": { "texture": "#hemp", "uv": [ 5.0, 9.0, 6.0, 11.5 ] },
								"south": { "texture": "#hemp", "uv": [ 12.5, 11.0, 13.5, 13.5 ] },
								"west": { "texture": "#hemp", "uv": [ 2.5, 2.0, 3.5, 4.5 ] },
								"up": { "texture": "#hemp", "uv": [ 4.0, 1.5, 5.0, 2.5 ], "enabled": false },
								"down": { "texture": "#hemp", "uv": [ 12.5, 10.5, 13.5, 11.5 ], "enabled": false }
							},
							"children": [
								{
									"name": "head",
									"from": [ -0.5, 2.0, -0.5 ],
									"to": [ 1.5, 4.0, 1.5 ],
									"rotationOrigin": [ 0.5, 2.0, 0.5 ],
									"rotationX": 22.5,
									"faces": {
										"north": { "texture": "#hemp", "uv": [ 7.5, 10.5, 9.5, 12.5 ] },
										"east": { "texture": "#hemp", "uv": [ 1.0, 2.5, 3.0, 4.5 ] },
										"south": { "texture": "#hemp", "uv": [ 8.5, 0.5, 10.5, 2.5 ] },
										"west": { "texture": "#hemp", "uv": [ 9.5, 2.0, 11.5, 4.0 ] },
										"up": { "texture": "#hemp", "uv": [ 6.0, 1.0, 8.0, 3.0 ] },
										"down": { "texture": "#hemp", "uv": [ 12.5, 8.0, 14.5, 10.0 ] }
									},
									"children": [
										{
											"name": "eyeR",
											"from": [ 0.25, 1.0, 2.0 ],
											"to": [ 0.75, 1.5, 2.2 ],
											"rotationOrigin": [ 0.5, 1.25, 2.0 ],
											"faces": {
												"north": { "texture": "#buttoneye", "uv": [ 14.0, 13.0, 14.5, 13.5 ], "enabled": false },
												"east": { "texture": "#buttoneye", "uv": [ 12.0, 10.5, 12.5, 11.0 ] },
												"south": { "texture": "#buttoneye", "uv": [ 10.5, 14.0, 11.0, 14.5 ] },
												"west": { "texture": "#buttoneye", "uv": [ 4.0, 10.0, 4.5, 10.5 ] },
												"up": { "texture": "#buttoneye", "uv": [ 15.0, 2.0, 15.5, 2.5 ] },
												"down": { "texture": "#buttoneye", "uv": [ 14.5, 6.5, 15.0, 7.0 ] }
											}
										},
										{
											"name": "eyeL",
											"from": [ 1.25, 1.0, 2.0 ],
											"to": [ 1.75, 1.5, 2.2 ],
											"rotationOrigin": [ 1.5, 1.25, 2.0 ],
											"faces": {
												"north": { "texture": "#buttoneye", "uv": [ 6.5, 9.5, 7.0, 10.0 ], "enabled": false },
												"east": { "texture": "#buttoneye", "uv": [ 4.5, 1.5, 5.0, 2.0 ] },
												"south": { "texture": "#buttoneye", "uv": [ 1.5, 0.0, 2.0, 0.5 ] },
												"west": { "texture": "#buttoneye", "uv": [ 9.5, 13.5, 10.0, 14.0 ] },
												"up": { "texture": "#buttoneye", "uv": [ 1.5, 10.5, 2.0, 11.0 ] },
												"down": { "texture": "#buttoneye", "uv": [ 6.5, 13.5, 7.0, 14.0 ] }
											}
										}
									]
								}
							]
						},
						{
							"name": "armR",
							"from": [ -1.0, 1.0, 1.0 ],
							"to": [ 0.0, 5.0, 2.0 ],
							"rotationOrigin": [ 0.0, 4.5, 1.5 ],
							"rotationZ": -14.0,
							"faces": {
								"north": { "texture": "#hemp", "uv": [ 5.0, 10.0, 6.0, 14.0 ] },
								"east": { "texture": "#hemp", "uv": [ 2.0, 5.0, 3.0, 9.0 ] },
								"south": { "texture": "#hemp", "uv": [ 6.0, 9.0, 7.0, 13.0 ] },
								"west": { "texture": "#hemp", "uv": [ 9.5, 1.5, 10.5, 5.5 ] },
								"up": { "texture": "#hemp", "uv": [ 13.0, 14.5, 14.0, 15.5 ] },
								"down": { "texture": "#hemp", "uv": [ 10.0, 6.5, 11.0, 7.5 ] }
							},
							"children": [
								{
									"name": "nail2",
									"from": [ -0.2, 3.2, 0.2 ],
									"to": [ 1.2, 3.8, 0.8 ],
									"rotationOrigin": [ 0.0, 3.5, 0.5 ],
									"rotationX": -45.0,
									"faces": {
										"north": { "texture": "#rusty", "uv": [ 3.5, 9.5, 4.5, 10.0 ] },
										"east": { "texture": "#rusty", "uv": [ 11.0, 0.5, 11.5, 1.0 ], "windMode": [-1,-1,-1,-1] },
										"south": { "texture": "#rusty", "uv": [ 11.5, 10.0, 12.5, 10.5 ] },
										"west": { "texture": "#rusty", "uv": [ 10.0, 4.0, 10.5, 4.5 ] },
										"up": { "texture": "#rusty", "uv": [ 14.0, 8.0, 15.0, 8.5 ] },
										"down": { "texture": "#rusty", "uv": [ 3.0, 6.0, 4.0, 6.5 ] }
									}
								}
							]
						},
						{
							"name": "armL",
							"from": [ 3.0, 1.0, 1.0 ],
							"to": [ 4.0, 5.0, 2.0 ],
							"rotationOrigin": [ 3.0, 4.5, 1.5 ],
							"rotationX": -22.5,
							"rotationZ": 5.0,
							"faces": {
								"north": { "texture": "#hemp", "uv": [ 0.0, 5.5, 1.0, 9.5 ] },
								"east": { "texture": "#hemp", "uv": [ 5.5, 3.0, 6.5, 7.0 ] },
								"south": { "texture": "#hemp", "uv": [ 4.5, 3.5, 5.5, 7.5 ] },
								"west": { "texture": "#hemp", "uv": [ 7.0, 2.0, 8.0, 6.0 ] },
								"up": { "texture": "#hemp", "uv": [ 7.5, 3.5, 8.5, 4.5 ] },
								"down": { "texture": "#hemp", "uv": [ 0.0, 5.5, 1.0, 6.5 ] }
							},
							"children": [
								{
									"name": "nail1",
									"from": [ -0.2, 3.2, 0.2 ],
									"to": [ 1.2, 3.8, 0.8 ],
									"rotationOrigin": [ 1.0, 3.5, 0.5 ],
									"rotationX": -45.0,
									"faces": {
										"north": { "texture": "#rusty", "uv": [ 7.0, 5.5, 8.0, 6.0 ] },
										"east": { "texture": "#rusty", "uv": [ 12.5, 12.5, 13.0, 13.0 ] },
										"south": { "texture": "#rusty", "uv": [ 3.0, 3.0, 4.0, 3.5 ] },
										"west": { "texture": "#rusty", "uv": [ 6.5, 0.5, 7.0, 1.0 ], "windMode": [-1,-1,-1,-1] },
										"up": { "texture": "#rusty", "uv": [ 10.5, 14.0, 11.5, 14.5 ] },
										"down": { "texture": "#rusty", "uv": [ 5.0, 1.5, 6.0, 2.0 ] }
									}
								}
							]
						},
						{
							"name": "legR",
							"from": [ -0.5, 0.0, 1.0 ],
							"to": [ 0.5, 1.0, 5.0 ],
							"rotationOrigin": [ 0.0, 0.5, 1.0 ],
							"rotationX": 10.0,
							"rotationY": -5.0,
							"faces": {
								"north": { "texture": "#hemp", "uv": [ 3.5, 6.0, 4.5, 7.0 ] },
								"east": { "texture": "#hemp", "uv": [ 7.5, 14.5, 11.5, 15.5 ] },
								"south": { "texture": "#hemp", "uv": [ 1.0, 12.5, 2.0, 13.5 ] },
								"west": { "texture": "#hemp", "uv": [ 0.0, 10.5, 4.0, 11.5 ] },
								"up": { "texture": "#hemp", "uv": [ 13.0, 6.5, 14.0, 10.5 ] },
								"down": { "texture": "#hemp", "uv": [ 7.0, 2.5, 8.0, 6.5 ] }
							},
							"children": [
								{
									"name": "footR",
									"from": [ -0.5, 0.0, 4.0 ],
									"to": [ 1.5, 2.0, 4.5 ],
									"rotationOrigin": [ 0.5, 0.5, 4.0 ],
									"rotationX": 22.5,
									"faces": {
										"north": { "texture": "#hemp", "uv": [ 6.5, 2.0, 8.5, 4.0 ] },
										"east": { "texture": "#hemp", "uv": [ 8.5, 11.5, 9.0, 13.5 ] },
										"south": { "texture": "#hemp", "uv": [ 3.5, 8.0, 5.5, 10.0 ] },
										"west": { "texture": "#hemp", "uv": [ 2.5, 9.0, 3.0, 11.0 ] },
										"up": { "texture": "#hemp", "uv": [ 4.5, 12.5, 6.5, 13.0 ] },
										"down": { "texture": "#hemp", "uv": [ 9.0, 1.0, 11.0, 1.5 ] }
									}
								},
								{
									"name": "nail4",
									"from": [ -0.2, 0.2, 0.2 ],
									"to": [ 1.2, 0.8, 0.8 ],
									"rotationOrigin": [ 0.0, 0.5, 0.5 ],
									"rotationX": -45.0,
									"faces": {
										"north": { "texture": "#rusty", "uv": [ 4.5, 9.5, 5.5, 10.0 ] },
										"east": { "texture": "#rusty", "uv": [ 8.0, 13.5, 8.5, 14.0 ] },
										"south": { "texture": "#rusty", "uv": [ 12.5, 0.0, 13.5, 0.5 ] },
										"west": { "texture": "#rusty", "uv": [ 2.0, 6.0, 2.5, 6.5 ] },
										"up": { "texture": "#rusty", "uv": [ 6.0, 12.0, 7.0, 12.5 ] },
										"down": { "texture": "#rusty", "uv": [ 11.0, 15.0, 12.0, 15.5 ] }
									}
								}
							]
						},
						{
							"name": "legL",
							"from": [ 2.5, 0.0, 1.0 ],
							"to": [ 3.5, 1.0, 5.0 ],
							"rotationOrigin": [ 3.0, 0.5, 1.0 ],
							"rotationX": 10.0,
							"rotationY": 15.0,
							"faces": {
								"north": { "texture": "#hemp", "uv": [ 7.0, 5.0, 8.0, 6.0 ] },
								"east": { "texture": "#hemp", "uv": [ 10.0, 0.5, 14.0, 1.5 ] },
								"south": { "texture": "#hemp", "uv": [ 10.5, 6.0, 11.5, 7.0 ] },
								"west": { "texture": "#hemp", "uv": [ 6.0, 0.5, 10.0, 1.5 ] },
								"up": { "texture": "#hemp", "uv": [ 10.0, 7.0, 11.0, 11.0 ] },
								"down": { "texture": "#hemp", "uv": [ 13.5, 8.5, 14.5, 12.5 ] }
							},
							"children": [
								{
									"name": "footL",
									"from": [ -0.5, 0.0, 4.0 ],
									"to": [ 1.5, 2.0, 4.5 ],
									"rotationOrigin": [ 0.5, 0.5, 4.0 ],
									"rotationX": 17.0,
									"faces": {
										"north": { "texture": "#hemp", "uv": [ 2.0, 5.5, 4.0, 7.5 ] },
										"east": { "texture": "#hemp", "uv": [ 12.5, 1.5, 13.0, 3.5 ] },
										"south": { "texture": "#hemp", "uv": [ 9.5, 4.0, 11.5, 6.0 ] },
										"west": { "texture": "#hemp", "uv": [ 5.0, 0.5, 5.5, 2.5 ] },
										"up": { "texture": "#hemp", "uv": [ 3.5, 4.0, 5.5, 4.5 ] },
										"down": { "texture": "#hemp", "uv": [ 2.0, 7.5, 4.0, 8.0 ] }
									}
								},
								{
									"name": "nail3",
									"from": [ -0.2, 0.2, 0.2 ],
									"to": [ 1.2, 0.8, 0.8 ],
									"rotationOrigin": [ 0.0, 0.5, 0.5 ],
									"rotationX": -45.0,
									"faces": {
										"north": { "texture": "#rusty", "uv": [ 8.5, 1.5, 9.5, 2.0 ] },
										"east": { "texture": "#rusty", "uv": [ 13.5, 7.5, 14.0, 8.0 ] },
										"south": { "texture": "#rusty", "uv": [ 1.0, 1.0, 2.0, 1.5 ] },
										"west": { "texture": "#rusty", "uv": [ 5.5, 5.0, 6.0, 5.5 ] },
										"up": { "texture": "#rusty", "uv": [ 9.0, 2.5, 10.0, 3.0 ] },
										"down": { "texture": "#rusty", "uv": [ 11.5, 7.0, 12.5, 7.5 ] }
									}
								}
							]
						}
					]
				}
			]
		}
	]}

 

No log error to share just crashes client thread crashed. Gives me a generic whoops error 

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.