Woah, another snapshot day of the Wednesday variant! Today we are releasing 24w10a, featuring new Wolf Variants, some new Data Pack features, and lots of bug fixes.
酷欸,又是一个选在周三的快照日!我们发布了 24w10a,引入了全新种类的狼,资源包的一些新特性,还有大量漏洞修复。
Happy mining!
祝您挖矿愉快!
NEW FEATURES 新特性
Added variants of Wolves
加入了狼的各个种类
WOLF VARIANTS 狼的变种
New Wolf variants have been added
新加入了各个种类的狼
The variant is determined by the biome they spawn in
具体种类取决于生成的群系
Pale Wolf - The familiar Wolf variant that now spawns in the Taiga biome, with a default pack size of 4
苍狼 - 这一曾经最为常见的种类现在会在针叶林生物群系生成,以 4 只为一群
Woods Wolf - A variant that spawns in the Forest biome. This will be the dominant Wolf variant that you will be able to find in the Overworld, since the Forest biome is very common
森林狼 - 在森林生物群系生成,它将会是在主世界里最容易找到的种类,毕竟森林也是分布很广的生物群系
Ashen Wolf - A variant that spawns in the Snowy Taiga biome
灰狼 - 在积雪针叶林生物群系生成
Black Wolf - A variant that spawns in the Old Growth Pine Taiga biome, in smaller packs of 2 to 4
黑狼 - 在原始松木针叶林生物群系生成,以 2 至 4 只为小规模的一群
Chestnut Wolf - A variant that spawns in the Old Growth Spruce Taiga biome, in smaller packs of 2 to 4
栗色狼 - 在原始云杉针叶林生物群系生成,以 2 至 4 只为小规模的一群
Rusty Wolf - A variant that spawns in a new location for wolves - the Sparse Jungle biome, in smaller packs of 2 to 4
赭红狼 - 在全新地点稀疏丛林生成,以 2 至 4 只为小规模的一群
Spotted Wolf - A variant that spawns in a new location for wolves - the Savanna Plateau biome, in larger packs of 4 to 8
斑点狼 - 在全新地点热带高原生物群系生成,以 4 至 8 只为大规模的一群
Striped Wolf - A variant that spawns in a new location for wolves, the Wooded Badlands biome, in larger packs of 4 to 8
条纹狼 - 在全新地点繁茂恶地生成,以 4 至 8 只为大规模的一群
Snowy Wolf - A variant that spawns in the Grove biome. A rare type, that always walks alone
雪狼 - 在雪林生物群系生成。是一种稀有且喜独行的类型
Adjusted spawning conditions for Wolves, allowing them to spawn on Coarse Dirt and Podzol blocks
调整了狼的生成条件,现在也可以在砂土和灰化土上生成了
CHANGES 更改
Adjusted passive mobs spawning in Grove biome to only include Rabbits, Foxes and Wolves
雪林生物群系可生成的友好生物现调整为兔子、狐狸和狼
Button tooltips will no longer appear when hovering outside the containing element
鼠标悬停在包含元素之外时,按钮的工具提示不再出现
TECHNICAL CHANGES 技术性更改
The Data Pack version is now 34
数据包版本现在为 34
DATA PACK VERSION 34 数据包版本 34 更新内容
Recipe results can now specify component data
配方结果现在可指定组件数据
Added new entity predicate field slots, for matching item slots
新增 slots 实体谓词字段,用于匹配物品槽位
Added slot names for ranges, like container.*
新增槽位名用于指定槽位区间,例如 container.*
Added execute if|unless items to check and count items
新增 execute if|unless items 用于检查或计数物品
Banner Patterns are now data-driven
旗帜图案现在由数据驱动
Changes to Item Stack Component formats
对物品堆叠组件格式做出调整
Player Head blocks now store a custom_name tag, which will be copied to and from the item form when broken or placed
For now, the count field on Item Stacks is always stored again, even if 1
物品堆叠的 count 字段又会保持存储了,即使值为 1
If the field is missing in data, will still fall back to 1
若数据中不包含该字段,则会回落到 1
RECIPES 配方
Recipe types crafting_shaped, crafting_shapeless, stonecutting and smithing_transform now accept components for the result item stack
配方类型 crafting_shaped、crafting_shapeless、stonecutting 和 smithing_transform 现支持附加 components 到 result 的物品堆叠
The result field for recipe types smelting, blasting, smoking and campfire_cooking is now an item stack format without a count, which means you'll need to specify an object with an id field
配方类型 smelting、blasting、smoking 和 campfire_cooking 的 result 字段现在为不包含数量的物品堆叠,你需要额外指定 id 字段
This result now also accepts components data
result 现接受 components 数据
PREDICATES 谓词
SLOTS ENTITY SUB-PREDICATE SLOTS 物品子谓词
New entity field slots allows to check single or multiple slots on any entity
新增 slots 实体字段,用于测试物品的单个或多个槽位
The field contains a map of slot names (same as ones used in item commands) to item predicate
该字段包含槽位名(与 /item 命令格式相同)到物品的映射
For slot ranges, only one slot needs to match for whole entry to pass
对于槽位区间,只要有一个槽位通过,谓词便会通过
Example:
示例:
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"slots": {
"container.*": {
"items": "dirt"
}
}
}
}
复制代码
SLOT NAMES 槽位名
Slot names (used in item commands and slots entity predicates) now include slot ranges
在 /item 命令和 slots 实体谓词中使用的槽位名现可使用槽位区间
Unless specified, existing commands can still only work on single slots
除非被指定,现有的命令仍只会对单个槽位生效
New slot names:
新加入的槽位名有:
container.* - contains container.0 to container.53
container.* - 包括 container.0 到 container.53
hotbar.* - contains hotbar.0 to hotbar.8
hotbar.* - 包括 hotbar.0 到 hotbar.8
inventory.* - contains inventory.0 to inventory.26
inventory.* - 包括 inventory.0 到 inventory.26
enderchest.* - contains enderchest.0 to enderchest.26
enderchest.* - 包括 enderchest.0 到 enderchest.26
villager.* - contains villager.0 to villager.7
villager.* - 包括 villager.0 到 villager.7
horse.* - contains horse.0 to horse.14
horse.* - 包括 horse.0 到 horse.14
weapon.* - contains weapon.mainhand and weapon.offhand
minecraft:attribute_modifiers can be defined as a direct list of modifiers (e.g. attribute_modifiers=[{type:'generic.scale',uuid:[1,2,3,4],name:'Big!',amount:1.0,operation:'add_multiplied_base'}])
MC-268864 - An item modifier with a duplicate item stack component prevents the entire data pack from (re)loading, rather than ignoring that one specific item modifier