跳到主要内容

Minecraft Beta & Preview - 1.21.20.22

Script API

  • Fixed a crash with getTags method on Item Stack when called on the Air Block Item
  • Dimension
    • Released method getTopmostBlock from beta to 1.13.0
    • Released interface VectorXZ from beta to 1.13.0

Blocks

  • The "blocks.json" files found in resource packs are now versioned
    • Overriding the block "stone" with a format_version of 1.20.50 or higher will assume the texture data in terrain_texture.json is flattened and not using an array
    • Overriding the block "prismarine" with a format_version of 1.21.10 or higher will assume the texture data in terrain_texture.json is flattened and not using an array
    • Overriding the block "anvil", "quartz_block", "red_sandstone", "sand" and "sandstone" with a format_version of 1.21.20 or higher will assume the texture data in terrain_texture.json is flattened and not using an array
  • "infested_stone" and its derivatives now have their block sound defined (MCPE-182290

Commands

  • The /locate structure command now uses namespaced structure names. Structure names provided without a namespace will assume the “minecraft” namespace (MCPE-151807)

Editor

The Editor and its corresponding API are in early development, and available for keyboard/mouse on Windows PC Bedrock Preview builds. Tag us on social channels with #BedrockEditor. 

Learn how to use the Editor, join the GitHub Discussion forum to engage with the team, and get started building extensions via the starter kit and samples

Updates this week:

  • Updated set of blocks + entities that appear within the Editor picker
  • Added 'Attach Debugger' ActionBarItem shortcut for attaching to the scripting debugger 
  • Implemented single entity transaction payload for entity delete/create 
  • Implemented Undo/Redo of single entity creation and deletion
  • Added isFloat to support floating point values in addNumber Editor Property Pane API 
  • Added copy to clipboard button to log panel messages
  • Added localized field names into the Deferred Lighting property editor dropdown
  • Added Global Illumination settings to the Deferred Lighting property editor
  • Fixed bug that caused visual artifacts when enabling Deferred Lighting in Editor
  • Removed fallback display text properties from API in favor of single localized property. 
    • Added _label_property to IDropdownItem API, removed displayAltText and displayStringId properties
    • Added _label_property to IMenuCreationParams API, removed name and displayStringId properties
    • Added _title_property to IPropertyItemOptions and IPropertyItem APIs, removed titleAltText and titleStringId properties
    • Added title and tooltip properties to ModalToolCreationParameters API, removed titleAltTexttitleStringIdtooltipAltText and tooltipStringId properties

Entity Components

  • Added the "behavior.teleport_to_owner" goal, which allows an entity to teleport to its owner 
    • This goal is designed for emergency situations where "behavior.follow_owner" could be too slow or too low priority
    • The "filters" field allows defining the conditions for teleportation using entity filters
    • The "cooldown" field allows defining how often the entity should attempt to teleport
  • minecraft:behavior.move_away_from_target has been renamed to minecraft:behavior.move_around_target to better describe what the goal does, since it can be used both for moving away from the target, but also to move towards a random position around the target

Entity Filters

  • Added new entity filter "owner_distance", which checks the distance of an entity from its owner 

Gameplay

  • Modified ItemUseInventoryTransaction packet by adding Trigger Type. This new value tells us if the packet is sent from a direct player input or the simulation tick from the button being held down

General

  • Entities that fail to load due to missing content will now be preserved inside the level. These entities will re-appear when the missing content becomes available (I.E Removing and re-applying an Add-On)

Items

  • Using 'minecraft:wearable' with slot set to 'slot.weapon.offhand' in combination with 'minecraft:allow_off_hand' set to false will now cause a content error

实验性特性

Script API

  • Camera
    • Added `CameraFixedBoomOptions` to the options for the `setCamera` function in beta.

CameraFixedBoomOptions

  • New interface added to beta
  • Allows you to customize `minecraft:follow_orbit` cameras only when the third person camera presets toggle is enabled.
  • Introduces `viewOffset?: Vector2`. This property allows you to change the offset of the camera relative to the player to create an over the shoulder effect.

Graphical

  • Extended TextureSet capabilities to support Items in the Deferred Technical Preview. See updated documentation on the Creator portal for details. 
  • Added the new bio-optical lighting model for water in the Deferred Technical Preview. The ability to customize and data-drive water will be made available in future updates
    • Known issue: there is a volumetrics boundary 8 blocks below the water surface that creates a harsh lighting transition when the camera passes through it.
    • Known issue: waterfalls or thin bodies of water can be difficult to see.
  • Added Screen Space Reflections to the Deferred Technical Preview. These reflections are included as part of the Reflections quality slider in the Deferred graphics settings menu. On mobile devices, screen space reflections are only available when running at Ultra settings. See updated documentation on the Creator portal for details.
  • Fixed a bug on iOS that resulted in undefined graphics behaviour (such as no point lights or washed-out lighting) in the Deferred Technical Preview. 
  • Fixed a gamma-correction bug that caused the textures of Candles, Glass, Ice, Honey, Slime, Beacons, Cauldrons and portals to be overly bright in the Deferred Technical Preview