The documentation for the entity component "minecraft:interact" is incorrect.
Vanilla_Behavior_Pack_Beta_1.12.0.4 from https://aka.ms/MinecraftBetaBehaviors contains a Documentation_Entities.html file. This file contains the following description of the "on_interact" parameter for the "minecraft:interact" component:
Name: on_interact
Type: String
Default Value: <blank>
Description: Event to fire when the interaction occurs.
However, this does not match up with examples in the same behavior pack.
Example: Vanilla_Behavior_Pack_Beta_1.12.0.4/entities/llama.json
This file contains the following inside of the "component_groups" section:
"minecraft:llama_unchested": {
"minecraft:interact": [
{
"play_sounds": "armor.equip_generic",
"on_interact": {
"filters": {
"all_of": [
\{ "test" : "is_family", "subject" : "other", "value" : "player"},
\{ "test" : "has_equipment", "domain": "hand","subject" : "other", "value" : "chest"}
]
},
"event": "minecraft:on_chest",
"target": "self"
},
"use_item": true,
"interact_text": "action.interact.attachchest"
}
]
}
The value for "on_interact is obviously not a string value. Additionally, the actual format of the "on_interact" value is not documented.
Expected:
Documentation should contain correct description of the "on_interact" parameter value
Documentation should match the code examples
Attachments
Comments 2
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.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki
Thank you for your report!
However, this issue has been temporarily resolved as Awaiting Response
Is this still an issue in the latest version?
If it is, please be sure to include steps to reproduce the problem:
If your ticket does not look like the example given here, then it's likely to be closed as incomplete.
This ticket will automatically reopen when you reply.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki