#HTML mentioned in MCPE doc
1 messages · Page 1 of 1 (latest)
Mojang already uses internal html css and js
It is what you know as the new ore ui
Example:
Suppose you can have a html in your behaviour pack/ui/index.html
<script>
function sendMessage() {
// Send message to Minecraft
window.external.sendMessage("ButtonClicked");
}
</script>
and then this in your scripts/main.js
ui.onMessage((msg) => {
if (msg === "ButtonClicked") {
world.sendMessage("Player clicked the button!");
}
});
I think thats how it is not much sure but it does work
So it is theoretically possible to display an html page to the user, thus having additional buttons at the interface level, etc. And to make, for example, a button activate something on the server side ?
"02/21/2025"
I guess its nonsense date format, and this info was here since february
however I never saw use of it
While Ore-UI is basically just html and stuff, This thing you've showed are legacy scripting feature.
Legacy scripting allows you to create a custom UI based on HTML, but they're pretty much gone now.
so no, this feature is now deprecated and is also pretty much removed or just empty functions behind it. for a replacement, this is where server form exist.