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

"minecraft:load_ui" event doesn't work

XMLWordPrintable

    • Unconfirmed
    • Windows
    • 226674

      Running the following code on the client use to work as expected on all 1.12 betas (my_custom_ui would load just fine). On 1.13.0.1 beta the code runs but the ui DOES NOT load and from the player's perspective nothing happens (note the client script runs without errors on 1.13.0.1 as I attached the VS debugger and set breakpoints).

      let loadEventData = this.createEventData("minecraft:load_ui");     
      loadEventData.data.path = "my_custom_ui.html";     
      loadEventData.data.options.is_showing_menu = true;     
      loadEventData.data.options.absorbs_input = true;        
      loadEventData.data.options.render_game_behind = true;        
      loadEventData.data.options.always_accepts_input = true;
      this.broadcastEvent("minecraft:load_ui", loadEventData);

      Also there is a discrepancy in the documentation regarding custom ui's. In the Scripting documentation (under Breaking Changes) it says to use "engine.on("facet:updated:core.scripting", ...);" while the documentation for custom ui's says to use "engine.on("facet:updated:scripting", ...);" 

       

            mulelish Mulelish
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: