#Molang function always true for some unknown reason
1 messages · Page 1 of 1 (latest)
Thanks for asking your question!
Once you have finished, please close your thread.
Use the /close command or button below.
This is the code
(It's in an ac)
"controller.animation.turn": {
"initial_state": "default",
"states": {
"default": {
"transitions": [
{
"turn": "(((q.has_player_rider ? (v.rider_entity -> (q.head_y_rotation(0)))) != q.head_y_rotation(0)) || ((q.has_player_rider ? (v.rider_entity -> (q.head_x_rotation(0)))) != q.head_x_rotation(0))) && q.health >= 10 && q.mark_variant == 3"
},
{
"hover": "q.has_rider && q.mark_variant == 2"
}
],
"on_entry": [
"v.rider_entity = 0.0; (q.has_rider) ? { for_each(t.entity, q.get_riders, { v.rider_entity = t.entity; break; }); };"
]
},
"turn": {
"transitions": [
{
"default": "1"
}
],
"on_entry": [
"@s flying",
"/say fly"
]
},
"hover": {
"transitions": [
{
"default": "1"
}
],
"on_entry": [
"/function glide"
]
}
}```
Hover do work fine
And turn is always true when Mark variant is 3
I hope someone can help