version-image-link: https://image.bugjump.net/news/version/26.3/26.3-snapshot-3.jpg server-jar: https://piston-data.mojang.com/v1/objects/6cd1e711f62dc45497df6f390a9e83ba6191be41/server.jar
坐垫 物品麦秆床110.091.0posteffect 命令[!DEVNOTE] 这使得资源包中的自定义着色器可以被完整使用,但请注意着色器仍可能随时更改,相关功能(命令、后效果或着色器)未来可能被重新设计
用法示例:
/posteffect add <player> <posteffect> — 将后效果添加到玩家(若未存在)/posteffect clear <player> — 从玩家处移除所有后效果(若存在)/posteffect list <target> — 列出应用于玩家的所有后效果(若存在)/posteffect remove <player> <posteffect> — 从玩家处移除指定后效果(若存在)place 子命令的更改feature 子命令现在允许内联定义要放置的地物minecraft:gameplay/bed_ruleexplodes 已重命名为 destroy_on_usedestroy_on_leave 可选布尔值,若为 true,离开床后该床会被摧毁;若省略,则默认为 falseminecraft:gameplay/straw_bed_ruleminecraft:gameplay/bed_rule 格式相同,但用于麦秆床的规则minecraft:block_transformerupdate_from_neighbors,用于控制被转换的方块是否应根据邻居方块发生更新
trueminecraft:compostablelayers — 命名空间引用,指向 minecraft:number_provider 注册表中的元素以下项目已添加到此前为空的 minecraft:predicate:
minecraft:tool/can_silk_touchminecraft:tool/can_shearminecraft:potion_contents 数据组件谓词已更改,允许匹配特定的药水效果此前的谓词格式使用药水类型列表,新的格式允许更精细的匹配potions — 要匹配的药水类型列表或药水标签effects — 要匹配的 mob_effects 谓词的集合谓词,其格式为:contains — 要匹配的一组 mob_effects 谓词列表;count — 匹配特定数量的 mob effect 谓词,格式与 minecraft:effects 实体子谓词相同:
test — 要匹配的 mob_effects 谓词;count — 所需匹配数,或使用 min 与 max 指定匹配数量范围;size — 要求 mob effects 列表具有特定大小,或使用 min 与 max 指定范围mob_effects 谓词的格式为将效果类型映射到该效果的属性,所有字段均为可选,只有提供的字段才用于匹配(示例和具体 JSON 格式保持原样)minecraft:number_provider 注册表minecraft:compostable/low:如果 minecraft:block_state 上下文参数为一个空的堆肥桶,则返回 1,否则有 30% 概率返回 1minecraft:compostable/low_medium:若为空堆肥桶返回 1,否则有 50% 概率返回 1minecraft:compostable/medium:若为空堆肥桶返回 1,否则有 65% 概率返回 1minecraft:compostable/medium_high:若为空堆肥桶返回 1,否则有 85% 概率返回 1minecraft:compostable/always_add_one:始终返回 1minecraft:number_dispatcher 类型defaultcases — 按顺序尝试的条件列表,每个条件包含:condition — 一个 minecraft:predicate;number_provider — 在条件满足时执行的 minecraft:number_provider;default — 可选的 minecraft:number_provider,若省略则默认为常量 0minecraft:conditional_value 类型on_true 的值,否则返回 on_false 的值conditions — 一个 minecraft:predicate;on_true — 条件满足时执行的 minecraft:number_provider;on_false — 可选的 minecraft:number_provider(省略时默认为常量 0)minecraft:weighted_listdistribution — 对象列表,每项包含:data — 一个 minecraft:number_provider;weight — 正整数,权重minecraft:brewing 类型input — 酿造基底,必须包含 item 字段,可选使用 minecraft:potion_contents 数据组件谓词的 potion_contents 字段reagent — 酿造原料,必须包含 item 字段,可选使用 minecraft:potion_contents 数据组件谓词的 potion_contents 字段output — 物品堆叠,合成结果以下是原版配方示例:
{
"type": "minecraft:brewing",
"input": {
"item": "minecraft:potion",
"potion_contents": {
"potion": "minecraft:water"
}
},
"output": {
"components": {
"minecraft:potion_contents": {
"potion": "minecraft:awkward"
}
},
"id": "minecraft:potion"
},
"reagent": {
"item": "minecraft:nether_wart"
}
}
三个槽位都可以放置任意物品,例如:
{
"type": "minecraft:brewing",
"input": { "item": "minecraft:bucket" },
"output": { "id": "minecraft:sulfur_cube_bucket" },
"reagent": { "item": "minecraft:potent_sulfur" }
}
minecraft:coral_mushroomminecraft:kelpminecraft:seagrassminecraft:sea_pickle[!DEVNOTE] 这些特性类型不再需要,因为其先前由硬编码实现的特性现在可用其它更好配置的功能来实现
minecraft:coral_claw 与 minecraft:coral_tree:新增字段 feature,用于在每个目标方块位置放置指定的地物minecraft:cuboid 用于在长方体形状中重复放置特性新增字段:
xz_size:1 到 16 的 Int 提供器,表示长方体在 x 与 z 轴方向的大小;y_size:1 到 16 的 Int 提供器,表示长方体在 y 轴方向的大小;include_interior:可选布尔(默认 true),是否放置长方体内部方块;include_edges:可选布尔(默认 true),是否放置长方体边缘方块;将其设为 false 会生成更圆润的长方体外观
新增 minecraft:random_chance,用于在随机概率下决定是否放置特性
字段格式:
chance:0 到 1 的浮点数,表示放置特性的概率更新了 minecraft:copy_properties_provider:将字段 source_block_state_provider 重命名为 source
新增 minecraft:random_block_provider:为随机选择的方块返回默认方块状态
blocks:方块 ID 列表或带 # 的方块标签,指定可随机选择的方块集合修改了 minecraft:rotated_block_provider:现在可作用于任何带有 axis 或 facing 属性的方块
state 现为方块状态提供器;direction 用于指定方向,若省略则随机选择方向这些谓词用于 ore 地物(targets[].target)以及 rule 结构处理器(rules[].input_predicate 与 rules[].location_predicate)
minecraft:any_of:检查一组 Rule Tests,若其中任一项对同一方块返回 true 则条件满足
rules 为 Rule Tests 列表minecraft:not:检查某个 Rule Test 对指定方块是否返回 false
rule 为要测试的 Rule Test#sculk_growth_inhibitors:包含在 8x2x8 区域内超过 2 个该方块时可阻止幽匿块(sculk)扩展的方块集合#cats_can_sit_on:猫可随机坐在其上的方块#cats_can_lie_on:猫可随机躺在其上的方块#speeds_up_zombie_villager_curing:放置在附近可加速僵尸村民治愈的方块#villagers_can_sleep_on_bed:村民可在其上睡觉的床方块#villager_babies_can_jump_on_bed:村民婴儿可跳到其上的床方块#height_specific_ore_replaceables:包含所有当在 Y>0 时会被矿团地物替换为石头矿团、在 Y<8 时替换为深板岩矿团的方块#dowses_campfires 重命名为 #douses_campfires#abandoned_camp:适用于所有变体的废弃营地结构block/straw_bed.pngblock/straw_bed_particle.pngblock.straw_bed.breakblock.straw_bed.break_leaveblock.straw_bed.stepblock.straw_bed.placeblock.straw_bed.hitblock.straw_bed.fallblock.poplar_leaves.breakblock.poplar_leaves.fallblock.poplar_leaves.placeblock.poplar_leaves.stepblock.poplar_leaves.hitblock.red_shrub.breakblock.red_shrub.placeentity.cushion.breakentity.cushion.placeentity.cushion.get_upentity.cushion.sitshade_direction_override:可接受值为基准方向(down、up、north、south、west、east),设置后无视面朝向覆盖元素的方向阴影表现shade 字段;要实现此前 shade: false 的行为,请使用 shade_direction_override: "up"minecraft:end_of_frame 后效果posteffect 命令启用的那些效果posteffect 命令控制Team 标签仅存在于生物实体上/gamerule 仍返回成功Silent 标签仍未使某些实体完全静音items/light.png 在游戏中从未出现,但被其他游戏资源引用/schedule clear 的 function 参数需要命名空间tab_inventory.png 中有错误着色的像素/random 指定的范围过大时,失败信息中显示的最大值不正确/fillbiome 不会报错#convertable_to_mud 方块标签将 "convertible" 错拼为 "convertable"/time 在未做更改时也返回成功ActiveProfiler 的日志消息中有拼写错误:"aprox"SoundEngine 的日志消息中有拼写错误:"disapeared"GameRenderer 的日志消息拼写错误:"coudln't"chat_restriction.disabled_by_profile.action 字符串大小写不当death.attack.sulfurCubeHot.item 显示为原始翻译键campsite_flower_forest_1 废弃营地结构下方出现橙色羊毛条纹tent_windswept_forest_8 废弃营地结构包含一堆掉落的骨粉tent_flower_forest_4 废弃营地结构包含一根掉落的白桦原木rule_based_state_provider 的 block_transformer 组件的物品会使玩家无法进入该世界#dowses_campfiresblock_transformer 组件random_neighbor_spread 特性的字段拼写错误为 "xy_offset"can_break 能力