跳到主要内容

Minecraft Beta & Preview - 1.21.20.23

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 block hotbar to have non-air defaults
  • Added persistence for the default hotbar 
  • Added "ExtensionContext.settings.theme" which will represent the In-World UI Theme
    • This feature currently has three functions: resolveColorKey(string): Color, setCurrentTheme(string): void, and getThemeList(): string[]
    • There is a single "minecraft:default" theme
    • Future work will add the ability to create, modify, and delete custom themes but the default themes will not be modifiable
  • Updated subset of PropertyPane API to use IObservable pattern.
    • Added an alternative Property Pane _addVector3_API that leverages type safe IObservable Observables can be created using makeObservable API 
      • Added interfaces _IVector3PropertyItem_and IVector3PropertyItemOptions for the new property item
      • Renamed function to create property bag Vector3 to addVector3_deprecated
    • Added an alternative Property Pane _addBool_API that leverages type safe IObservableProp value API 
      • Added interfaces _IBoolPropertyItem_and IBoolPropertyItemOptions for the new property item
      • Renamed function to create property bag bool item to addBool_deprecated
    • Converted Property Pane addText API to use IObservableProp
    • Added interfaces _IButtonPropertyItem_and IButtonPropertyItemOptions for the button property item 
      • IPropertyPane _addButton_API can now take a plain function
      • Removed _ButtonVariant_type, and added ButtonPropertyItemVariant enum API
    • Renamed _EDITOR_PANE_PROPERTY_ITEM_TYPE_enum API to PropertyItemType
    • Converted property pane _addImage_API to support IObservable. It will also be possible to use custom image formats like icon and block with ImageResourceData as value 
      • Added _onClick_function and alignment property to IImagePropertyItemOptions API

Entity Components

  • Improved "behavior.follow_owner" teleportation logic: 
    • Entities now seamlessly resume navigation after teleporting to their owner
    • Added the "post_teleport_distance" field, allowing to specify how far from its owner an entity will be placed after teleporting
      • If no value is specified, "stop_distance" increased by one will be used
    • These changes only affect entities with format version of 1.21.20 or above

General

实验性特性

Creator Camera - Focus Target

  • Focus target experiment is now available, more functionality to come in future releases
  • A new camera command has been added to target entities and keep them in center screen 
    • Includes option to add an offset from the center of the entity
    • Includes option to remove the target