{
"Zil130_sparetireholder": {
    "information":{
        "authors":"Bagusik",
        "name":"Spare Wheel Holder",
        "value":24000,
    },
    "slotType" : "Zil130_sleeper",
    "slots": [
        ["type", "default", "description"],
        ["Zil130_spare_tire","Zil130_spare_tire","Spare Wheel"],
    ],
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["Zil130_sleeper", ["Zil130_sleeper","Zil130_sleeper_bottom"]],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"selfCollision":true},
         {"collision":true},
         //--SLEEPER--
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         {"group":"Zil130_sleeper"},
         {"nodeWeight":3.06},
         {"selfCollision":true},
         ["slpr1l", 1.30618, -0.92958, 1.39142],
         ["slpr1", 0.03382, -0.92958, 1.50060],
         ["slpr1r", -1.14872, -0.92958, 1.41171],
         ["slpr0l", 1.30618, -1.26575, 1.39142],
         ["slpr0", 0.03382, -1.26575, 1.50060],
         ["slpr0r", -1.14872, -1.26575, 1.41171],

         ["slpc1l", 1.30618, -0.92958, 1.09359],
         ["slpc1", 0.03382, -0.92958, 1.09359],
         ["slpc1r", -1.23853, -0.92958, 1.09359],
         ["slpc0l", 1.30618, -1.26575, 1.09359],
         ["slpc0", 0.03382, -1.26575, 1.09359],
         ["slpc0r", -1.23853, -1.26575, 1.09359],

         {"group":"Zil130_sleeper_bottom"},
         ["slpb1l", 1.30618, -0.92958, 0.86492],
         ["slpb1", 0.03382, -0.92958, 0.67813, {"selfCollision":false}],
         ["slpb1r", -1.23853, -0.92958, 0.84507],
         ["slpb0l", 1.30618, -1.26575, 0.86492],
         ["slpb0", 0.03382, -1.26575, 0.67813, {"selfCollision":false}],
         ["slpb0r", -1.23853, -1.26575, 0.84507],

         {"group":"Zil130_sleeper_fin"},
         //flexbody improvement node
         ["slpfin", 0.03382, -1.10090, 0.94385],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          //--SLEEPER--
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamSpring":2000800,"beamDamp":160},
          {"beamDeform":1185000,"beamStrength":"FLT_MAX"},
          //flexbody impovement node
          ["slpfin","slpb0l"],
          ["slpfin","slpb0"],
          ["slpfin","slpb0r"],
          ["slpfin","slpb1l"],
          ["slpfin","slpb1"],
          ["slpfin","slpb1r"],

          ["slpfin","slpc0l"],
          ["slpfin","slpc0"],
          ["slpfin","slpc0r"],
          ["slpfin","slpc1l"],
          ["slpfin","slpc1"],
          ["slpfin","slpc1r"],
          //main shape widthwise
          {"beamDeform":25000},
          ["slpr0l","slpr0"],
          ["slpr0r","slpr0"],
          ["slpr1l","slpr1"],
          ["slpr1r","slpr1"],

          ["slpc0l","slpc0"],
          ["slpc0r","slpc0"],
          ["slpc1l","slpc1"],
          ["slpc1r","slpc1"],

          ["slpb0l","slpb0"],
          ["slpb0r","slpb0"],
          ["slpb1l","slpb1"],
          ["slpb1r","slpb1"],

          //main shape lengthwise
          {"beamDeform":35000},
          ["slpb0r","slpb1r"],
          ["slpb0","slpb1"],
          ["slpb0l","slpb1l"],

          ["slpr0r","slpr1r"],
          ["slpr0","slpr1"],
          ["slpr0l","slpr1l"],

          ["slpc0r","slpc1r"],
          ["slpc0","slpc1"],
          ["slpc0l","slpc1l"],

          {"beamDeform":25000},
          //main shape vertical
          ["slpb1","slpc1"],
          ["slpr1","slpc1"],
          ["slpb1r","slpc1r"],
          ["slpr1r","slpc1r"],
          ["slpb1l","slpc1l"],
          ["slpr1l","slpc1l"],

          ["slpb0","slpc0"],
          ["slpr0","slpc0"],
          ["slpb0r","slpc0r"],
          ["slpr0r","slpc0r"],
          ["slpb0l","slpc0l"],
          ["slpr0l","slpc0l"],

          {"beamDeform":15000},
          //crosses lengthwise
          ["slpr1r","slpr0"],
          ["slpr1","slpr0r"],
          ["slpr1l","slpr0"],
          ["slpr1","slpr0l"],

          ["slpc1r","slpc0"],
          ["slpc1","slpc0r"],
          ["slpc1l","slpc0"],
          ["slpc1","slpc0l"],

          ["slpb1r","slpb0"],
          ["slpb1","slpb0r"],
          ["slpb1l","slpb0"],
          ["slpb1","slpb0l"],

          //vertical crosses front facing
          ["slpb1r","slpc1"],
          ["slpb1","slpc1r"],
          ["slpb1l","slpc1"],
          ["slpb1","slpc1l"],

          ["slpr1r","slpc1"],
          ["slpr1","slpc1r"],
          ["slpr1l","slpc1"],
          ["slpr1","slpc1l"],

          ["slpb0r","slpc0"],
          ["slpb0","slpc0r"],
          ["slpb0l","slpc0"],
          ["slpb0","slpc0l"],

          ["slpr0r","slpc0"],
          ["slpr0","slpc0r"],
          ["slpr0l","slpc0"],
          ["slpr0","slpc0l"],

          //side vertical crosses
          ["slpb1r","slpc0r"],
          ["slpb0r","slpc1r"],
          ["slpr1r","slpc0r"],
          ["slpr0r","slpc1r"],

          ["slpb1","slpc0"],
          ["slpb0","slpc1"],
          ["slpr1","slpc0"],
          ["slpr0","slpc1"],

          ["slpb1l","slpc0l"],
          ["slpb0l","slpc1l"],
          ["slpr1l","slpc0l"],
          ["slpr0l","slpc1l"],

          //attach
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamSpring":501000,"beamDamp":1000},
          {"beamDeform":45000,"beamStrength":70000},
          //attach to frame
          {"breakGroup":"sleepermount_RR"},
          ["slpb1r", "f7r"],
          ["slpb0r", "f7r"],
          {"breakGroup":"sleepermount_RL"},
          ["slpb1l", "f7l"],
          ["slpb0l", "f7l"],
          {"breakGroup":"sleepermount_FR"},
          ["f6r", "slpb0r"],
          ["f6r", "slpb1r"],
          {"breakGroup":"sleepermount_FL"},
          ["f6l", "slpb0l"],
          ["f6l", "slpb1l"],

          {"beamPrecompression":1.01, "beamType":"|BOUNDED", "beamLongBound":0.01, "beamShortBound":0.01},
          {"beamSpring":51000,"beamDamp":8000,"beamLimitSpring":5001000,"beamLimitDamp":1000},
          {"breakGroup":"sleepermount_RR"},
          ["slpc1r", "f7r", {"beamDampFast":800,"beamDampVelocitySplit":1,"dampCutoffHz":250}],
          ["slpc1", "f7r", {"beamDampFast":800,"beamDampVelocitySplit":1,"dampCutoffHz":250}],
          ["slpc0r", "f7r", {"beamDampFast":800,"beamDampVelocitySplit":1,"dampCutoffHz":250}],
          {"breakGroup":"sleepermount_RL"},
          ["slpc1l", "f7l", {"beamDampFast":800,"beamDampVelocitySplit":1,"dampCutoffHz":250}],
          ["slpc1", "f7l", {"beamDampFast":800,"beamDampVelocitySplit":1,"dampCutoffHz":250}],
          ["slpc0l", "f7l", {"beamDampFast":800,"beamDampVelocitySplit":1,"dampCutoffHz":250}],
          {"breakGroup":"sleepermount_FR"},
          ["f6r", "slpc0r", {"beamDampFast":800,"beamDampVelocitySplit":1,"dampCutoffHz":250}],
          ["f6r", "slpc0", {"beamDampFast":800,"beamDampVelocitySplit":1,"dampCutoffHz":250}],
          ["f6r", "slpc1r", {"beamDampFast":800,"beamDampVelocitySplit":1,"dampCutoffHz":250}],
          {"breakGroup":"sleepermount_FL"},
          ["f6l", "slpc0l", {"beamDampFast":800,"beamDampVelocitySplit":1,"dampCutoffHz":250}],
          ["f6l", "slpc0", {"beamDampFast":800,"beamDampVelocitySplit":1,"dampCutoffHz":250}],
          ["f6l", "slpc1l", {"beamDampFast":800,"beamDampVelocitySplit":1,"dampCutoffHz":250}],
          {"breakGroup":""},

          //sleeper to cab support beams
          {"beamPrecompression":1,"beamType":"|SUPPORT", "beamLongBound":5},
          {"beamSpring":1001000,"beamDamp":50},
          {"beamDeform":40000,"beamStrength":400000},
          {"beamPrecompression":0.94},
          {"optional":true},
          ["slpr0", "dc16"],
          ["slpr0r", "dc16rr"],
          ["slpr0l", "dc16ll"],
          ["slpb0l", "dc8ll"],
          ["slpb0", "dc7"],
          ["slpb0r", "dc8rr"],

          {"beamPrecompression":0.91},
          ["slpc0l", "dc13lll"],
          ["slpc0", "dc19"],
          ["slpc0r", "dc13rrr"],
          {"beamPrecompression":1},
          {"optional":false},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
    ],
    "quads": [
            ["id1:","id2:","id3:","id4:"],
            {"group":"Zil130_sleeper"},

            {"dragCoef":8},
            ["slpb1r","slpb1","slpb0","slpb0r"],
            ["slpb1","slpb1l","slpb0l","slpb0"],

            ["slpr1l","slpr1","slpr0","slpr0l"],
            ["slpr1","slpr1r","slpr0r","slpr0"],
            {"dragCoef":4},
            ["slpc1l","slpc1","slpr1","slpr1l"],
            ["slpc1","slpc1r","slpr1r","slpr1"],
            ["slpb1l","slpb1","slpc1","slpc1l"],
            ["slpb1","slpb1r","slpc1r","slpc1"],

            ["slpb0","slpb0l","slpc0l","slpc0"],
            ["slpc0","slpc0l","slpr0l","slpr0"],
            ["slpb0r","slpb0","slpc0","slpc0r"],
            ["slpc0r","slpc0","slpr0","slpr0r"],
            {"dragCoef":8},
            ["slpb0l","slpb1l","slpc1l","slpc0l"],
            ["slpc0l","slpc1l","slpr1l","slpr0l"],

            ["slpr1r","slpc1r","slpc0r","slpr0r"],
            ["slpc1r","slpb1r","slpb0r","slpc0r"],
            {"group":""},
    ],
},
"Zil130_bugshield": {
    "information":{
        "authors":"BeamNG",
        "name":"Bug Shield",
        "value":280,
    },
    "slotType" : "Zil130_hood_accessory",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["Zil130_sleeperdeflector", ["Zil130_hood"]],
     ],
},
}