这是 Minecraft 1.16 的第十三个快照。原文:https://www.minecraft.net/zh-hans/article/minecraft-snapshot-20w17a

MINECRAFT 快照 20W17A
一个 Minecraft Java 版快照

作者:Adrian Östergård
发布日期:2020/04/22
本周的快照为你带来少量调整、修补和技术性变动。
我们还准备了一个问卷好让你能反馈给我们你对下界更新的想法。你可以点击这里来查看问卷。我们十分感激你可以花点时间填写问卷。
20W17A 新增特性
- 添加了一个实体距离范围选项,可选值从 50% 到 500%
- 游戏难度和游戏规则现在可以在「创建世界」画面中设定
20W17A 内容改动
- 改进了锻造台的 UI
- 废弃传送门 (Ruined Portal) 现在较少生成
- 将「灵魂火把 (Soul Fire Torch)」和「灵魂灯笼 (Soul Fire Lantern)」分别重命名为「灵魂火把 (Soul Torch)」和「灵魂灯笼 (Soul Lantern)」
- 调整了堡垒遗迹 (Bastion Remnant) 的战利品
- 墙现在会在更多东西下生成延展结构,如压力板和旗帜
- 没有可选择的世界时「单人游戏」按钮会直接跳转到「创建世界」画面
20W17A 技术性变动
- 聊天组件样式现在可以选择字体
- 略微调整了区块的方块存储格式以加速若干任务的执行(渲染、寻路、世界生成等)
- 支持了完整的 Unicode 字符范围(会有人明白这是什么意思😉)
- 添加了
attribute
命令
世界存档格式
- 保存 level.dat 时现在会使用随机命名的临时文件(而不是每次都用 level.dat_new)
- player/*.dat 现在会使用类似 level.dat 的方式保存(包括 level.dat_old 文件)
方块存储
Sections
元素中的 BlockStates
不再包含延伸多个 64 比特字段的值。如果每个方块的比特数不是 2 的幂(例如单个 64 比特值不能填充完整的方块状态)部分比特不会被使用。
例如,如果单个方块状态占用 5 比特,每个 64 比特字段的高位 5 比特将不会被使用。这也意味着存储空间的轻微增加(以 5 比特为例,从 320 到 342 的 64 比特字段)。
命令
ATTRIBUTE
给单个实体添加修饰符属性。可能的格式和参数:
attribute <target> <attribute> get [<scale>]
- 获取属性的所有值
attribute <target> <attribute> base set <value>
- 设定基准值
attribute <target> <attribute> base get [<scale>]
- 获取基准值
attribute <target> <attribute> modifier add <uuid> <name> <value> add|multiply|multiply_base
- 添加修饰符(修饰符已存在时无效)
attribute <target> <attribute> modifier remove <uuid>
- 移除修饰符
attribute <target> <attribute> modifier value get <uuid> [<scale>]
- 获取修饰符的值
target
- 单个实体(注:只有玩家、盔甲架和生物有属性)
attribute
- 属性名(如 minecraft:generic.max_health
)
name
- 字符串(包裹引号可选),修饰符的人类可读的描述性名称
value
- 浮点值(注:特定属性在最终值上存在限制,所以你的改动可能不可察觉)
聊天组件
悬停事件参数
style.hoverEvent
现在具有 contents
参数,其内容与如下类型有关:
- 对于
show_text
- 聊天组件
- 对于
show_item
- 物品 ID 或者具有 id
、count
和 tag
字段的对象(最后那个是序列化的 NBT)
- 对于
show_entity
- 具有 id
(UUID)、name
(聊天组件)和 type
(实体类型资源地址)字段的对象
- 旧版
value
参数现在被标记废弃(但仍然支持)
颜色
color
属性现在可以包含前缀 #
的 RGB 值。例如 #55ff55
可以同样输出绿色。
自定义字体
聊天组件样式现在支持 font
属性,它是一个资源包中的字体资源地址。minecraft:default
是特殊的。
字体
Force Unicode
选项现在会在普通和备选字体(称为 uniform.json
)间切换 - 无需重载
20W17A 错误修复
- MC-1601 - Breaking a Furnace will not give you the experience for the smelted things inside
- MC-5410 - In creative mode, flying down is stopped when brushing up against ladders or vines.
- MC-31032 - Using only one empty map doesn’t increase minecraft.used:minecraft.map
- MC-46417 - Sprint particles are generated in spectator mode
- MC-56373 - Selector and score text components don’t work on hoverEvents
- MC-94535 - Flying and holding CTRL really close to the ground, emits walking particles
- MC-96319 - Mob pathfinding AI does not regard some blocks as obstructions and is unable to pathfind on top of them
- MC-100195 - Player retains 1-block hitbox if entering a minecart/boat while swimming or when flying with elytra or a riptide trident
- MC-114544 - Kicked by “Flying is not enabled on this server” while sleeping
- MC-120572 - /recipe crashes the game
- MC-126244 - ‘/locate’, explorer maps, and treasure maps can cause extreme TPS lag, even leading to a complete server freeze if structure generation is turned off
- MC-149704 - Sneaking / crouching twice makes player sprint
- MC-169514 - Tamed parrots cannot be renamed unless they are flying
- MC-171561 - Only one player can access shulker box at a time
- MC-174359 - Piglins prefer using an unenchanted gold item instead of an enchanted gold item
- MC-175113 - Rain prevents entities from burning in fire
- MC-175186 - Respawning doesn’t check if the “respawn block” is the correct one for the dimension
- MC-175998 - Striders are moving very fast between two blocks or when diagonally running into blocks
- MC-176029 - Right clicking a lodestone with a stack of compasses converts the whole stack
- MC-176060 - Recipe book doesn’t load the entire empty map recipe anymore
- MC-176104 - Dropped compasses always point up
- MC-176116 - Saddle texture on Strider is backwards
- MC-176521 - Pressing space while the recipe book button is highlighted in crafting interfaces doesn’t toggle the recipe book
- MC-177346 - Compass in a mob’s hand does not point to correct location if mob turns
- MC-177776 - Netherite ingots are not sorted properly with other ingots
- MC-177780 - Shulkers cannot be opened while playing closing animation anymore
- MC-177796 - Blackstone walls are in the “Building Blocks” category instead of “decoration Blocks” category, unlike all other walls
- MC-177862 - Polished blackstone button and pressure plate in incorrect area in creative inventory
- MC-177885 - Invisible Horses show patterns
- MC-177997 - Baby zoglins still use the same attack damage as an adult
- MC-178086 - Flying close to the ground with soul speed over soul blocks speeds up player and generates soul particles
- MC-178093 - Piglins with full inventories won’t pick up gold ingots to barter even though you can still right-click to barter with them
- MC-178259 - Game crashes when an iron golem with the attack damage attribute set to 0.5d
- MC-178316 - Dispenser plays “dispensed item” sound when attempting to charge a full respawn anchor instead of “dispenser fails”
- MC-178630 - TNT eyeheight changed
- MC-178797 - Barrier blocks generate in bastion remnant
- MC-178955 - Badlands are viewed as a mountainous biome for Ruined Portals
- MC-179542 - Basalt Delta Blocks Override Nether Bricks in Fortresses