query.get_ride does not seem to work
according to the official molang documentation, query.get_ride is supposed to return the entity the entity executing it is riding. however, it appears to not work in bp anim controllers
for example:
"controller.animation.horse_test": { "initial_state": "default", "states": { "default": { "transitions": [ { "horse": "query.get_ride == 'minecraft:horse'" } ] }, "horse": { "on_entry": [ "/say hello" ], "transitions": [ { "default": "query.get_ride != 'minecraft:horse'" } ] } } }
this bp anim controller should theoretically make the player say "hello" when it's riding a horse, however it doesnt work as intended
Created Issue:
query.get_ride does not seem to work
according to the official molang documentation, query.get_ride is supposed to return the entity the entity executing it is riding. however, it appears to not work in bp anim controllers
according to the official molang documentation, query.get_ride is supposed to return the entity the entity executing it is riding. however, it appears to not work in bp anim controllers
for example:
"controller.animation.horse_test": { "initial_state": "default", "states": { "default": { "transitions": [ { "horse": "query.get_ride == 'minecraft:horse'" } ] }, "horse": { "on_entry": [ "/say hello" ], "transitions": [ { "default": "query.get_ride != 'minecraft:horse'" } ] } } }this bp anim controller should theoretically make the player say "hello" when it's riding a horse, however it doesnt work as intended
"the MoLang query query.get_ride functions correctly for me in the recent beta version. You must use the Arrow Operator (->) to refer the variable/query. Also, the way you to query the ride's identifier is this: query.is_riding ? (query.get_ride -> query.owner_identifier) == 'minecraft:horse'"
-zarkmend zan
@Lilac Kitsune, does the comment above help with this issue?
oh, about that, ye it did
Closing as Cannot Reproduce as per comments above.