Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-46595

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • None
    • 1.14.0.2 Beta, 1.14.0.1 Beta, 1.12.0.4 Beta
    • None
    • Unconfirmed
    • Windows

      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

        1. Documentation_Entities.html
          818 kB
          mrflippy
        2. llama.json
          19 kB
          mrflippy

            mrflippy mrflippy
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: