Skip to main content

Minecraft Beta & Preview - 1.20.60.22

Script API

  • Made the display name parameter optional in Scoreboard addObjective

Blocks

  • Changing the brightness_gamma value for blocks now darkens the block correctly (MCPE-167836)

Components

  • Added a "drop_item_slot" field to the "interact" component, which allows to specify an inventory slot to remove and drop items from

Editor

  • Tool Test World was moved from toolrail and is now under menu World Options

Graphical

  • Fixed a crash that could occur when players placed or destroyed any block and then Save & Quit with Ray Tracing enabled

Stability and Performance

  • Send "material" for vanilla data-driven blocks in the StartGamePacket blockProperties. "block_id" is also moved to the "vanilla_block_data" object

Experimental Features

Script API

  • Added method eatItem(itemStack: ItemStack): void;.
  • BlockSignComponent
    • Changed signature of function setWaxed to setWaxed(waxed: boolean)
    • Removed event/property pistonActivate
  • Added enum BlockPistonState export enum BlockPistonState { Expanded = "Expanded", Expanding = "Expanding", Retracted = "Retracted", Retracting = "Retracting" }
  • Class BlockPistonComponent
    • Removed property isExpanded
    • Removed property isExpanding
    • Removed property isRetracted
    • Removed property isRetracting
    • Added property readonly state: BlockPistonState
    • Changed function getAttachedBlocks to return type Block[]
    • Added function getAttachedBlocksLocations(): Vector3[]
  • Removed class PistonActivateBeforeEvent
  • Removed class PistonActivateBeforeEventSignal
  • Types
    • Moved BlockType from beta to 1.8.0
    • Moved FluidType from beta to 1.8.0
  • Moved NavigationResult from @minecraft/server to @minecraft/server-gametest

Graphical

  • Adjusted the falloff of point light sources (e.g., torches, lanterns, etc...) to use a square, Manhattan-based distance metric in the Deferred Technical Preview.
  • Tinted ambient light color with point light color for better multi-colored lighting over large distances in the Deferred Technical Preview

Scripting

  • Fixed issue where ActionFormData buttons could not be clicked if there were more than 255 buttons in the form