Skip to main content

Minecraft Beta & Preview - 1.19.40.23

Experimental Features

Script API

Major breaking change to experimental JavaScript APIs:

All script modules have been renamed to follow a new convention.  

  • mojang-gametest-> @minecraft/server-gametest
  • mojang-minecraft-> @minecraft/server
  • mojang-minecraft-ui-> @minecraft/server-ui
  • mojang-minecraft-server-admin-> @minecraft/server-admin
  • mojang-net-> @minecraft/server-net

For example, rather than using:

import * as mc from "mojang-minecraft";

Use

import * as mc from "@minecraft/server";
  • Use of script eval()and Function() must be explicitly enabled in  json 
    • To do this, set script_evalin capabilities

"capabilities": [  "script_eval"]

  • Root path for imports has changed; scripts/prefix are no longer allowed.
  • For imports, use import "./source.js" or import "source.js"
  • Deprecated use of import "scripts/source.js"

Actor Properties

  • Fixed "bool_property" filters that didn't specify a "value"

Commands

  • Temporarily disabled the rotation for the /summon command while a bug is worked on
  • Fixed a rotation issue when a Command Block executes 'execute facing' and 'execute rotated' (MCPE-162256)
  • Implemented the '/execute in' command
  • Implemented the ‘/execute anchored <eyes|feet>’ command

General

  • Release BlockGeometryComponent out of experimental in JSON formats 1.19.40 and higher
  • Release BlockMaterialInstancesComponent out of experimental in JSON formats 1.19.40 and higher
  • Renamed _minecraft:block_light_filter_component to minecraft:light_dampening