Adding Functioning doors to JSON - JBurlison/Pandaros.API GitHub Wiki
If you have Pandaros.API installed, to make any block function as a door, simply have the category "door" on the block and have all of its rotation defined, Pandaros.API will do the rest!
"Pandaros.Settlers.AutoLoad.irondoor": {
"onPlaceAudio": "metalPlace",
"icon": "./icons/irondoor.png",
"onRemoveAudio": "metalPlace",
"sideall": "SELF",
"npcLimit": 0,
"maxStackSize": 600,
"isRotatable": true,
"rotatablex+": "Pandaros.Settlers.AutoLoad.irondoorx-",
"rotatablex-": "Pandaros.Settlers.AutoLoad.irondoorx+",
"rotatablez+": "Pandaros.Settlers.AutoLoad.irondoorz-",
"rotatablez-": "Pandaros.Settlers.AutoLoad.irondoorz+",
"categories": [
"decorative",
"iron",
"door"
]
},
"Pandaros.Settlers.AutoLoad.irondoorx+": {
"parentType": "Pandaros.Settlers.AutoLoad.irondoor",
"mesh": "./Meshes/irondoorx+.obj",
"colliders": {
"boxes": [
{
"min": [ -0.5, -0.5, -0.5 ],
"max": [ -0.4, 1.5, 0.5 ]
}
]
}
},
"Pandaros.Settlers.AutoLoad.irondoorx-": {
"parentType": "Pandaros.Settlers.AutoLoad.irondoor",
"mesh": "./Meshes/irondoorx-.obj",
"colliders": {
"boxes": [
{
"min": [ 0.4, -0.5, -0.5 ],
"max": [ 0.5, 1.5, 0.5 ]
}
]
}
},
"Pandaros.Settlers.AutoLoad.irondoorz+": {
"parentType": "Pandaros.Settlers.AutoLoad.irondoor",
"mesh": "./Meshes/irondoorz+.obj",
"colliders": {
"boxes": [
{
"min": [ -0.5, -0.5, -0.5 ],
"max": [ 0.5, 1.5, -0.4 ]
}
]
}
},
"Pandaros.Settlers.AutoLoad.irondoorz-": {
"parentType": "Pandaros.Settlers.AutoLoad.irondoor",
"mesh": "./Meshes/irondoorz-.obj",
"colliders": {
"boxes": [
{
"min": [ -0.5, -0.5, 0.4 ],
"max": [ 0.5, 1.5, 0.5 ]
}
]
}
}