跳到主要内容

Minecraft Beta & Preview - 1.20.20.22

General

  • Removed server-authoritative-sound bool from server.properties 
  • Exposed DimensionType to scripting
  • The /camera command no longer requires the experimental cameras toggle 
    • Note: The cameras experiment still contains several example preset JSON files for reference
  • Released the "minecraft:wearable" item component out of experimental in json formats 1.20.20 and higher
  • Exposed the following feature placement rules from behind the data driven biome experimental toggle. This allows creators to attach their custom features to a biome, and to define the rules by which those features are placed
    • minecraft:aggregate_feature
    • minecraft:cave_carver_feature
    • minecraft:fossil_feature
    • minecraft:geode_feature
    • minecraft:growing_plant_feature
    • minecraft:multiface_feature
    • minecraft:nether_cave_carver_feature
    • minecraft:ore_feature
    • minecraft:partially_exposed_blob_feature
    • minecraft:scatter_feature
    • minecraft:search_feature
    • minecraft:sequence_feature
    • minecraft:single_block_feature
    • minecraft:snap_to_surface_feature
    • minecraft:structure_template_feature
    • minecraft:surface_relative_threshold_feature
    • minecraft:tree_feature
    • minecraft:underwater_cave_carver_feature
    • minecraft:vegetation_patch_feature
    • minecraft:weighted_random_feature

Items

  • Released the "minecraft:digger" item component out of experimental in json formats 1.20.20 and higher 
  • Deprecated "on_dig" parameters from "minecraft:digger" item component in formats 1.20.20 and higher 

实验性特性

Script API

  • Added camera scripting APIs for the following APIs: 
    • setCamera(): to set the camera to a specified preset
    • fade(): to start a camera fade
    • clear(): to clear the current settings on the camera
  • Released Scoreboard API's from beta to V1.4.0
    • Updated Scoreboard.getObjective, getObjectiveAtDisplaySlot, and clearObjectiveAtDisplaySlot to return '| undefined'
  • Removed MinecraftBlockTypes defined in @minecraft/server
  • Moved ItemUseBeforeEvent to 1.4.0
  • Moved ItemUseOnBeforeEvent to 1.4.0
  • Moved ItemUseAfterEvent to 1.4.0
  • Moved ItemUseOnAfterEvent to 1.4.0
  • Moved ItemStartUseOnAfterEvent to 1.4.0
  • Moved ItemStopUseAfterEvent to 1.4.0
  • Moved ItemStopUseOnAfterEvent to 1.4.0
  • Moved ItemCompleteUseAfterEvent to 1.4.0
  • Moved ItemReleaseUseAfterEvent to 1.4.0
  • Moved ItemStartUseAfterEvent to 1.4.0
  • Moved DimensionLocation to 1.4.0
  • Renamed PositionInUnloadedChunkError to LocationInUnloadedChunkError and moved it to 1.4.0
  • Renamed PositionOutOfWorldBoundariesError to LocationOutOfWorldBoundariesError and moved it to 1.4.0
    • Moved getSpawnPoint to 1.4.0
    • Moved setSpawnPoint to 1.4.0
    • Moved getDefaultSpawnLocation to 1.4.0
    • Moved setDefaultSpawnLocation to 1.4.0
  • Released isValid() from Beta to 1.4.0 for the following classes:
    • Block
    • Container
    • Entity
    • Player
    • SimulatedPlayer
  • WorldAfterEvents
    • Removed projectileHit
    • Added projectileHitBlock
    • Added projectileHitEntity
  • Added class ProjectileHitBlockAfterEvent export class:
    ProjectileHitBlockAfterEvent { readonly dimension: Dimension; readonly hitVector: Vector3; readonly location: Vector3; readonly projectile: Entity; readonly source?: Entity; getBlockHit(): BlockHitInformation; }
  • Added class ProjectileHitEntityAfterEvent export class:
    ProjectileHitEntityAfterEvent { readonly dimension: Dimension; readonly hitVector: Vector3; readonly location: Vector3; readonly projectile: Entity; readonly source?: Entity; getEntityHit(): EntityHitInformation; }
  • Fixed a bug where ContainerSlot would not work with certain container types (MCPE-172782)