mojira.dev
MCPE-101717

context variables are not registered by the game + insufficient documentation

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

Attachments

Comments 2

Does it still occur in the latest version? If so, can you add it to the affected versions?

Please try and include the following steps to reproduce the problem:

Steps to Reproduce:
1.
2.
3.

Observed Results:
(Briefly describe what happens)

Expected Results:
(Briefly describe what should happen)

Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.

For any account or purchasing related issues, please contact Minecraft Customer Support directly, as we cannot assist with those here at the bug tracker.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

user-6d71e

ambient

(Unassigned)

Unconfirmed

Multiple

windows 10

1.16.100.58 Beta, 1.16.100

Retrieved