Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Json error "Invalid rotation 60.0 found, only -45/-22.5/0/22.5/45 allowed"

Featured Replies

Posted

okay i am 100% already sure this is a ONLY json error so i am not sure if the modder support is the right thing to ask this but:

(tested it with another model which works just fine)


when i try to load my json with my custom renderer i get the error  "Invalid rotation 60.0 found, only -45/-22.5/0/22.5/45 allowed"

is it because i am using 2 axis rotation instead of 1 axis rotation?

here is the json:

Spoiler

{
	"credit": "Made with Blockbench By MegaBee",
	"textures": {
	"1": "bnha:models/TailHairColour",
	"4": "bnha:models/TailSkinColour"
	},
	"elements": [
		{
			"from": [0.21649, 22.04134, 13.78515],
			"to": [3.71649, 25.54134, 17.28515],
			"rotation": {"angle": 60, "axis": "x", "origin": [1.96649, 23.79134, 15.53515]},
			"rotated": [60, 35, -50],
			"faces": {
				"north": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"},
				"east": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"},
				"south": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"},
				"west": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"},
				"up": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"},
				"down": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"}
			}
		},
		{
			"from": [0.21649, 22.04134, 13.78515],
			"to": [3.71649, 25.54134, 17.28515],
			"rotation": {"angle": 40, "axis": "x", "origin": [1.96649, 23.79134, 15.53515]},
			"rotated": [40, 35, -20],
			"faces": {
				"north": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"},
				"east": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"},
				"south": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"},
				"west": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"},
				"up": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"},
				"down": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"}
			}
		},
		{
			"from": [0.10355, 21.8, 13.82107],
			"to": [3.60355, 25.3, 17.32107],
			"rotation": {"angle": 10, "axis": "x", "origin": [1.85355, 23.55, 15.57107]},
			"rotated": [10, 45, 5],
			"faces": {
				"north": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"},
				"east": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"},
				"south": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"},
				"west": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"},
				"up": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"},
				"down": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"}
			}
		},
		{
			"from": [0.21649, 21.04134, 15.78515],
			"to": [3.71649, 24.54134, 19.28515],
			"rotation": {"angle": 75, "axis": "x", "origin": [1.96649, 22.79134, 17.53515]},
			"rotated": [75, 65, -75],
			"faces": {
				"north": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"},
				"east": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"},
				"south": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"},
				"west": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"},
				"up": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"},
				"down": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"}
			}
		},
		{
			"from": [0.21649, 21.04134, 15.78515],
			"to": [3.71649, 24.54134, 19.28515],
			"rotation": {"angle": 90, "axis": "x", "origin": [1.96649, 22.79134, 17.53515]},
			"rotated": [90, 35, -40],
			"faces": {
				"north": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"},
				"east": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"},
				"south": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"},
				"west": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"},
				"up": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"},
				"down": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"}
			}
		},
		{
			"from": [0.21649, 21.04134, 15.78515],
			"to": [3.71649, 24.54134, 19.28515],
			"rotation": {"angle": 105, "axis": "x", "origin": [1.96649, 22.79134, 17.53515]},
			"rotated": [105, 35, -10],
			"faces": {
				"north": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"},
				"east": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"},
				"south": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"},
				"west": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"},
				"up": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"},
				"down": {"uv": [0, 0, 15.5, 15.5], "rotation": 180, "texture": "#4"}
			}
		},
		{
			"from": [0, 23, 9],
			"to": [3, 26, 15],
			"rotation": {"angle": 7.5, "axis": "x", "origin": [1.5, 24.1, 11]},
			"rotated": [7.5, 5, 0],
			"faces": {
				"north": {"uv": [4, 1, 7, 4], "rotation": 180, "texture": "#1"},
				"east": {"uv": [10, 4, 16, 7], "rotation": 180, "texture": "#1"},
				"south": {"uv": [4, 0.75, 7, 3.75], "rotation": 180, "texture": "#1"},
				"west": {"uv": [4, 1.25, 10, 4.25], "rotation": 180, "texture": "#1"},
				"up": {"uv": [10, 4, 16, 7], "rotation": 90, "texture": "#1"},
				"down": {"uv": [10, 4, 16, 7], "rotation": 270, "texture": "#1"}
			}
		},
		{
			"from": [0, 23.3, 5],
			"to": [3, 26.3, 10],
			"faces": {
				"north": {"uv": [4, 1, 7, 4], "rotation": 180, "texture": "#1"},
				"east": {"uv": [10, 4, 15, 7], "rotation": 180, "texture": "#1"},
				"south": {"uv": [4, 0.75, 7, 3.75], "rotation": 180, "texture": "#1"},
				"west": {"uv": [4, 1.25, 9, 4.25], "rotation": 180, "texture": "#1"},
				"up": {"uv": [10, 4, 15, 7], "rotation": 90, "texture": "#1"},
				"down": {"uv": [10, 4, 15, 7], "rotation": 270, "texture": "#1"}
			}
		},
		{
			"from": [6, 11, 3],
			"to": [10, 14, 7],
			"faces": {
				"north": {"uv": [12, 4, 16, 7], "texture": "#1"},
				"east": {"uv": [0, 0, 7, 3], "texture": "#1"},
				"south": {"uv": [12, 4, 16, 7], "texture": "#1"},
				"west": {"uv": [4, 1, 8, 4], "texture": "#1"},
				"up": {"uv": [4, 1.25, 8, 5.25], "texture": "#1"},
				"down": {"uv": [12, 4, 16, 8], "texture": "#1"}
			}
		},
		{
			"from": [6.69, 11.31, 1.2],
			"to": [9.69, 17.71, 4.1],
			"rotation": {"angle": -22.5, "axis": "x", "origin": [8.19, 15.69134, 2.68]},
			"faces": {
				"north": {"uv": [12, 4, 15, 10.4], "rotation": 180, "texture": "#1"},
				"east": {"uv": [4, 0.75, 10.4, 3.65], "rotation": 270, "texture": "#1"},
				"south": {"uv": [4, 1.25, 7, 7.65], "texture": "#1"},
				"west": {"uv": [4, 1, 10.4, 3.9], "rotation": 90, "texture": "#1"},
				"up": {"uv": [12, 4, 15, 6.9], "rotation": 180, "texture": "#1"},
				"down": {"uv": [12, 4, 15, 6.9], "texture": "#1"}
			}
		},
		{
			"from": [7, 17, 0.6],
			"to": [9, 25, 3.6],
			"rotation": {"angle": 22.5, "axis": "z", "origin": [8, 19.5, 2.1]},
			"faces": {
				"north": {"uv": [12, 4, 15, 12], "rotation": 180, "texture": "#1"},
				"east": {"uv": [4.25, 1, 7.25, 9], "texture": "#1"},
				"south": {"uv": [12, 4, 15, 12], "texture": "#1"},
				"west": {"uv": [4, 1, 12, 4], "rotation": 90, "texture": "#1"},
				"up": {"uv": [4, 1.25, 7, 4.25], "rotation": 180, "texture": "#1"},
				"down": {"uv": [12, 4, 15, 7], "texture": "#1"}
			}
		},
		{
			"from": [7.5, 16.8, 0.6],
			"to": [10.5, 17.8, 3.6],
			"rotation": {"angle": -22.5, "axis": "z", "origin": [9.5, 19.3, 2.1]},
			"faces": {
				"north": {"uv": [12, 4, 15, 5], "rotation": 180, "texture": "#1"},
				"east": {"uv": [4.25, 1, 7.25, 2], "texture": "#1"},
				"south": {"uv": [12, 4, 15, 5], "texture": "#1"},
				"west": {"uv": [4, 1, 5, 4], "rotation": 90, "texture": "#1"},
				"up": {"uv": [4, 1.25, 7, 4.25], "rotation": 180, "texture": "#1"},
				"down": {"uv": [12, 4, 15, 7], "texture": "#1"}
			}
		},
		{
			"from": [2, 23.2, 1],
			"to": [5, 26.2, 6],
			"rotation": {"angle": -5, "axis": "x", "origin": [2.5, 24.7, 3]},
			"rotated": [-5, -37.5, -10],
			"faces": {
				"north": {"uv": [4, 1, 7, 4], "rotation": 180, "texture": "#1"},
				"east": {"uv": [8, 4, 12, 7], "rotation": 180, "texture": "#1"},
				"south": {"uv": [4, 0.75, 7, 3.75], "rotation": 180, "texture": "#1"},
				"west": {"uv": [4, 1.25, 8, 4.25], "rotation": 180, "texture": "#1"},
				"up": {"uv": [8, 4, 12, 7], "rotation": 90, "texture": "#1"},
				"down": {"uv": [8, 4, 12, 7], "rotation": 270, "texture": "#1"}
			}
		},
		{
			"from": [2.8, 22.2, 1.5],
			"to": [6.2, 25.2, 3.5],
			"rotation": {"angle": 10, "axis": "y", "origin": [5.8, 23.7, 2]},
			"rotated": [0, 10, -22.5],
			"faces": {
				"north": {"uv": [4, 1.25, 7.4, 4.25], "rotation": 180, "texture": "#1"},
				"east": {"uv": [4, 1, 7, 4], "rotation": 180, "texture": "#1"},
				"south": {"uv": [8, 4, 11.4, 7], "rotation": 180, "texture": "#1"},
				"west": {"uv": [4, 0.75, 7, 3.75], "rotation": 180, "texture": "#1"},
				"up": {"uv": [8, 4, 11.4, 7], "rotation": 180, "texture": "#1"},
				"down": {"uv": [8, 4, 11.4, 7], "rotation": 180, "texture": "#1"}
			}
		},
		{
			"from": [6, 17, 0.6],
			"to": [9, 24, 3.6],
			"rotation": {"angle": 22.5, "axis": "z", "origin": [8, 19.5, 2.1]},
			"faces": {
				"north": {"uv": [12, 4, 15, 12], "rotation": 180, "texture": "#1"},
				"east": {"uv": [4.25, 1, 7.25, 9], "texture": "#1"},
				"south": {"uv": [12, 4, 15, 12], "texture": "#1"},
				"west": {"uv": [4, 1, 12, 4], "rotation": 90, "texture": "#1"},
				"up": {"uv": [4, 1.25, 7, 4.25], "rotation": 180, "texture": "#1"},
				"down": {"uv": [12, 4, 15, 7], "texture": "#1"}
			}
		},
		{
			"from": [3.3, 22.2, 0.5],
			"to": [6.3, 25.2, 3.5],
			"rotation": {"angle": 10, "axis": "y", "origin": [5.8, 23.7, 2]},
			"rotated": [0, 10, -22.5],
			"faces": {
				"north": {"uv": [4, 1.25, 7.4, 4.25], "rotation": 180, "texture": "#1"},
				"east": {"uv": [4, 1, 7, 4], "rotation": 180, "texture": "#1"},
				"south": {"uv": [8, 4, 11.4, 7], "rotation": 180, "texture": "#1"},
				"west": {"uv": [4, 0.75, 7, 3.75], "rotation": 180, "texture": "#1"},
				"up": {"uv": [8, 4, 11.4, 7], "rotation": 180, "texture": "#1"},
				"down": {"uv": [8, 4, 11.4, 7], "rotation": 180, "texture": "#1"}
			}
		},
		{
			"from": [3, 23.2, 0],
			"to": [5, 23.7, 6],
			"rotation": {"angle": -5, "axis": "x", "origin": [2.5, 24.7, 3]},
			"rotated": [-5, -37.5, -10],
			"faces": {
				"north": {"uv": [4, 1, 7, 4], "rotation": 180, "texture": "#1"},
				"east": {"uv": [8, 4, 12, 7], "rotation": 180, "texture": "#1"},
				"south": {"uv": [4, 0.75, 7, 3.75], "rotation": 180, "texture": "#1"},
				"west": {"uv": [4, 1.25, 8, 4.25], "rotation": 180, "texture": "#1"},
				"up": {"uv": [8, 4, 12, 7], "rotation": 90, "texture": "#1"},
				"down": {"uv": [8, 4, 12, 7], "rotation": 270, "texture": "#1"}
			}
		},
		{
			"from": [3.3, 22.2, 0.5],
			"to": [6.3, 25.2, 3.5],
			"rotation": {"angle": 10, "axis": "y", "origin": [5.8, 23.7, 2]},
			"rotated": [0, 10, -22.5],
			"faces": {
				"north": {"uv": [4, 1.25, 7.4, 4.25], "rotation": 180, "texture": "#1"},
				"east": {"uv": [4, 1, 7, 4], "rotation": 180, "texture": "#1"},
				"south": {"uv": [8, 4, 11.4, 7], "rotation": 180, "texture": "#1"},
				"west": {"uv": [4, 0.75, 7, 3.75], "rotation": 180, "texture": "#1"},
				"up": {"uv": [8, 4, 11.4, 7], "rotation": 180, "texture": "#1"},
				"down": {"uv": [8, 4, 11.4, 7], "rotation": 180, "texture": "#1"}
			}
		},
		{
			"from": [3.3, 21.9, 0.5],
			"to": [6.3, 22.3, 3.5],
			"rotation": {"angle": 10, "axis": "y", "origin": [5.8, 23.7, 2]},
			"rotated": [0, 10, -22.5],
			"faces": {
				"north": {"uv": [4, 1.25, 7.4, 4.25], "rotation": 180, "texture": "#1"},
				"east": {"uv": [4, 1, 7, 4], "rotation": 180, "texture": "#1"},
				"south": {"uv": [8, 4, 11.4, 7], "rotation": 180, "texture": "#1"},
				"west": {"uv": [4, 0.75, 7, 3.75], "rotation": 180, "texture": "#1"},
				"up": {"uv": [8, 4, 11.4, 7], "rotation": 180, "texture": "#1"},
				"down": {"uv": [8, 4, 11.4, 7], "rotation": 180, "texture": "#1"}
			}
		}
	],
	"display": {
		"thirdperson_righthand": {
			"rotation": [67.5, 180, 0],
			"translation": [-6, -7.205, -2.5]
		},
		"thirdperson_lefthand": {
			"rotation": [67.5, -180, 0],
			"translation": [-6, -7.2051, -2.5]
		},
		"firstperson_righthand": {
			"rotation": [-4, 180, 0],
			"translation": [-8, -5.5, 11],
			"scale": [0.68, 0.68, 0.68]
		},
		"firstperson_lefthand": {
			"rotation": [-4, 180, -6],
			"translation": [-9, -5, 11],
			"scale": [0.68, 0.68, 0.68]
		},
		"head": {
			"rotation": [0, 180, 0],
			"translation": [0, -31, 0],
			"scale": [1.6, 1.6, 1.6]
		}
	},
	"groups": [
		{
			"name": "tailquirk",
			"children": [
				{
					"name": "Tail Hair",
					"children": [0, 1, 2, 3, 4, 5]
				},
				{
					"name": "tailquirk",
					"children": [6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18]
				}
			]
		}
	]
}

 


Edit:
its not because of 2 axis rotation

Edited by Oscarita25
its not because of 2 axis

  • Author

fixed it minecraft doesn't accept any rotation with other angles than 22.5 45 0 -22.5 -45 (didnt understand the error XD.. well now i know what it meant)

Welcome to the thread where the only rational advice is "read your god damned errors."

 

Have a nice day. :)

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.