﻿{
	"definitions": [//Dyes: Black=0 Red =1 Green=2 Brown=3 Blue=4 Purple=5 UNU=6 Silver=7 Grey=8 Pink=9 Lime=10 Yellow=11 Light Blue=12 Magenta=13 Orange=14 White=15
		{
			"name": "§3UNU Two Post Vehicle Lift",
			"subName": "",
			//"extraMaterialLists": [[],[]]
			"extraMaterialLists": [[],[]]
		}
	],
	
	"general": {
		"description": "",
		"type": "generic_decor",
		"stackSize": 1,
		//"materialLists": [
			["immersiveengineering:sheetmetal:8:4", "immersiveengineering:material:2:6", "immersiveengineering:material:9:2"],
			["minecraft:iron_ingot:0:20"]
		]
	},
	
	"generic": {
		"canBePlacedOnGround": true,
		"width": 1,
		"height": 1
	},
	
	"subParts": [
		{
			"pos": [0, 0.125, 0],
			"isPermanent": true,
			"types": ["generic_connection_lift_frame"],
			"defaultPart": "unuparts:unuparts_connection_unu_lift_frame",
			"minValue": 0,
			"maxValue": 1,
			"applyAfter": "$Lift_Frame"
		}
	],
	
	"collisionGroups": [
		{
			"isInterior": true,
			"collisions": [
				{
					"pos": [2.40625, 1.46875, -0.125],
					"width": 0.125,
					"height": 0.125,
					"variableName": "requestConnection",
					"variableType": "set",
					"variableValue": 1
				}
			],
			"animations": [
				{
					"animationType": "visibility",
					"variable": "liftHeight",
					"clampMin": 0,
					"clampMax": 0
				}
			]
		},
		{
			"isInterior": true,
			"collisions": [
				{
					"pos": [2.40625, 1.28125, -0.125],
					"width": 0.125,
					"height": 0.125,
					"variableName": "liftHeight",
					"variableType": "set",
					"variableValue": 0
				},
				{
					"pos": [2.25, 1.46875, -0.28125],
					"width": 0.125,
					"height": 0.125,
					"variableName": "buttonUp",
					"variableType": "button",
					"variableValue": 1
				},
				{
					"pos": [2.25, 1.28125, -0.28125],
					"width": 0.125,
					"height": 0.125,
					"variableName": "buttonDown",
					"variableType": "button",
					"variableValue": 1
				}
			]
		},
		{
			"collisions": [
				{
					"pos" : [-2.1875, 0.1875, 0.25],
					"width" : 0.375,
					"height" : 0.375
				},
				{
					"pos" : [-2.1875, 0.1875, -0.25],
					"width" : 0.375,
					"height" : 0.375
				},
				{
					"pos" : [2.1875, 0.1875, 0.25],
					"width" : 0.375,
					"height" : 0.375
				},
				{
					"pos" : [2.1875, 0.1875, -0.25],
					"width" : 0.375,
					"height" : 0.375
				}
			]
		}
	],

	"rendering": {
		"constantValues": {
			"unuisbest": 1
		},
		"textObjects": [],
		"animatedObjects": [
			{
				"objectName": "$ScrewLeft",
				"animations": [
					{
						"animationType": "rotation",
						"variable": "liftHeight",
						"centerPoint": [2.125, 0, 0],
						"axis": [0, 720, 0]
					}
				]
			},
			{
				"objectName": "$ScrewRight",
				"animations": [
					{
						"animationType": "rotation",
						"variable": "liftHeight",
						"centerPoint": [-2.125, 0, 0],
						"axis": [0, 720, 0]
					}
				]
			},
			{
				"objectName": "$Lift_Frame",
				"animations": [
					{
						"animationType": "translation",
						"variable": "liftHeight",
						"axis": [0, 1, 0]
					}
				]
			},
			{
				"objectName": "$Lift_ArmFL",
				"applyAfter": "$Lift_Frame",
				"animations": [
					{
						"animationType": "rotation",
						"variable": "lift_active",
						"centerPoint": [1.90625, 0.1875, 0.21875],
						"axis": [0, -65, 0]
					}
				]
			},
			{
				"objectName": "$Lift_ArmFR",
				"applyAfter": "$Lift_Frame",
				"animations": [
					{
						"animationType": "rotation",
						"variable": "lift_active",
						"centerPoint": [-1.90625, 0.1875, 0.21875],
						"axis": [0, 65, 0]
					}
				]
			},
			{
				"objectName": "$Lift_ArmBL",
				"applyAfter": "$Lift_Frame",
				"animations": [
					{
						"animationType": "rotation",
						"variable": "lift_active",
						"centerPoint": [1.90625, 0.1875, -0.21875],
						"axis": [0, 65, 0]
					}
				]
			},
			{
				"objectName": "$Lift_ArmBR",
				"applyAfter": "$Lift_Frame",
				"animations": [
					{
						"animationType": "rotation",
						"variable": "lift_active",
						"centerPoint": [-1.90625, 0.1875, -0.21875],
						"axis": [0, -65, 0]
					}
				]
			},
			{
				"objectName": "$Button_Dismount",
				"animations": [
					{
						"animationType": "translation",
						"variable": "lift_active",
						"axis": [-0.015625, 0, 0]
					}
				]
			},
			{
				"objectName": "$Button_Zero",
				"animations": [
					{
						"animationType" : "inhibitor",
						"variable" : "!liftHeight",
						"clampMin": 0,
						"clampMax": 0
					},
					{
						"animationType": "translation",
						"variable": "unuisbest",
						"axis": [-0.015625, 0, 0]
					}
				]
			},
			{
				"objectName": "$Button_Up",
				"animations": [
					{
						"animationType": "translation",
						"variable": "buttonUp",
						"axis": [0, 0, 0.015625]
					}
				]
			},
			{
				"objectName": "$Button_Down",
				"animations": [
					{
						"animationType": "translation",
						"variable": "buttonDown",
						"axis": [0, 0, 0.015625]
					}
				]
			}
		]
	},
	
	"variableModifiers": [
		{
			"variable": "liftHeight",
			"animations": [
				{
					"animationType" : "translation",
					"variable" : "buttonUp",
					"axis" : [0, 0.025, 0]
				},
				{
					"animationType" : "translation",
					"variable" : "buttonDown",
					"axis" : [0, -0.025, 0]
				}
			],
			"minValue": 0,
			"maxValue": 2
		},
		{
			"variable": "lift_active",
			"animations": [
				{
					"animationType" : "translation",
					"variable" : "!unuisbest",
					"axis" : [0, 0, 1]
				},
				{
					"animationType" : "inhibitor",
					"variable" : "!liftHeight",
					"clampMin": 1,
					"clampMax": 1
				},
				{
					"animationType" : "translation",
					"variable" : "unuisbest",
					"axis" : [0, 1, 0]
				}
			],
			"minValue": 0,
			"maxValue": 1
		}/*,
		{
			"variable": "generic_connection_lift_frame_offset_x",
			"animations": [
				{
					"animationType" : "translation",
					"variable" : "unuisbest",
					"axis" : [0, 0, 2.40625]
				}
			]
		},
		{
			"variable": "generic_connection_lift_frame_offset_y",
			"animations": [
				{
					"animationType" : "translation",
					"variable" : "unuisbest",
					"axis" : [0, 0, 1.34375]
				},
				{
					"animationType" : "translation",
					"variable" : "liftHeight",
					"axis" : [0, -1, 0]
				}
			]
		},
		{
			"variable": "generic_connection_lift_frame_offset_z",
			"animations": [
				{
					"animationType" : "translation",
					"variable" : "unuisbest",
					"axis" : [0, 0, -0.125]
				}
			]
		}*/
	]
}