Mojira Archive
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

Incomplete

mrflippy

2019-05-21, 08:07 PM

2020-12-21, 01:18 PM

2020-12-21, 01:18 PM

3

4

Unconfirmed

1.14.0.2 Beta, 1.14.0.1 Beta, 1.12.0.4 Beta

-