跳到主要内容

Minecraft Beta & Preview - 1.19.70.21

General

  • Crafting Table component no longer appends "tile." when defaulting to use block name for crafting table label

实验性特性

Script API

  • Added function playAnimation(animationName: string, options?: PlayAnimationOptions) - Plays the specified animation for an entity

  • ItemStack

    • ItemStack can now be constructed using a string identifier
    • Removed constructor parameter data
    • Removed property data
    • Removed function clearLore- To clear lore, call setLore with an empty array or undefined
    • Setting _nameTag_to an empty string will now clear the name tag
    • Setting _nameTag_to a string longer than 255 characters will now result in an exception
    • Setting _amount_greater than the maximum stack size will now clamp the value to the maximum stack size
    • Setting _amount_to a value less than 1 will now result in an exception
  • ContainerSlot

    • Removed function clearItem- To clear the item, call setItem with undefined
    • Removed function clearLore- To clear lore, call setLore with an empty array or undefined

GameTest Framework

  • Test
    • Added optional _searchDistance_parameter to assertEntityPresent(entityTypeIdentifier: string, blockLocation: BlockLocation, searchDistance?: number, isPresent?: boolean)
    • Added _assertEntityInstancePresentInArea(entity: Entity, isPresent?: boolean)_to check if an entity instance is present in the test area
    • Made the _searchDistance_parameter optional in assertItemEntityPresent

General

  • In JSON formats 1.19.70 and later, blocks fail to load if the "condition" field in Block Permutations is not a valid Molang string