Molang Documentation - Experimental Query Functions

Welcome to the Experimental Entity Query functions.

Caution

Because these Entity Query functions are marked as Experimental, you must make sure the toggle Experimental Molang Features is active in order to use them. To learn how, visit Experimental Features in Minecraft: Bedrock Edition

Click here: Entity Query Functions to view what is currently available.

Name Description
query.is_feeling_happy (EXPERIMENTAL. Enable Sniffer to use.)Returns 1.0 if the entity is feeling happy, else it returns 0.0.
query.is_rising (EXPERIMENTAL. Enable Sniffer to use.)Returns 1.0 if the entity is rising, else it returns 0.0.
query.is_scenting (EXPERIMENTAL. Enable Sniffer to use.)Returns 1.0 if the entity is scenting, else it returns 0.0.
query.is_searching (EXPERIMENTAL. Enable Sniffer to use.)Returns 1.0 if the entity is searching, else it returns 0.0.
query.is_spectator (EXPERIMENTAL. Enable 'Spectator Mode' to use.) Returns 1.0 if the entity is spectator, else it returns 0.0.