Experimental Entity Queries Are Not Working
When attempting to use experimental queries such as;
- query.biome_has_any_tag('tag_name')
- query.scoreboard('scoreboard_name')
or any other query that is experimental in the Molang documentation, they break the file they are in.
Update:
- When looking at the content log, the following error occurs when using the biome query:
- ... q.biome_has_any_tag('plains') | unrecognized token: q.biome_has_any_tag('plains')
Expected Behavior:
- Experimental queries work as intended and don't break the files they are in
Actual Behavior:
- Use of experimental queries breaks files
Steps to Reproduce:
- Setup an animation controller or variable that uses an experimental query
- Attempt to do something with that query (switch states in a anim_controller, run an animation in a resource file, etc.)
- It won't work
- Switch the experimental query to something like query.is_sneaking
- The files will no longer be broken and will work
Created Issue:
Experimental Entity Queries Are Not Working
When attempting to use experimental queries such as;
- query.biome_has_any_tag('tag_name')
- query.scoreboard('scoreboard_name')
or any other query that is experimental in the Molang documentation, they break the file they are in.
Expected Behavior:
- Experimental queries work as intended and don't break the files they are in
Actual Behavior:
- Use of experimental queries breaks files
Steps to Reproduce:
- Setup an animation controller or variable that uses an experimental query
- Attempt to do something with that query (switch states in a anim_controller, run an animation in a resource file, etc.)
- It won't work
- Switch the experimental query to something like query.is_sneaking
- The files will no longer be broken and will work
When attempting to use experimental queries such as;
- query.biome_has_any_tag('tag_name')
- query.scoreboard('scoreboard_name')
or any other query that is experimental in the Molang documentation, they break the file they are in.
Expected Behavior:
- Experimental queries work as intended and don't break the files they are in
Actual Behavior:
- Use of experimental queries breaks files
Steps to Reproduce:
- Setup an animation controller or variable that uses an experimental query
- Attempt to do something with that query (switch states in a anim_controller, run an animation in a resource file, etc.)
- It won't work
- Switch the experimental query to something like query.is_sneaking
- The files will no longer be broken and will work
When attempting to use experimental queries such as;
- query.biome_has_any_tag('tag_name')
- query.scoreboard('scoreboard_name')
or any other query that is experimental in the Molang documentation, they break the file they are in.
Update:
- When looking at the content log, the following error occurs when using the biome query:
- ... q.biome_has_any_tag('biome_basalt_deltas) | unrecognized token: q.biome_has_any_tag('biome_basalt_deltas)
Expected Behavior:
- Experimental queries work as intended and don't break the files they are in
Actual Behavior:
- Use of experimental queries breaks files
Steps to Reproduce:
- Setup an animation controller or variable that uses an experimental query
- Attempt to do something with that query (switch states in a anim_controller, run an animation in a resource file, etc.)
- It won't work
- Switch the experimental query to something like query.is_sneaking
- The files will no longer be broken and will work
When attempting to use experimental queries such as;
- query.biome_has_any_tag('tag_name')
- query.scoreboard('scoreboard_name')
or any other query that is experimental in the Molang documentation, they break the file they are in.
Update:
- When looking at the content log, the following error occurs when using the biome query:
- ... q.biome_has_any_tag('
biome_basalt_deltas) | unrecognized token: q.biome_has_any_tag('biome_basalt_deltas)Expected Behavior:
- Experimental queries work as intended and don't break the files they are in
Actual Behavior:
- Use of experimental queries breaks files
Steps to Reproduce:
- Setup an animation controller or variable that uses an experimental query
- Attempt to do something with that query (switch states in a anim_controller, run an animation in a resource file, etc.)
- It won't work
- Switch the experimental query to something like query.is_sneaking
- The files will no longer be broken and will work
When attempting to use experimental queries such as;
- query.biome_has_any_tag('tag_name')
- query.scoreboard('scoreboard_name')
or any other query that is experimental in the Molang documentation, they break the file they are in.
Update:
- When looking at the content log, the following error occurs when using the biome query:
- ... q.biome_has_any_tag('plains') | unrecognized token: q.biome_has_any_tag('plains')
Expected Behavior:
- Experimental queries work as intended and don't break the files they are in
Actual Behavior:
- Use of experimental queries breaks files
Steps to Reproduce:
- Setup an animation controller or variable that uses an experimental query
- Attempt to do something with that query (switch states in a anim_controller, run an animation in a resource file, etc.)
- It won't work
- Switch the experimental query to something like query.is_sneaking
- The files will no longer be broken and will work
In a recent beta, context variables were introduced into the game to use in tandem with the arrow operator (->) to query entities marked as what seems to be the built-in subjects (self, other, target, parent, player, holder?, etc). However, these variables do not exist in game. Use of them will throw a log error. Even though, documentation for how these work is very vague.
The beta documentation states that context.variable_name is "(EXPERIMENTAL) Read-only storage provided by the game in certain scenarios", implying that we do not have to initialize and define them for use.
Where is the documentation for how this works?
The 1.16.100.56 beta changelog gives us an example of its use in a custom item in the "Items" subheader, however the variables still are not usable in addons.
https://feedback.minecraft.net/hc/en-us/articles/360049825031-Minecraft-Beta-1-16-100-56-Xbox-One-Windows-10-Android-
This bug report may relate to: MCPE-101702
Added error from content log output
query.scoreboard only works in rp only if the scoreboard you're querying is on the sidebar, i believe. (not sure about bp)
I've tried using query.scoreboard in both rp and bp, both return unrecognised token errors, even with the scoreboards on the sidebar. Not to mention that if they were only to work while on the sidebar that would be a bug itself.
relates to
MCPE-101717Resolved as of 1.16.100.59
Resolving as Cannot Reproduce as per comment above.
This also happened to me too. I have been getting the same error by testing the biome the player is in.
[^DT_BP.mcpack] Here is the Behavior Pack I encountered the error in. Extract it as zip then go to animation_controllers, temperaturetest.json and see the queries.
(Version: v1.16.201)
Nevermind. I found out that you only need to enable "Additional modding capabilities" in the world settings. I hope that helps anyone else that has this same issue.