mojira.dev
MCPE-46595

Add-On Documentation - "minecraft:interact" parameter "on_interact" has incorrect documentation

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:

  1. Documentation should contain correct description of the "on_interact" parameter value

  2. Documentation should match the code examples

Attachments

Comments 2

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:

Steps to Reproduce:
1.
2.
3.

Observed Results:
(Briefly describe what happens)

Expected Results:
(Briefly describe what should happen)

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

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

mrflippy

(Unassigned)

Unconfirmed

Windows

Windows 10 Pro - Version 10.0.17134 Build 17134

1.14.0.2 Beta, 1.14.0.1 Beta, 1.12.0.4 Beta

Retrieved