﻿{
	"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 Pallet",
			"subName": "",
			//"extraMaterialLists": [[],[]]
			"extraMaterialLists": [[],[]]
		}
	],
	
	"general": {
		"description": "",
		"numberWindows": 0,
		"type": "car",
		"openTop": true,
		"emptyMass": 100,
		"stackSize": 4,
		//"materialLists": [["immersiveengineering:treated_wood:0:1"],["immersiveengineering:treated_wood_horizontal:1"]]
		"materialLists": [["minecraft:planks:0:4"],["minecraft:oak_planks:4"]]
	},

	"motorized": {
		"isBigTruck": false,
		"isTrailer": false,
		"isFrontWheelDrive": false,
		"isRearWheelDrive": true,
		"hasRunningLights": true,
		"hasHeadlights": true,
		"hasTurnSignals": true,
		"hasCruiseControl": false,
		"fuelCapacity": 0,
		"defaultFuelQty": 0,
		"axleRatio": 0,
		"dragCoefficient": 0,
		"brakingFactor": 0,
		"downForce" : 0,
		"overSteer": 0,
		"instruments": []
	},
	
	"connectionGroups": [
		{
			"groupName": "Pallet",
			"isHookup": true,
			"connections": [
				{
					"type": "pallet_carrier",
					"pos": [0, -0.125, 0],
					"distance": 1.5
				}
			]
		},
		{
			"groupName": "Pallet",
			"isHookup": true,
			"connections": [
				{
					"type": "pallet_mover",
					"pos": [0, 0.0625, 0],
					"distance": 1
				}
			]
		},
		{
			"groupName": "Pallet",
			"isHitch": true,
			"connections": [
				{
					"type": "pallet_mover",
					"pos": [0, 0.125, 0],
					"distance": 1
				}
			]
		}
	],
	
	"parts": [
		{
			"pos": [-0.4375, 0, -0.4375],
			"partScale": [0.25, 0.25, 0.25],
			"types": ["ground_wheel_invisible"],
			"defaultPart": "unuparts:unuparts_part_unu_wheel_invisible",
			"isPermanent": true,
			"minValue": 0,
			"maxValue": 5
		},
		{
			"pos": [-0.4375, 0, 0.4375],
			"partScale": [0.25, 0.25, 0.25],
			"types": ["ground_wheel_invisible"],
			"defaultPart": "unuparts:unuparts_part_unu_wheel_invisible",
			"isPermanent": true,
			"minValue": 0,
			"maxValue": 5
		},
		{
			"pos": [0.4375, 0, 0.4375],
			"partScale": [0.25, 0.25, 0.25],
			"types": ["ground_wheel_invisible"],
			"defaultPart": "unuparts:unuparts_part_unu_wheel_invisible",
			"isPermanent": true,
			"minValue": 0,
			"maxValue": 5
		},
		{
			"pos": [0.4375, 0, -0.4375],
			"partScale": [0.25, 0.25, 0.25],
			"types": ["ground_wheel_invisible"],
			"defaultPart": "unuparts:unuparts_part_unu_wheel_invisible",
			"isPermanent": true,
			"minValue": 0,
			"maxValue": 5
		},
		{
			"pos": [-0.4375, 0.125, -0.4375],
			"types": ["interactable_crate", "interactable_barrel", "generic_furniture_single"],
			"minValue": 0,
			"maxValue": 5
		},
		{
			"pos": [-0.4375, 0.125, 0.4375],
			"types": ["interactable_crate", "interactable_barrel", "generic_furniture_single"],
			"minValue": 0,
			"maxValue": 5
		},
		{
			"pos": [0.4375, 0.125, 0.4375],
			"types": ["interactable_crate", "interactable_barrel", "generic_furniture_single"],
			"minValue": 0,
			"maxValue": 5
		},
		{
			"pos": [0.4375, 0.125, -0.4375],
			"types": ["interactable_crate", "interactable_barrel", "generic_furniture_single"],
			"minValue": 0,
			"maxValue": 5
		}
	],
	
	"collisionGroups": [
		{
			"collisions": [
				{
					"pos": [-0.4375, -0.0625, -0.4375],
					"width": 0.875,
					"height": 0.125
				},
				{
					"pos": [-0.4375, -0.0625, 0.4375],
					"width": 0.875,
					"height": 0.125
				},
				{
					"pos": [0.4375, -0.0625, -0.4375],
					"width": 0.875,
					"height": 0.125
				},
				{
					"pos": [0.4375, -0.0625, 0.4375],
					"width": 0.875,
					"height": 0.125
				}
			]/*,
			"animations": [
				{
					"animationType": "visibility",
					"variable": "connection_1_1_connected",
					"clampMin": 0,
					"clampMax": 0
				}
			]*/
		}
	],

	"rendering": {
		"constants": ["unuisbest", "p_brake"],
		"textObjects": [],
		"animatedObjects": []
	},
	
	"variableModifiers": [
		{
			"variable": "loadingcounter",
			"animations": [
				{
					"animationType": "translation",
					"variable": "!connection_1_1_connected",
					"axis": [0, 1, 0]
				},
				{
					"animationType": "translation",
					"variable": "connection_2_1_connected",
					"axis": [0, -2, 0]
				}
			],
			"minValue": 0,
			"maxValue": 2
		},
		{
			"variable": "unloadingcounter",
			"animations": [
				{
					"animationType": "translation",
					"variable": "!connection_2_1_connected",
					"axis": [0, 1, 0]
				},
				{
					"animationType": "translation",
					"variable": "connection_3_1_connected",
					"axis": [0, -2, 0]
				}
			],
			"minValue": 0,
			"maxValue": 2
		},
		{
			"variable": "loadable",
			"animations": [
				{
					"animationType": "translation",
					"variable": "unuisbest",
					"axis": [0, 0, 1]
				}
			],
			"minValue": 0,
			"maxValue": 1
		},
		{
			"variable": "unloadable",
			"animations": [
				{
					"animationType": "translation",
					"variable": "!unuisbest",
					"axis": [0, 0, 1]
				}
			],
			"minValue": 0,
			"maxValue": 1
		},
		{
			"variable": "connection_requested",
			"animations": [
				{
					"animationType": "inhibitor",
					"variable": "unuisbest",
					"clampMin": 1,
					"clampMax": 1
				},
				{
					"animationType": "activator",
					"variable": "loadable",
					"clampMin": 1,
					"clampMax": 1
				},
				{
					"animationType": "translation",
					"variable": "!connection_2_1_connected",
					"axis": [0, 0, 1]
				},
				{
					"animationType": "translation",
					"variable": "connection_1_1_connected",
					"axis": [0, -1, 0]
				},
				{
					"animationType": "inhibitor",
					"variable": "loadingcounter",
					"clampMin": 0,
					"clampMax": 1
				},
				{
					"animationType": "translation",
					"variable": "!unuisbest",
					"axis": [0, 0, 1]
				},
				{
					"animationType": "inhibitor",
					"variable": "unuisbest",
					"clampMin": 1,
					"clampMax": 1
				},
				{
					"animationType": "activator",
					"variable": "unloadable",
					"clampMin": 1,
					"clampMax": 1
				},
				{
					"animationType": "translation",
					"variable": "!connection_3_1_connected",
					"axis": [0, 0, 2]
				},
				{
					"animationType": "translation",
					"variable": "connection_2_1_connected",
					"axis": [0, -2, 0]
				},
				{
					"animationType": "inhibitor",
					"variable": "unloadingcounter",
					"clampMin": 0,
					"clampMax": 1
				},
				{
					"animationType": "translation",
					"variable": "!unuisbest",
					"axis": [0, 0, 1]
				}
			],
			"minValue": 0,
			"maxValue": 2
		}
	]
}