I hadn't done any .jbeam editing, so I figured a rectangle with 8 nodes and a couple of beams would be a good start. It works, but for some reason the mattress loses it's texture. Not just the roofbar_mattress, but the spawnable (prop) mattress loses it's default texture as well, while the blue stripes and floral texture still work for it. To fix this, I copied the matress textures from common.zip/vehicles/common/roofbar_loads to the roofbar_haybale folder and added the material.json entry to the haybale one. This works, but I get the impression that it is not the correct way to do it? Anyone have any advise for this?
Here you go, I've had this in the mods/unpacked folder, but I've removed the backup files from this zip This works as it is now, but find it strange that the haybale works but the mattress (which is in the game files and I haven't touched it) doesn't work unless I add its textures to this file. Edit: Managed to fix this issue: it's shouldn't be called main.material.json, but rather <modname>.material.json Renamed that file, deleted all the mattress stuff from the haybale and it all still works.