跳到主要内容

Minecraft Beta & Preview - 1.21.50.20

General

  • Fixed issue that caused the export as template functionality to generate invalid mctemplate UUIDs

Add-Ons and Script Engine

  • The [Beta] fields in the "minecraft:looked_at" and "minecraft:home" entity components are no longer marked as [Beta] and no longer require "use_beta_features" to be specified in the root JSON object

Blocks

  • Updated minecraft:destructible_by_mining component, new field item_specific_speeds no longer experimental.

  • Removed the following vanilla block tags from experimental

    • "minecraft:diamond_tier_destructible"
    • "minecraft:iron_tier_destructible"
    • "minecraft:is_hatchet_item_destructible"
    • "minecraft:is_hoe_item_destructible"
    • "minecraft:is_mace_item_destructible"
    • "minecraft:is_pickaxe_item_destructible"
    • "minecraft:is_shears_item_destructible"
    • "minecraft:is_shovel_item_destructible"
    • "minecraft:is_sword_item_destructible"
    • "minecraft:netherite_tier_destructible"
    • "minecraft:stone_tier_destructible"
  • Renamed vanilla block tag "minecraft:is_hatchet_item_destructible" to "minecraft:is_axe_item_destructible".

  • Removed the following vanilla block tags.

    • "minecraft:is_digger_item_destructible"
    • "minecraft:is_tool_item_destructible"
    • "minecraft:gold_tier_destructible"
    • "minecraft:wood_tier_destructible"

Editor

  • Selection now has a freehand select that uses brushes to paint

  • Updated general brush functionality:

    • Brush shapes are visualized as grey wireframes, and show only affected blocks in yellow
    • Cusor Control / Mouse Mode is now using a common control which is shared across extensions
    • Brush Selection, Masking and Brush Properties is now using a custom control which is shared across extensions
    • Brush Painting now visualizes only affected blocks
  • Added addToggleGroup function to IPropertyPane API to create toggle groups with selectable icon buttons

  • Added support for Brush Shape Offsets

  • Added a new settings screen in View \> View Settings to configure certain view related settings (like invisible block visibility and chunk boundaries)

  • Added mouse button event data to the widget state change event so that server scripts can track mouse button events (press, release, drag) and the state of modifier keys (shift, ctrl)

  • Added an optional infoTooltip: TooltipInteractiveContent property to IRootPropertyPane API, displayed as an icon in the drawer header. Interactive tooltips remain active on hover and support links and paragraphs.

  • Added serialize(obj) and deserialize(string) functions. These act like JSON.stringify/JSON.parse but will use custom serializers/deserializers registered with registerSerializationForType

    • CompoundBlockVolume and BlockVolume are able to be serialized and deserialized with these functions
  • Added registerSerializationForType\<T\>(constructor, name, serializer, deserializer) which registers any type with custom serialization/deserialization for serialize and deserialize

  • Updated Block Masks to work when empty (always match)

  • Added 'cancel' property to endPainting()

  • Added control buttons next to the hotbar to switch the active palette and manage other palettes

  • Updated Selection Volume and Cursor colors to default to the colors of those keys in the currrently-selected theme. Changed Client Widget X, Y, and Z arrows to always be the colors of those keys in the currently-selected theme. Changed deleted fillColor and outlineColor in CursorProperties so that causes the Cursor colors to return back to the colors of those keys in the currently-selected theme.

  • Fixed issues with selection being cleared on tool focus change

Entity Components

  • Added new component 'minecraft:can_attack_ghast'. When added to an entity, it enables that entity to target and attack Ghasts.

  • 'behavior.summon_entity' now lets creators specify an event to be invoked on the summoned entity immediately after summon (MCPE-44454)

Entity Event Responses

  • Added the "play_sound" entity event response, which allows the owner entity to emit sounds

    • The "sound" field specifies the sound event to play
    • Sounds are played at the owner entity's position

General

  • Creating a new world from a template that supports random seeds will now clear any stored spawn position from the level data

Network Protocol

  • New actor type added: Creaking (146)
  • New level events added: ParticleCreakingHeartTrail, ParticleCreakingTeardown
  • New level sound events added: ImitateCreaking, CreakingHeartTrail, CreakingHeartSpawn, Activate, Deactivate, Freeze, Unfreeze

Realms

  • Fixed soft-lock UI bug when an expired Realm was deleted

实验性特性

Add-Ons and Script Engine

  • Added "canUseBlockAsIcon" bool to the "minecraft:block_placer" item component network data to fix bug where clients did not render the block item correctly.

Script API

  • Add collectRuntimeStats to @minecraft/debug-utilities module, exposing script runtime memory usage.
  • Added new input permissions that effectively allow creators to enable/disable player inputs including: lateral movement, move forward, move backward, move left, move right, sneak, jump, mount, and dismount.
    • Extended PlayerInputPermissions script class to read and write the new input permissions
    • Extended /inputpermissions command to use the new input permissions
    • Extended haspermission selector to use the new input permissions
  • BlockComponentTypes
    • Moved FluidContainer from beta to 1.16.0
  • Moved BlockFluidContainerComponent from beta to 1.16.0
  • Moved FluidContainer from beta to 1.16.0
  • Added initialRotation optional member to SpawnEntityOptions for specifying the initial rotation of the spawned entity in degrees.

Graphical

  • Fixed rendering of Wardens in the Deferred Technical Preview. (MCPE-180140)

  • Fixed TextureSets for multi-textured mobs, such as llamas in the Deferred Technical Preview.

  • Fixed the orientation of normal maps for mobs on Android in the Deferred Technical Preview.

  • End Portals now cast shadows in the Deferred Technical Preview.

  • Improved the visibility of reflective surfaces when underground in the Deferred Technical Preview.

  • Slightly reduced the intensity of the wrapping effect of sub surface scattering in the Deferred Technical Preview.

Molang

  • Added query.last_input_mode_is_any. It takes one or more arguments ('keyboard_and_mouse', 'touch', 'gamepad', or 'motion_controller'). If the last input used is any of the specified string values, returns 1.0. Otherwise returns 0.0. Available on the Client (Resource Packs) only. Added query.touch_only_affects_hotbar. It returns 1.0 if the touch input only affects the touchbar, otherwise returns 0.0. Available on the Client (Resource Packs) only.

Scripting

  • Added enum InputMode. export enum InputMode { Gamepad = 'Gamepad', KeyboardAndMouse = 'KeyboardAndMouse', MotionController = 'MotionController', Touch = 'Touch', Undetermined = 'Undetermined', }
  • Added class InputInfo.
    • Field touchOnlyAffectsHotbar. Whether the player touch input only affects the touchbar or not.
    • Field lastInputModeUsed. The last input mode used by the player.
    • Added field inputInfo.
  • Added class PlayerInputModeChangeAfterEvent.
    • Field newInputModeUsed, the new input mode used by the player.
    • Field player, the player that had the input mode change.
    • Field previousInputModeUsed, the previous input mode used by the player.
  • Added class PlayerInputModeChangeAfterEventSignal.

User Interface

  • Toggle renderer is now a bindable action under Keyboard and Mouse settings menu.

Camera

  • Added 'minecraft:fixed_boom' preset to the 'Creator Cameras: New Third Person Presets' experimental toggle