跳到主要内容

Minecraft - 1.19.40 (Bedrock)

Updated Add-On Template Packs

  • Updated Add-On templates for 1.19.40 with new resources, behaviors, and documentation, are available to download at aka.ms/MCAddonPacks

Custom Block Geometry

  • We have released custom block geometry in this version of Minecraft. This means that anyone can make a custom block with their own custom geometry and textures WITHOUT turning on the Holiday Creator Features experimental toggle in settings
  • For more information and a list of documentation and tutorials, visit the Custom Block Geometry article on minecraft.net

General

  • Fixed a crash that could occur when using the hasItem selector and specifying a negative value for the item's data (MCPE-152314)
  • Implemented the has_property, int_property, bool_property, float_property, and enum_property actor behavior filters
  • Added flag _is_hidden_in_commands_in menu_category to control whether or not a block can be used in commands
  • 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
  • Renamed experiment GameTest Frameworkto Beta APIs
  • The now-renamed Beta APIsexperiment is still needed to access all beta APIs, including core Minecraft APIs and GameTest APIs
  • Fixed a bug where _EntityHurtEvent_would not fire on player death
  • Entity
    • Updated _target_property to be read-only
    • Fixed an issue where UI forms would not mark their cancelled field correctly
  • Converted EntityQueryScoreOptions to an interface
  • Converted EntityRaycastOptions to an interface
  • Converted ExplosionOptions to an interface
  • Converted MusicOptions to an interface
  • Converted SoundOptions to an interface
  • Removed built-in GameTest Behavior Packs

Commands

  • Implemented the "/execute facing" and "/execute facing entity" commands
  • Implemented the "/execute align" command
  • Fixed a problem with teleports appearing to fly the target to the new location instead of being instant
  • Added the 'replace block' overload to the /loot command
  • Implemented the "/execute rotated " and "/execute rotated as" commands
  • Added the ability to set a custom block with a specific custom block property using the /setblockcommand
  • Copying a bubble column with the /clone command no longer results in invisible water (MCPE-153903)
  • Added new overload to the /summon command that adds rotation arguments
    • New overload is /summon [ spawnPos : x y z] [yRot: float] [xRot: float] [spawnEvent: string] [nametag: string]
  • Previous overload '/summon [ spawnPos : x y z] [spawnEvent: string] [nametag: string]'
  • 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

Data-Driven Blocks

  • minecraft:direction is no longer exposed as a data-driven blockProperty. Blocks throw a content error when the "minecraft" namespace is used

Data-Driven Items

  • Added support for recipes to use item tags directly instead of item names
    • Added new item tags
    • Converted several recipes from code into their own recipe files
    • Added several recipes using the new tags to override many old, item specific recipes (these still exist for backwards compatibility):
      • barrel, beehive, bookshelf, bowl, brewing_stand, campfire, cartography_table, chest, composter, crafting_table, daylight_detector, fire_charge, fletching_table, furnace, grindstone, jukebox, lectern, loom, noteblock, painting, piston, shield, smithing_table, smoker, soul_campfire, soul_torch, stick, stone_axe, stone_hoe, stone_pickaxe, stone_shovel, stone_sword, torch, tripwire_hook, wooden_axe, wooden_hoe, wooden_pickaxe, wooden_shovel, wooden_sword
    • Custom Items, tags, and block tags now work correctly with the minecraft:digger component (MCPE-155786)

Actors

  • Implemented new is_baby actor filter that returns true when the subject entity is a baby
  • Fixed "bool_property" filters that didn't specify a "value"

AI Goals

  • Fixed an issue with Iron Golems that prevented mobs with the minecraft:take_flower AI behavior to use the goal
  • Exposed new data parameters for the minecraft:play AI behavior to specify such things as the duration the goal stays active, the chance to start the goal, the range to search for a friend, and the follow distance to stay within when playing with a friend

Entity Documentation

  • Removed experimental markers for The Wild Update entity behaviors and components
  • Added documentation for minecraft:heartbeat
  • Fixed and updated documentation for entity events

Script API

  • Events
    • Removed event tick- called each tick
  • System
    • Added system.run() - to queue a callback to run next tick, re-queue each tick to get behavior similar to tick event
  • Block
    • Renamed property _id_to typeId
  • BlockComponent
    • Renamed property _id_to typeId
  • Entity
    • Renamed property _id_to typeId
    • Added read-only property id: string- Returns a unique identifier for the entity. This identifier remains consistent across world loads
  • EntityComponent
    • Renamed property _id_to typeId
  • ItemComponent
    • Renamed property _id_to typeId
  • ItemStack
    • Renamed property _id_to typeId

GameTest Framework (Experimental)

There has been a 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  manifest.json 

To do this, set script_eval in capabilities array.

"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"