Ok I had a look at it for the coordinates of the different sections. I noticed that you changed the position of the bed in the cubicle file and that’s why the coordinates are a mess. But that needs not to be a problem because you can adjust some things in code.
Beneath a picture of the bed with your original coords
The red and blue color boxes don’t cover your bed at all. That’s a problem. The tools I use are the debugger tools from stonehearth witch you can download from there github (there is somewhere a forum tread about it i think). The Entity editor brings up this menu. (Pencil in the purple box), with that tool you can adjust those boxes. Like I did in the next picture.
To get the coords for the script you can click the little scrolls and copy the code.
But unfortunately that saves the collision problem but not the sleeping, problem. I tried adjusting the
“mount_offset”: { “x”: 20, “y”: 1, “z”: 1.25 }, coords, but that did not resolved the problem until i noticed something with the axis.
With your bed the axis green, red, blue cross, are on the left side of your bed, that is also why the rotation does not work very well I think. On the normal bed (picture below) there are in the midst of the bed. Your heartlings uses this axis as origin for there sleeping coords I asume.
My advise, reopen the model in qubicle place it on the right position axis in the middle of the bed.
Then try to use the original coords for the mean bed, but even better verify the coords with the entity editor from the the debug tools and adjust the coords accordingly.
The coords that made this model regions adjusted for the pictures where:
in the ghost file
code block
´´´
“mob”: {
“model_origin”: {
“x”: 0.5,
“y”: 0,
“z”: 0.1
},
“region_origin”: {
“x”: 0,
“y”: 0,
“z”: 0
}
}
´´´
in the normal file
´´´
“destination”: {
“region”: [
{
“min”: {
“x”: -4,
“y”: 0,
“z”: 1
},
“max”: {
“x”: -1,
“y”: 1,
“z”: 4
}
}
]
},
“region_collision_shape”: {
“region”: [
{
“min”: {
“x”: -4,
“y”: 0,
“z”: 0
},
“max”: {
“x”: -1,
“y”: 1,
“z”: 5
}
},
{
“min”: {
“x”: -4,
“y”: 1,
“z”: 4
},
“max”: {
“x”: -1,
“y”: 2,
“z”: 5
}
},
{
“min”: {
“x”: -4,
“y”: 1,
“z”: 0
},
“max”: {
“x”: -1,
“y”: 2,
“z”: 1
}
}
]
}
´´´
I’ll hope that helps.