开启辅助访问     
收藏本站

站内搜索

搜索

Minecraft(我的世界)苦力怕论坛

[版本发布] Minecraft Java版 26.3 Pre-Release 1 发布

 发表于 3 小时前|显示全部楼层|阅读模式 IP:香港
|Minecraft Java 版是指 Windows、Mac OS 与 Linux 平台上,使用 Java 语言开发的 Minecraft 版本。
|预发布版是 Minecraft Java 版的测试机制,如果该版本作为正式版发布,那么预发布版的游戏文件将与启动器推送的正式版完全相同。
|然而,预发布版主要用于服主和 Mod 制作者的预先体验,如果发现重大漏洞,该预发布版会被新的预发布版代替。因此建议普通玩家持观望态度
|Minecraft Java 版 26.3 仍未发布,26.3-pre1 为其第 1 个预发布版。
|本文内容按照 CC BY-NC-SA 4.0 协议进行授权,转载本帖时须注明原作者以及本帖地址



NEWS


Minecraft 26.3 Pre-Release 1

Minecraft 26.3 Pre-Release 1

A Minecraft Java Pre-Release

Minecraft Java版 预发布版


The first pre-release for 26.3 is here! There are technical changes, but we are now mainly fixing bugs, making improvements and putting on the final touches ahead of release.
26.3的首个预发布版来了!有一些技术性更改,但我们现在主要是在修复漏洞、进行改进,并在发布前做最后的润色。

Happy mining!
挖矿快乐!


CHANGES
更改


UI
UI

  • On macOS, Exclusive Fullscreen is now available again
  • 在 macOS 系统上,独占全屏模式现已再次可用
  • On macOS, added a "Menu/Dock Visibility" option in Video Settings, which controls whether the macOS Menu bar and Dock can be revealed by moving the mouse to the edge of the screen while in fullscreen
  • 在 macOS 系统上,视频设置里加入了“菜单/程序坞可见性”选项,用于控制全屏时将鼠标移到屏幕边缘时是否显示 macOS 菜单栏和程序坞
  • The cursor is now confined to the window while Exclusive Fullscreen is active
  • 启用独占全屏模式时,光标现在被限制在窗口内


TECHNICAL CHANGES
技术性更改

  • The Data Pack version is now 119.0
  • 将数据包版本号更改为 119.0
  • The Resource Pack version is now 97.1
  • 将资源包版本号更改为 97.1


DATA PACK VERSION 119.0
数据包版本 119.0

  • The minecraft:number_provider and minecraft:number_provider_type registries have been split into separate registries for integer calculations (minecraft:context_int_provider, minecraft:context_int_provider_type) and float calculations (minecraft:context_float_provider, minecraft:context_float_provider_type)
  • minecraft:number_providerminecraft:number_provider_type 注册表已拆分为用于整数计算 (minecraft:context_int_provider, minecraft:context_int_provider_type) 和浮点数计算 (minecraft:context_float_provider, minecraft:context_float_provider_type)


NUMBER PROVIDERS
数值提供器

Number provider types and values have been split into two separate registries: minecraft:context_int_provider and minecraft:context_float_provider to avoid accidental loss of precision and range due to mixing of float and integer operations
数值提供器类型和值已被拆分为两个独立的注册表:minecraft:context_int_providerminecraft:context_float_provider 以避免由于混合浮点数和整数操作而意外丢失精度和范围

Note: those new types should not be confused with already existing minecraft:int_provider_type and minecraft:float_provider_type, which are context-free providers, used mostly for world generation
注意:这些新类型不应与已经存在的 minecraft:int_provider_typeminecraft:float_provider_type 混淆,它们是上下文无关的提供器,主要用于世界生成

Following number provider types have been split into integer and float variants:
以下数值提供器类型已被拆分为整数型和浮点型:

  • minecraft:constant
  • minecraft:constant
  • minecraft:uniform
  • minecraft:uniform
  • minecraft:storage
  • minecraft:storage
  • minecraft:sum (renamed to minecraft:add)
  • minecraft:sum(重命名为 minecraft:add
  • minecraft:product (renamed to minecraft:mul)
  • minecraft:product (重命名为 minecraft:mul)
  • minecraft:minimum (renamed to minecraft:min)
  • minecraft:minimum(重命名为minecraft:min
  • minecraft:maximum (renamed to minecraft:max)
  • minecraft:maximum (重命名为 minecraft:max)
  • minecraft:average (renamed to minecraft:avg)
  • minecraft:average (重命名为 minecraft:avg)
  • minecraft:weighted_list
  • minecraft:weighted_list
  • minecraft:conditional
  • minecraft:conditional
  • minecraft:number_dispatcher
  • minecraft:number_dispatcher
  • minecraft:environment_attribute
  • minecraft:environment_attribute

Following number providers types are now only available in integer variant:
以下数值提供器类型现在仅存在整数型:

  • minecraft:binomial
  • minecraft:binomial
  • minecraft:score
  • minecraft:score

Following number providers types are now only available in float variant:
以下数值提供器类型现在仅存在浮点型:

  • minecraft:enchantment_level
  • minecraft:enchantment_level

Following vanilla number providers have been migrated to minecraft:context_int_provider registry:
以下原版数值提供器已迁移至 minecraft:context_int_provider 注册表:

  • minecraft:compostable/low
  • minecraft:compostable/low
  • minecraft:compostable/low_medium
  • minecraft:compostable/low_medium
  • minecraft:compostable/medium
  • minecraft:compostable/medium
  • minecraft:compostable/medium_high
  • minecraft:compostable/medium_high
  • minecraft:compostable/always_add_one
  • minecraft:compostable/always_add_one
  • minecraft:cooking/time_bamboo
  • minecraft:cooking/time_bamboo
  • minecraft:cooking/time_wool_slabs
  • minecraft:cooking/time_wool_slabs
  • minecraft:cooking/time_wool_carpets
  • minecraft:cooking/time_wool_carpets
  • minecraft:cooking/time_dry_plants
  • minecraft:cooking/time_dry_plants
  • minecraft:cooking/time_wood_items_extra_small
  • minecraft:cooking/time_wood_items_extra_small
  • minecraft:cooking/time_wool
  • minecraft:cooking/time_wool
  • minecraft:cooking/time_wood_slabs
  • minecraft:cooking/time_wood_slabs
  • minecraft:cooking/time_wood_items_large
  • minecraft:cooking/time_wood_items_large
  • minecraft:cooking/time_wood_items_small
  • minecraft:cooking/time_wood_items_small
  • minecraft:cooking/time_roots
  • minecraft:cooking/time_roots
  • minecraft:cooking/time_wood_blocks
  • minecraft:cooking/time_wood_blocks
  • minecraft:cooking/time_hanging_signs
  • minecraft:cooking/time_hanging_signs
  • minecraft:cooking/time_boats
  • minecraft:cooking/time_boats
  • minecraft:cooking/time_coal
  • minecraft:cooking/time_coal
  • minecraft:cooking/time_blaze_rod
  • minecraft:cooking/time_blaze_rod
  • minecraft:cooking/time_dried_kelp_block
  • minecraft:cooking/time_dried_kelp_block
  • minecraft:cooking/time_coal_block
  • minecraft:cooking/time_coal_block
  • minecraft:cooking/time_lava_bucket
  • minecraft:cooking/time_lava_bucket
  • minecraft:brewing/uses_default
  • minecraft:brewing/uses_default

Following vanilla number providers have been migrated to minecraft:context_float_provider registry:
以下原版数值提供器已迁移至 minecraft:context_float_provider 注册表:

  • minecraft:cooking/speed_default
  • minecraft:cooking/speed_default
  • minecraft:cooking/normal_speed_multiplier
  • minecraft:cooking/normal_speed_multiplier
  • minecraft:cooking/fast_speed_multiplier
  • minecraft:cooking/fast_speed_multiplier
  • minecraft:brewing/speed_default
  • minecraft:brewing/speed_default

Following vanilla number providers have been removed:
移除了以下原版数值提供器:

  • minecraft:cooking/normal_burn_time_multiplier (replaced by minecraft:cooking/normal_burn_time_reduction_factor)
  • minecraft:cooking/normal_burn_time_multiplier (被 minecraft:cooking/normal_burn_time_reduction_factor 替代)
  • minecraft:cooking/fast_burn_time_multiplier (replaced by minecraft:cooking/fast_burn_time_reduction_factor)
  • minecraft:cooking/fast_burn_time_multiplier (被 minecraft:cooking/fast_burn_time_reduction_factor 替代)


INTEGER NUMBER PROVIDERS
整数数值提供器

  • Added the minecraft:context_int_provider registry
  • 加入了 minecraft:context_int_provider 注册表
  • All calculations are performed using 32-bit integers
  • 所有计算均使用32位整数执行
  • Result of calculations that provide invalid values (like division by zero) is undefined
  • 产生无效值(如除以零)的计算结果是未定义的
  • Format:
  • 格式:
    • type - a namespaced ID from minecraft:context_int_provider_type registry
    • type - minecraft:context_int_provider_type 注册表的一个命名空间ID
    • <type-specific fields>
    • <type-specific fields>



ADDED MINECRAFT:ABS
加入了 MINECRAFT:ABS

  • Returns the absolute value of input
  • 返回 input 的绝对值
  • If the final result does not fit inside 32-bit integer, calculation will be canceled
  • 如果最终结果无法容纳在32位整数内,计算将被取消
  • Fields:
  • 字段:
    • input - an inline value or a namespaced ID of a minecraft:context_int_provider type
    • input - 一个内联值或 minecraft:context_int_provider 类型的命名空间ID



ADDED MINECRAFT:AVG
加入了 MINECRAFT:AVG

  • Evaluates multiple integer providers and returns arithmetic mean of results
  • 计算多个整数提供器的结果并返回其算术平均值
  • Division rounds towards 0
  • 除法向 0 舍入
  • Fields:
  • 字段:
    • inputs - an inline value, a single namespaced ID, a list of namespaced IDs, a list of inline values, or a hash-prefixed tag ID of a minecraft:context_int_provider type
    • inputs - 一个内联值、单个命名空间ID、命名空间ID列表、内联值列表,或 minecraft:context_int_provider 以 # 为前缀的标签ID
      • Requires at least one value
      • 至少需要一个值




ADDED MINECRAFT:BINOMIAL
加入了 MINECRAFT:BINOMIAL

  • Makes n random coin flips with probability of succeeding equal to p, then returns number of successes
  • 进行 n 次随机抛硬币,每次成功的概率为 p,然后返回成功次数
  • Fields:
  • 字段:
    • n - number of coin flips, an inline value or a namespaced ID of a minecraft:context_int_provider type
    • n - 硬币翻转次数,一个内联值或 minecraft:context_int_provider 类型的命名空间ID
    • p - probability of a single coin flip succeeding ([0.0, 1.0]), an inline value or a namespaced ID of a minecraft:context_float_provider type
    • p - 单次硬币翻转成功的概率([0.0, 1.0]),一个内联值或 minecraft:context_float_provider 类型的命名空间 ID



ADDED MINECRAFT:CONDITIONAL
加入了 MINECRAFT:CONDITIONAL

  • Returns the value from on_true if its condition is fulfilled or on_false if not
  • 如果其条件被满足,则返回 on_true 的值,否则返回 on_false 的值
  • Fields:
  • 字段:
    • condition - an inline value or a namespaced ID of a minecraft:predicate type
    • condition - 一个内联值或 minecraft:predicate 类型的命名空间ID
    • on_true - an inline value or a namespaced ID of a minecraft:context_int_provider type which is executed if its condition is fulfilled
    • on_true - 一个内联值或 minecraft:context_int_provider 类型的命名空间ID,在其条件满足时执行
    • on_false - an optional inline value or a namespaced ID of a minecraft:context_int_provider type
    • on_false - 一个可选内联值,或 minecraft:context_int_provider 类型的命名空间ID
      • Defaults to a constant 0 if omitted
      • 若为空,则默认为常量 0




ADDED MINECRAFT:CONSTANT
加入了 MINECRAFT:CONSTANT

  • Returns a constant value
  • 返回一个常量值
  • Fields:
  • 字段:
    • value - an integer
    • value - 一个整数
  • Can be also written inline as a plain number (foo: 1 is equivalent to foo: {type:"minecraft:constant",value:1})
  • 也可以内联写为纯数字 (foo: 1 等同于 foo: {type:"minecraft:constant",value:1})


ADDED MINECRAFT:SUB
加入了 MINECRAFT:SUB

  • Returns left minus right
  • 返回 left 减去 right
  • If the final result does not fit inside 32-bit integer, calculation will be canceled
  • 如果最终结果无法容纳在32位整数内,计算将被取消
  • Fields:
  • 字段:
    • left - an inline value or a namespaced ID of a minecraft:context_int_provider type
    • left - 一个内联值或 minecraft:context_int_provider 类型的命名空间 ID
    • right - an inline value or a namespaced ID of a minecraft:context_int_provider type
    • right - 一个内联值或 minecraft:context_int_provider 类型的命名空间ID



ADDED MINECRAFT:FROM_FLOAT
加入了 MINECRAFT:FROM_FLOAT

  • Evaluates a float provider and converts it to an integer value
  • 对浮点提供器求值并将其转换为整数
  • Noninteger values will be truncated (i.e. rounded towards zero)
  • 非整数将被截断(即向零取整)
  • Values that don't fit inside 32-bit integer (including NaN) are treated as errors and will cancel calculation
  • 无法输入32位整数的值(包括 NaN)会被视为错误并取消计算
  • Fields:
  • 字段:
    • input - an inline value or a namespaced ID of a minecraft:context_float_provider type
    • input - 一个内联值或命名空间ID,或 minecraft:context_float_provider 类型的命名空间 ID



ADDED MINECRAFT:MAX
加入了 MINECRAFT:MAX

  • Evaluates multiple integer providers and returns the largest of results
  • 对多个整数提供器进行求值,并返回其中的最大值
  • Fields:
  • 字段:
    • inputs - an inline value, a single namespaced ID, a list of namespaced IDs, a list of inline values, or a hash-prefixed tag ID of a minecraft:context_int_provider type
    • inputs - 一个内联值、单个命名空间ID、命名空间ID列表、内联值列表,或 minecraft:context_int_provider 类型的以 # 为前缀的标签ID
      • Requires at least one value
      • 至少需要一个值




ADDED MINECRAFT:MIN
加入了 MINECRAFT:MIN

  • Evaluates multiple integer providers and returns the smallest of results
  • 计算多个整数提供器并返回最小结果
  • Fields:
  • 字段:
    • inputs - an inline value, a single namespaced ID, a list of namespaced IDs, a list of inline values, or a hash-prefixed tag ID of a minecraft:context_int_provider type
    • inputs - 一个内联值、单个命名空间ID、命名空间ID列表、内联值列表,或 minecraft:context_int_provider 类型的以 # 为前缀的标签ID
      • Requires at least one value
      • 至少需要一个值




ADDED MINECRAFT:MOD
加入了 MINECRAFT:MOD

  • Returns the modulus of left by right
  • 返回 leftright 取模的结果
  • Uses truncated integer division (rounds towards zero)
  • 使用截断整数除法(向零舍入)
  • Division by zero is treated as an error and will cancel calculation
  • 除以零被视为错误,计算将被取消
  • Fields:
  • 字段:
    • left - an inline value or a namespaced ID of a minecraft:context_int_provider type
    • left - 一个内联值或 minecraft:context_int_provider 类型的命名空间ID
    • right - an inline value or a namespaced ID of a minecraft:context_int_provider type
    • right - 一个内联值或 minecraft:context_int_provider 类型的命名空间ID



ADDED MINECRAFT:FLOOR_MOD
加入了MINECRAFT:FLOOR_MOD

  • Returns the modulus of left by right
  • 返回 leftright 取模
  • Uses floored integer division (rounds towards negative infinity)
  • 使用向下取整除法(向负无穷大方向取整)
  • Division by zero is treated as an error and will cancel calculation
  • 除以零被视为错误,计算将被取消
  • Fields:
  • 字段:
    • left - an inline value or a namespaced ID of a minecraft:context_int_provider type
    • left - 一个内联值或 minecraft:context_int_provider 类型的命名空间ID
    • right - an inline value or a namespaced ID of a minecraft:context_int_provider type
    • right - 一个内联值或 minecraft:context_int_provider 类型的命名空间 ID



ADDED MINECRAFT:ENVIRONMENT_ATTRIBUTE
加入了 MINECRAFT:ENVIRONMENT_ATTRIBUTE

  • Fetches and provides the value of an Environment Attribute (minecraft:environment_attribute)
  • 获取并提供环境属性(minecraft:environment_attribute)的值
  • Fields
  • 字段
    • attribute - Environment Attribute ID to fetch (must be representable as an int)
    • attribute - 要获取的环境属性 ID(必须可表示为 int)



ADDED MINECRAFT:NEGATE
加入了 MINECRAFT:NEGATE

  • Returns the negation of input
  • 返回 input 的否定
  • If the final result does not fit inside 32-bit integer, calculation will be canceled
  • 如果最终结果超出32位整数范围,计算将被取消
  • Fields:
  • 字段:
    • input - an inline value or a namespaced ID of a minecraft:context_int_provider type
    • input - 一个内联值或 minecraft:context_int_provider 类型的命名空间 ID



ADDED MINECRAFT:NUMBER_DISPATCHER
加入了 MINECRAFT:NUMBER_DISPATCHER

  • Returns the first case which fulfills its condition or the default if none do
  • 返回第一个满足其条件的情况;若为空,则返回 default
  • Fields:
  • 字段:
    • cases - a list of cases in the order that the dispatcher will try to execute them
    • cases - 一个列表,按调度器将尝试执行它们的顺序排列
      • Fields:
      • 字段:
        • condition - an inline value or a namespaced ID of a minecraft:predicate type
        • condition - 一个内联值或 minecraft:predicate 类型的命名空间ID
        • value - an inline value or a namespaced ID of a minecraft:context_int_provider type which is executed if the condition is fulfilled
        • value - 一个内联值或 minecraft:context_int_provider 类型的命名空间ID,在其条件满足时执行

    • default - an optional inline value or a namespaced ID of a minecraft:context_int_provider type
    • default - 一个可选的内联值或 minecraft:context_int_provider 类型的命名空间ID
      • Defaults to a constant 0 if omitted
      • 若为空,则默认为常量 0




ADDED MINECRAFT:POW
加入了 MINECRAFT:POW

  • Returns base to the power of exponent
  • 返回 baseexponent 次幂
  • If the exponent is negative, calculation will be canceled
  • 如果指数为负数,计算将被取消
  • If both the base and the exponent are zero, calculation will be canceled
  • 如果底数和指数都为零,计算将被取消
  • If the final result does not fit inside 32-bit integer, calculation will be canceled
  • 如果最终结果不适合32位整数,计算将被取消
  • Fields:
  • 字段:
    • base - an inline value or a namespaced ID of a minecraft:context_int_provider type
    • base - 一个内联值或 minecraft:context_int_provider 类型的命名空间ID
    • exponent - an inline value or a namespaced ID of a minecraft:context_int_provider type
    • exponent - 一个内联值或 minecraft:context_int_provider 类型的命名空间ID



ADDED MINECRAFT:MUL
加入了 MINECRAFT:MUL

  • Evaluates multiple integer providers and returns product of results
  • 评估多个整数提供器并返回结果的乘积
  • If the final result does not fit inside 32-bit integer, calculation will be canceled
  • 如果最终结果超出32位整数范围,计算将被取消
  • Fields:
  • 字段:
    • inputs - an inline value, a single namespaced ID, a list of namespaced IDs, a list of inline values, or a hash-prefixed tag ID of a minecraft:context_int_provider type
    • inputs - 一个内联值、单个命名空间ID、命名空间ID列表、内联值列表,或 minecraft:context_int_provider 类型的以 # 为前缀的标签ID
      • Requires at least one value
      • 至少需要一个值




ADDED MINECRAFT:DIV
加入了 MINECRAFT:DIV

  • Returns left divided by right
  • 返回 left 除以 right
  • Uses truncated integer division (rounds towards zero)
  • 使用截断整数除法(向零取整)
  • Division by zero is treated as an error and will cancel calculation
  • 除以零被视为错误,计算将被取消
  • Fields:
  • 字段:
    • left - an inline value or a namespaced ID of a minecraft:context_int_provider type
    • left - 一个内联值或 minecraft:context_int_provider 类型的命名空间ID
    • right - an inline value or a namespaced ID of a minecraft:context_int_provider type
    • right - 一个内联值或 minecraft:context_int_provider 类型的命名空间ID



ADDED MINECRAFT:FLOOR_DIV
加入了 MINECRAFT:FLOOR_DIV

  • Returns left divided by right
  • 返回 left 除以 right
  • Uses floored integer division (rounds towards negative infinity)
  • 使用向下取整的整数除法(向负无穷方向舍入)
  • Division by zero is treated as an error and will cancel calculation
  • 除以零将被视为错误,计算将被取消
  • If the final result does not fit inside 32-bit integer, calculation will be canceled
  • 如果最终结果无法放入32位整数,计算将被取消
  • Fields:
  • 字段:
    • left - an inline value or a namespaced ID of a minecraft:context_int_provider type
    • left - 一个内联值或 minecraft:context_int_provider 类型的命名空间 ID
    • right - an inline value or a namespaced ID of a minecraft:context_int_provider type
    • right - 一个内联值或 minecraft:context_int_provider 类型的命名空间ID



ADDED MINECRAFT:SCORE
加入了 MINECRAFT:SCORE

  • Returns a score of the selected target
  • 返回所选目标的分数
  • If score is not present, provider returns value of fallback
  • 如果分数不存在,提供器会返回 fallback 的值
  • Fields:
  • 字段:
    • score - objective name
    • score - 目标名称
    • target - score holder (same format as in number provider version)
    • target - 分数持有者(格式与数值提供器版本相同)
    • fallback - an optional inline value or a namespaced ID of a minecraft:context_int_provider type, defaults to 0
    • fallback - 一个可选的值或 minecraft:context_int_provider 类型的命名空间 ID,默认为 0



ADDED MINECRAFT:STORAGE
加入了 MINECRAFT:STORAGE

  • Returns an integer value from a command storage
  • 从命令存储中返回一个整数值
  • If value is not present, is not a number or path returned multiple values, provider returns value of fallback
  • 如果分数不存在,不是数字或返回了多个值,提供器会返回 fallback 的值
  • Conversion of numeric NBT values that are not an integer is undefined
  • 将非整数的数值NBT值进行转换是未定义的
  • Fields:
  • 字段:
    • storage - a namespaced ID of a command storage
    • storage - 一个命令存储的命名空间ID
    • path - an NBT path
    • path - 一个NBT路径
    • fallback - an optional inline value or a namespaced ID of a minecraft:context_int_provider type, defaults to 0
    • fallback - 一个可选的内联值或 minecraft:context_int_provider 类型的命名空间 ID,默认为 0



ADDED MINECRAFT:ADD
加入了 MINECRAFT:ADD

  • Evaluates multiple integer providers and returns sum of results
  • 对多个整数提供器求值并返回结果总和
  • If the final result does not fit inside 32-bit integer, calculation will be canceled
  • 如果最终结果无法容纳在32位整数内,计算将被取消
  • Fields:
  • 字段:
    • inputs - an inline value, a single namespaced ID, a list of namespaced IDs, a list of inline values, or a hash-prefixed tag ID of a minecraft:context_int_provider type
    • inputs - 一个内联值、单个命名空间ID、命名空间ID列表、内联值列表,或 minecraft:context_int_provider 类型的以 # 为前缀的标签ID
      • Requires at least one value
      • 需要至少一个值




ADDED MINECRAFT:UNIFORM
加入了 MINECRAFT:UNIFORM

  • Picks a random integer from a closed range
  • 从闭区间内选取一个随机整数
  • Fields:
  • 字段:
    • min - minimum value (inclusive), an inline value or a namespaced ID of a minecraft:context_int_provider type
    • min - 最小值(包含),一个内联值或 minecraft:context_int_provider 类型的命名空间ID
    • max - maximum value (inclusive), an inline value or a namespaced ID of a minecraft:context_int_provider type
    • max - 最大值(包含),一个内联值或 minecraft:context_int_provider 类型的命名空间ID



ADDED MINECRAFT:WEIGHTED_LIST
加入了 MINECRAFT:WEIGHTED_LIST

  • Returns a value from a distribution of weighted number providers
  • 从加权数值提供器的分布中返回一个值
  • Fields:
  • 字段:
    • distribution - a list of objects with the following fields
    • distribution - 包含以下字段的对象列表
      • Fields:
      • 字段:
        • data - an inline value or a namespaced ID of a minecraft:context_int_provider type
        • data - 一个内联值或 minecraft:context_int_provider 类型的命名空间ID
        • weight - a positive integer
        • weight - 一个正整数





FLOAT NUMBER PROVIDERS
浮点数数值提供器

  • Added a minecraft:context_float_provider registry
  • 加入了 minecraft:context_float_provider 注册表
  • All calculations are peformed using single-precision floating-point numbers ("floats")
  • 所有计算均使用单精度浮点数(“floats”)进行
  • Result of calculations that produce NaN and Infinity is undefined
  • 产生 NaN 和 Infinity 的计算结果是未定义的
  • Format:
  • 格式:
    • type - a namespaced ID from minecraft:context_float_provider_type registry
    • type - minecraft:context_float_provider_type 注册表的一个命名空间ID
    • <type-specific fields>
    • <type-specific fields>



ADDED VANILLA FLOAT NUMBER PROVIDERS
加入了原版浮点数数值提供器

  • minecraft:cooking/speed_default
  • minecraft:cooking/speed_default
    • Returns the default speed multiplier for cooking fuel
    • 返回燃料的默认速度倍率
  • minecraft:cooking/normal_speed_multiplier
  • minecraft:cooking/normal_speed_multiplier
    • Returns the speed multiplier for cooking fuel when used in a normal furnace
    • 返回在熔炉中使用燃料的速度倍率
  • minecraft:cooking/fast_speed_multiplier
  • minecraft:cooking/fast_speed_multiplier
    • Returns the speed multiplier for cooking fuel when used in a block matching the block/fast_cooking predicate
    • 返回当在匹配 block/fast_cooking 谓词的方块中使用燃料时的速度倍率
  • minecraft:brewing/speed_default
  • minecraft:brewing/speed_default
    • Returns the default speed multiplier for brewing fuel
    • 返回酿造的燃料的默认速度倍率



ADDED MINECRAFT:ABS
加入了 MINECRAFT:ABS

  • Returns the absolute value of input
  • 返回 input 的绝对值
  • Fields:
  • 字段:
    • input - an inline value or a namespaced ID of a minecraft:context_float_provider type
    • input - 一个内联值或 minecraft:context_float_provider 类型的命名空间 ID



ADDED MINECRAFT:AVG
加入了 MINECRAFT:AVG

  • Evaluates multiple float providers and returns arithmetic mean of results
  • 对多个浮点数提供器求值并返回结果的算术平均值
  • Fields:
  • 字段:
    • inputs - an inline value, a single namespaced ID, a list of namespaced IDs, a list of inline values, or a hash-prefixed tag ID of a minecraft:context_float_provider type
    • inputs - 一个内联值、单个命名空间ID、命名空间ID列表、内联值列表,或 minecraft:context_float_provider 类型的以 # 为前缀的标签ID
      • Requires at least one value
      • 至少需要一个值




ADDED MINECRAFT:CEIL
加入了 MINECRAFT:CEIL

  • Returns the ceiling (i.e. rounded towards positive infinity) value of input
  • 返回 input 的向上取整(即向正无穷方向取整)值
  • Fields:
  • 字段:
    • input - an inline value or a namespaced ID of a minecraft:context_float_provider type
    • input - 一个内联值或 minecraft:context_float_provider 类型的命名空间 ID



ADDED MINECRAFT:CONDITIONAL
加入了 MINECRAFT:CONDITIONAL

  • Returns the value from on_true if its condition is fulfilled or on_false if not
  • 如果条件满足,则返回 on_true 的值;否则返回 on_false 的值
  • Fields:
  • 字段:
    • conditions - an inline value or a namespaced ID of a minecraft:predicate type
    • conditions - 一个内联值或 minecraft:predicate 类型的命名空间 ID
    • on_true - an inline value or a namespaced ID of a minecraft:context_float_provider type which is executed if its condition is fulfilled
    • on_true - 一个内联值或 minecraft:context_float_provider 类型的命名空间 ID,在其条件满足时执行
    • on_false - an optional inline value or a namespaced ID of a minecraft:context_float_provider type
    • on_false - 一个可选的内联值或 minecraft:context_float_provider 类型的命名空间 ID
      • Defaults to a constant 0.0 if omitted
      • 若为空,则默认为常数 0.0




ADDED MINECRAFT:CONSTANT
加入了 MINECRAFT:CONSTANT

  • Returns a constant value
  • 返回一个常量值
  • Fields:
  • 字段:
    • value - a float
    • value - 浮点数
  • Can be also written inline as a plain number (foo: 1.0 is equivalent to foo: {type:"minecraft:constant",value:1.0})
  • 也可输入内联的普通数字 (foo: 1.0 等价于 foo: {type:"minecraft:constant",value:1.0})


ADDED MINECRAFT:COS
加入了 MINECRAFT:COS

  • Returns the cosine of input
  • 返回 input 的余弦值
  • Fields:
  • 字段:
    • input - argument in radians, an inline value or a namespaced ID of a minecraft:context_float_provider type
    • input - 以弧度表示的参数,一个内联值或 minecraft:context_float_provider 类型的命名空间ID



ADDED MINECRAFT:SUB
加入了 MINECRAFT:SUB

  • Returns left minus right
  • 返回 left 减去 right
  • Fields:
  • 字段:
    • left - an inline value or a namespaced ID of a minecraft:context_float_provider type
    • left - 一个内联值或 minecraft:context_float_provider 类型的命名空间 ID
    • right - an inline value or a namespaced ID of a minecraft:context_float_provider type
    • right - 一个内联值或 minecraft:context_float_provider 类型的命名空间ID



ADDED MINECRAFT:ENCHANTMENT_LEVEL
加入了 MINECRAFT:ENCHANTMENT_LEVEL

  • Evaluates Enchantment Level-Based (minecraft:enchantment_level_based_value_type) parameter
  • 计算基于附魔等级(minecraft:enchantment_level_based_value_type)参数
  • Fields:
  • 字段:
    • amount: A Level-Based Value giving a value based on the level of the Enchantment
    • amount: 一个根据附魔等级提供数值的基于等级的值



ADDED MINECRAFT:ENVIRONMENT_ATTRIBUTE
加入了MINECRAFT:ENVIRONMENT_ATTRIBUTE

  • Fetches and provides the value of an Environment Attribute (minecraft:environment_attribute)
  • 获取并提供环境属性(minecraft:environment_attribute)的值
  • Fields
  • 字段
    • attribute - Environment Attribute ID to fetch (must be representable as a float)
    • attribute - 要获取的环境属性ID(必须可表示为浮点数)



ADDED MINECRAFT:FLOOR
加入了 MINECRAFT:FLOOR

  • Returns the floored (i.e. rounded towards negative infinity) value of input
  • 返回 input 的向下取整(即向负无穷方向舍入)值
  • Fields:
  • 字段:
    • input - an inline value or a namespaced ID of a minecraft:context_float_provider type
    • input - 一个内联值或 minecraft:context_float_provider 类型的命名空间ID



ADDED MINECRAFT:FROM_INT
加入了 MINECRAFT:FROM_INT

  • Evaluates an integer provider and converts it to a float value
  • 评估整数提供器并将其转换为浮点值
  • Fields:
  • 字段:
    • input - an inline value or a namespaced ID of a minecraft:context_int_provider type
    • input - 一个内联值或 minecraft:context_int_provider 类型的命名空间ID



ADDED MINECRAFT:LENGTH
加入了 MINECRAFT:LENGTH

  • Evaluates multiple float providers and returns square root of the sum of squares
  • 求多个浮点提供器的值并返回平方和的平方根
  • Fields:
  • 字段:
    • inputs - an inline value, a single namespaced ID, a list of namespaced IDs, a list of inline values, or a hash-prefixed tag ID of a minecraft:context_float_provider type
    • inputs - 一个内联值、单个命名空间ID、命名空间ID列表、内联值列表,或 minecraft:context_float_provider 类型的以 # 为前缀的标签ID
      • Requires at least one value
      • 至少需要一个值




ADDED MINECRAFT:MAX
加入了 MINECRAFT:MAX

  • Evaluates multiple float providers and returns the largest of result
  • 评估多个浮点提供器并返回最大的结果
  • Fields:
  • 字段:
    • inputs - an inline value, a single namespaced ID, a list of namespaced IDs, a list of inline values, or a hash-prefixed tag ID of a minecraft:context_float_provider type
    • inputs - 一个内联值、单个命名空间ID、命名空间ID列表、内联值列表,或 minecraft:context_float_provider 类型的以 # 为前缀的标签ID
      • Requires at least one value
      • 至少需要一个值




ADDED MINECRAFT:MIN
加入了 MINECRAFT:MIN

  • Evaluates multiple float providers and returns the smallest of results
  • 对多个浮点提供器求值并返回结果中的最小值
  • Fields:
  • 字段:
    • inputs - an inline value, a single namespaced ID, a list of namespaced IDs, a list of inline values, or a hash-prefixed tag ID of a minecraft:context_float_provider type
    • inputs - 一个内联值、单个命名空间ID、命名空间ID列表、内联值列表,或 minecraft:context_float_provider 类型的以 # 为前缀的标签ID
      • Requires at least one value
      • 至少需要一个值




ADDED MINECRAFT:MOD
加入了MINECRAFT:MOD

  • Returns the modulus of left by right
  • 返回 leftright 取模的结果
  • Fields:
  • 字段:
    • left - an inline value or a namespaced ID of a minecraft:context_float_provider type
    • left - 一个内联值或 minecraft:context_float_provider 类型的命名空间ID
    • right - an inline value or a namespaced ID of a minecraft:context_float_provider type
    • right - 一个内联值或 minecraft:context_float_provider 类型的命名空间 ID



ADDED MINECRAFT:NEGATE
加入了MINECRAFT:NEGATE

  • Returns the negation of input
  • 返回 input 的取反值
  • Fields:
  • 字段:
    • input - an inline value or a namespaced ID of a minecraft:context_float_provider type
    • input - 一个内联值或 minecraft:context_float_provider 类型的命名空间ID



ADDED MINECRAFT:NUMBER_DISPATCHER
加入了 MINECRAFT:NUMBER_DISPATCHER

  • Returns the first case which fulfills its condition or the default if none do
  • 返回第一个满足其条件的 case,若为空,则返回 default
  • Fields:
  • 字段:
    • cases - a list of cases in the order that the dispatcher will try to execute them
    • cases - 按调度器将尝试执行它们的顺序排列的用例列表
      • Fields:
      • 字段:
        • condition - an inline value or a namespaced ID of a minecraft:predicate type
        • condition - 一个内联值或 minecraft:predicate 类型的命名空间ID
        • value - an inline value or a namespaced ID of a minecraft:context_float_provider type which is executed if the condition is fulfilled
        • value - 一个内联值或 minecraft:context_float_provider 类型的命名空间 ID,如果条件满足则执行

    • default - an optional inline value or a namespaced ID of a minecraft:context_float_provider type
    • default - 一个可选的内联值或 minecraft:context_float_provider 类型的命名空间ID
      • Defaults to a constant 0.0 if omitted
      • 若为空,默认为常量0.0




ADDED MINECRAFT:POW
加入了 MINECRAFT:POW

  • Returns base to the power of exponent
  • 返回 baseexponent 次幂
  • Fields:
  • 字段:
    • base - an inline value or a namespaced ID of a minecraft:context_float_provider type
    • base - 一个内联值或 minecraft:context_float_provider 类型的命名空间ID
    • exponent - an inline value or a namespaced ID of a minecraft:context_float_provider type
    • exponent - 一个内联值或 minecraft:context_float_provider 类型的命名空间ID



ADDED MINECRAFT:MUL
加入了 MINECRAFT:MUL

  • Evaluates multiple float providers and returns product of results
  • 求值多个浮点提供器,并返回结果的乘积
  • Fields:
  • 字段:
    • inputs - an inline value, a single namespaced ID, a list of namespaced IDs, a list of inline values, or a hash-prefixed tag ID of a minecraft:context_float_provider type
    • inputs - 一个内联值、单个命名空间ID、命名空间ID列表、内联值列表,或 minecraft:context_float_provider 类型的以 # 为前缀的标签ID
      • Requires at least one value
      • 至少需要一个值




ADDED MINECRAFT:DIV
加入了 MINECRAFT:DIV

  • Returns left divided by right
  • 返回 left 除以 right
  • Fields:
  • 字段:
    • left - an inline value or a namespaced ID of a minecraft:context_float_provider type
    • left - 一个内联值或 minecraft:context_float_provider 类型的命名空间ID
    • right - an inline value or a namespaced ID of a minecraft:context_float_provider type
    • right - 一个内联值或 minecraft:context_float_provider 类型的命名空间 ID



ADDED MINECRAFT:ROUND
加入了 MINECRAFT:ROUND

  • Returns the rounded (towards nearest integer, with ties rounding towards positive infinity) value of input
  • 返回 input 四舍五入到最接近整数(恰好居中时向正无穷取整)后的值
  • Fields:
  • 字段:
    • input - an inline value or a namespaced ID of a minecraft:context_float_provider type
    • input - 一个内联值或 minecraft:context_float_provider 类型的命名空间 ID



ADDED MINECRAFT:SIN
加入了 MINECRAFT:SIN

  • Returns the sine of input
  • 返回 input 的正弦
  • Fields:
  • 字段:
    • input - argument in radians, an inline value or a namespaced ID of a minecraft:context_float_provider type
    • input - 以弧度表示的参数,一个内联值或 minecraft:context_float_provider 类型的命名空间 ID



ADDED MINECRAFT:SQRT
加入了 MINECRAFT:SQRT

  • Returns the square root of input
  • 返回 input 的平方根
  • Fields:
  • 字段:
    • input - an inline value or a namespaced ID of a minecraft:context_float_provider type
    • input - 一个内联值或 minecraft:context_float_provider 类型的命名空间ID



ADDED MINECRAFT:STORAGE
加入了 MINECRAFT:STORAGE

  • Returns a float value from a command storage
  • 从命令存储中返回一个浮点值
  • If value is not present, is not a number or path returned multiple values, provider returns value of fallback
  • 如果值不存在、不是数字,或者路径返回多个值,则提供者返回 fallback 的值
  • Conversion of numeric NBT values that are not a float is undefined
  • 非浮点数值NBT值的转换是未定义的
  • Fields:
  • 字段:
    • storage - a namespaced ID of a command storage
    • storage - 一个命令存储的命名空间ID
    • path - an NBT path
    • path - 一个NBT路径
    • fallback - an optional inline value or a namespaced ID of a minecraft:context_float_provider type, defaults to 0.0
    • fallback - 一个可选的内联值,或 minecraft:context_float_provider 类型的命名空间 ID,默认为 0.0



ADDED MINECRAFT:ADD
加入了 MINECRAFT:ADD

  • Evaluates multiple float providers and returns sum of results
  • 评估多个浮点提供器并返回结果总和
  • Fields:
  • 字段:
    • inputs - an inline value, a single namespaced ID, a list of namespaced IDs, a list of inline values, or a hash-prefixed tag ID of a minecraft:context_float_provider type
    • inputs - 一个内联值、单个命名空间ID、命名空间ID列表、内联值列表,或 minecraft:context_float_provider 类型的以 # 为前缀的标签ID
      • Requires at least one value
      • 至少需要一个值




ADDED MINECRAFT:TRUNCATE
加入了 MINECRAFT:TRUNCATE

  • Returns the truncated (rounded towards zero) value of input
  • 返回 input 的截断(向零舍入)值
  • Fields:
  • 字段:
    • input - an inline value or a namespaced ID of a minecraft:context_float_provider type
    • input - 一个内联值或 minecraft:context_float_provider 类型的命名空间ID



ADDED MINECRAFT:UNIFORM
加入了 MINECRAFT:UNIFORM

  • Picks a random number from a range
  • 从一个范围内随机选取一个数字
  • Fields:
  • 字段:
    • min - minimum value, an inline value or a namespaced ID of a minecraft:context_float_provider type
    • min - 最小值,一个内联值或 minecraft:context_float_provider 类型的命名空间ID
    • max - maximum value, an inline value or a namespaced ID of a minecraft:context_float_provider type
    • max - 最大值,一个内联值或 minecraft:context_float_provider 类型的命名空间ID



ADDED MINECRAFT:WEIGHTED_LIST
加入了 MINECRAFT:WEIGHTED_LIST

  • Returns a value from a distribution of weighted number providers
  • 从一个由加权数字提供器组成的分布中返回一个值
  • Fields:
  • 字段:
    • distribution - a list of objects with the following fields
    • distribution - 包含以下字段的对象列表
      • Fields:
      • 字段:
        • data - an inline value or a namespaced ID of a minecraft:context_float_provider type
        • data - 一个内联值或 minecraft:context_float_provider 类型的命名空间ID
        • weight - a positive integer
        • weight - 一个正整数





VILLAGER TRADES
村民交易

  • The max_uses and xp fields now require an inline value of a minecraft:context_int_provider type
  • max_usesxp 字段现在需要一个 minecraft:context_int_provider 类型的内联值
  • The count field in wants and additional_wants structures now require an inline value of a minecraft:context_int_provider type
  • wants additional_wants 结构中的 count 字段现在需要一个 minecraft:context_int_provider 类型的内联值
  • The reputation_discount field now requires an inline value of a minecraft:context_float_provider type
  • reputation_discount 字段现在需要一个 minecraft:context_float_provider 类型的内联值


COMMANDS
命令


MODIFIED /COMPUTE
修改了 /COMPUTE

  • Command syntax has been modified to take into account number provider split:
  • 修改了命令语法,以考虑到数值提供器拆分:
    • /compute <target> integer <int_provider>
    • /compute <target> integer <int_provider>
      • where <int_provider> either an element of minecraft:context_int_provider registry or an inline value
      • 其中 <int_provider> 要么是 minecraft:context_int_provider 注册表中的一个元素,要么是一个内联值
    • /compute <target> float <float_provider> [<scale>]
    • /compute <target> float <float_provider> [<scale>]
      • where <float_provider> either an element of minecraft:context_float_provider registry or an inline value
      • 其中 <float_provider> 要么是 minecraft:context_float_provider 注册表中的一个元素,要么是一个内联值

  • If evaluation of a number provider fails (for example due to division by zero), command will now fail
  • 如果数值提供器的求值失败(例如由于除以零),命令现在将失败


MODIFIED /DATA
修改了 /DATA

  • Command syntax has been modified to take into account number provider split:
  • 修改了命令语法,以考虑到数值提供器拆分:
    • compute <target> integer <int_provider>
    • compute <target> integer <int_provider>
    • compute <target> float <float_provider>
    • compute <target> float <float_provider>



DATA COMPONENTS
数据组件


CHANGED MINECRAFT:COOKING_FUEL
更改了 MINECRAFT:COOKING_FUEL

  • burn_time field is now minecraft:context_int_provider
  • burn_time 字段现在是 minecraft:context_int_provider
  • speed_multiplier field is now minecraft:context_float_provider
  • speed_multiplier 字段现在是 minecraft:context_float_provider
  • Cooking fuel items with remainders will be handled as follows
  • 带有剩余的燃料物品将按如下方式处理
    • If there is fuel remaining in the fuel slot, the remainder item will be dropped on the ground
    • 如果燃料槽中仍有燃料,剩余物品将被丢到地上
    • If the fuel has run out, the remainder item will remain in the fuel slot
    • 如果燃料已耗尽,剩余物品将保留在燃料槽中



CHANGED MINECRAFT:BREWING_FUEL
更改了 MINECRAFT:BREWING_FUEL

  • uses field is now minecraft:context_int_provider
  • uses 字段现在是 minecraft:context_int_provider
  • speed_multiplier field is now minecraft:context_float_provider
  • speed_multiplier 字段现在是 minecraft:context_float_provider
  • Brewing fuel items with remainders will be handled as follows
  • 带有剩余的酿造燃料物品将按如下方式处理
    • If there is fuel remaining in the fuel slot, the remainder item will be dropped on the ground
    • 如果燃料槽中仍有燃料,剩余物品将被丢到地上
    • If the fuel has run out, the remainder item will remain in the fuel slot
    • 如果燃料耗尽,剩余物品将留在燃料槽中
    • This behavior matches items placed in the input and reagent slots of the brewing stand
    • 此行为匹配放置在酿造台输入槽和材料槽中的物品



CHANGED MINECRAFT:COMPOSTABLE
更改了 MINECRAFT:COMPOSTABLE

  • layers field is now minecraft:context_int_provider
  • layers 字段现在是 minecraft:context_int_provider


LOOT TABLES
战利品表

  • rolls field is now minecraft:context_int_provider
  • rolls 字段现在是 minecraft:context_int_provider
  • bonus_rolls field is now minecraft:context_float_provider
  • bonus_rolls 字段现在是 minecraft:context_float_provider


FUNCTIONS
函数


CHANGED MINECRAFT:SET_ATTRIBUTES
更改了 MINECRAFT:SET_ATTRIBUTES

  • Number providers in amount sub-fields of modifiers list now accept an inline value or a namespaced ID of a minecraft:context_float_provider type
  • modifiers 列表的 amount 字段现在接受一个内联值或 minecraft:context_float_provider 类型的命名空间 ID


CHANGED MINECRAFT:ENCHANTED_COUNT_INCREASE
更改了MINECRAFT:ENCHANTED_COUNT_INCREASE

  • The count field now accepts an inline value or a namespaced ID of a minecraft:context_float_provider type
  • count 字段现在接受一个内联值或 minecraft:context_float_provider 类型的命名空间 ID


CHANGED MINECRAFT:ENCHANT_WITH_LEVELS
更改了 MINECRAFT:ENCHANT_WITH_LEVELS

  • The levels field now accepts an inline value or a namespaced ID of a minecraft:context_int_provider type
  • levels 字段现在接受一个内联值或 minecraft:context_int_provider 类型的命名空间 ID


CHANGED MINECRAFT:SET_CUSTOM_MODEL_DATA
更改了 MINECRAFT:SET_CUSTOM_MODEL_DATA

  • Elements in the floats list can now be an inline value or a namespaced ID of a minecraft:context_float_provider type
  • floats列表中的元素字段现在接受一个内联值或minecraft:context_float_provider 类型的命名空间ID
  • Elements in the colors lists can now be an inline value or a namespaced ID of a minecraft:context_int_provider type
  • colors 列表中的元素字段现在接受一个内联值或 minecraft:context_int_provider 类型的命名空间ID


CHANGED MINECRAFT:SET_ENCHANTMENTS
更改 MINECRAFT:SET_ENCHANTMENTS

  • Values in enchantments map can now be an inline value or a namespaced ID of a minecraft:context_int_provider type
  • enchantments 映射中的值字段现在接受一个内联值或 minecraft:context_int_provider 类型的命名空间 ID


CHANGED MINECRAFT:SET_COUNT
更改了 MINECRAFT:SET_COUNT

  • The count field now accepts an inline value or a namespaced ID of a minecraft:context_int_provider type
  • count 字段现在接受一个内联值或 minecraft:context_int_provider 类型的命名空间ID


CHANGED MINECRAFT:LIMIT_COUNT
更改了 MINECRAFT:LIMIT_COUNT

  • The min and max fields inside limit structure now accept an inline value or a namespaced ID of a minecraft:context_int_provider type
  • limit 结构内的 minmax 字段现在接受一个内联值或 minecraft:context_int_provider 类型的命名空间ID
  • limit field no longer accepts a single number
  • limit 字段不再接受单个数字


CHANGED MINECRAFT:SET_DAMAGE
更改了 MINECRAFT:SET_DAMAGE

  • The damage field now accepts an inline value or a namespaced ID of a minecraft:context_float_provider type
  • The damage 字段现在接受一个内联值或 minecraft:context_float_provider 类型的命名空间 ID


CHANGED MINECRAFT:SET_OMINOUS_BOTTLE_AMPLIFIER
更改了MINECRAFT:SET_OMINOUS_BOTTLE_AMPLIFIER

  • The amplifier field now accepts an inline value or a namespaced ID of a minecraft:context_int_provider type
  • amplifier 字段现在接受一个内联值或 minecraft:context_int_provider 类型的命名空间 ID


CHANGED MINECRAFT:SET_RANDOM_DYES
更改了 MINECRAFT:SET_RANDOM_DYES

  • The number_of_dyes field now accepts an inline value or a namespaced ID of a minecraft:context_int_provider type
  • number_of_dyes 字段现在接受一个内联值或 minecraft:context_int_provider 类型的命名空间ID


CHANGED MINECRAFT:SET_STEW_EFFECT
更改了 MINECRAFT:SET_STEW_EFFECT

  • The duration field in elements of effects list now accepts an inline value or a namespaced ID of a minecraft:context_int_provider type
  • effects 列表元素中的 duration 字段现在接受一个内联值或 minecraft:context_int_provider 类型的命名空间 ID


PREDICATES
谓词


CHANGED MINECRAFT:RANDOM_CHANCE
更改了 MINECRAFT:RANDOM_CHANCE

  • The chance field now accepts an inline value or a namespaced ID of a minecraft:context_float_provider type
  • chance 字段现在接受一个内联值或 minecraft:context_float_provider 类型的命名空间ID


REMOVED MINECRAFT:VALUE_CHECK
移除了 MINECRAFT:VALUE_CHECK

  • This condition has been split into integer and float variants
  • 此条件已拆分为整数型和浮点型


ADDED MINECRAFT:INT_VALUE_CHECK
加入了 MINECRAFT:INT_VALUE_CHECK

  • Checks value against some range
  • 检查值是否在某个范围内

Fields:
字段:

  • value - an inline value or a namespaced ID of a minecraft:context_int_provider type
  • value - 一个内联值或 minecraft:context_int_provider 类型的命名空间ID
  • test - one of:
  • test - 以下之一:
    • an inline value (including a single integer) or a namespaced ID of a minecraft:context_int_provider type
    • 一个内联值(包括单个整数)或 minecraft:context_int_provider 类型的命名空间ID
      • Will test if result of value is equal to provided test value
      • 测试 value 的结果是否等于提供的 test
    • an object with fields:
    • 一个带有字段的对象:
      • min - an optional inline value (including a single integer) or a namespaced ID of a minecraft:context_int_provider type
      • min - 一个可选的内联值(包括单个整数)或 minecraft:context_int_provider 类型的命名空间 ID
      • max - an optional inline value (including a single integer) or a namespaced ID of a minecraft:context_int_provider type
      • max - 一个可选的内联值(包括单个整数)或 minecraft:context_int_provider 类型的命名空间ID
      • Will test if result of value is between min and max (inclusive)
      • 测试 value 的结果是否在 minmax 之间(包含)




ADDED MINECRAFT:FLOAT_VALUE_CHECK
加入了 MINECRAFT:FLOAT_VALUE_CHECK

  • Checks value against some range
  • 检查值是否在某个范围内

Fields:
字段:

  • value - an inline value or a namespaced ID of a minecraft:context_float_provider type
  • value - 一个内联值或 minecraft:context_float_provider 类型的命名空间ID
  • test - one of:
  • test - 以下之一:
    • an inline value (including a single float) or a namespaced ID of a minecraft:context_float_provider type
    • 一个内联值(包括单个浮点数)或 minecraft:context_float_provider 类型的命名空间 ID
      • Will test if result of value is equal to provided test value
      • 测试 value 的结果是否等于所提供的 test
    • an object with fields:
    • 一个具有字段的对象:
      • min - an optional inline value (including a single float) or a namespaced ID of a minecraft:context_float_provider type
      • min - 一个可选的内联值(包括单个浮点数)或 minecraft:context_float_provider 类型的命名空间ID
      • max - an optional inline value (including a single float) or a namespaced ID of a minecraft:context_float_provider type
      • max - 一个可选的内联值(包括单个浮点数)或 minecraft:context_float_provider 类型的命名空间 ID
      • Will test if result of value is between min and max (inclusive)
      • 将测试value的结果是否在minmax之间(包含)




CHANGED MINECRAFT:TIME_CHECK
更改了 MINECRAFT:TIME_CHECK

  • The min and max fields inside value structure now accept an inline value or a namespaced ID of a minecraft:context_int_provider type
  • value 结构内的  minmax 字段现在接受一个内联值或 minecraft:context_int_provider 类型的命名空间ID
  • value field itself now accepts an inline value or a namespaced ID of a minecraft:context_int_provider type (previously only integers were allowed)
  • value 字段现在接受一个内联值或 minecraft:context_int_provider 类型的命名空间ID(之前仅允许整数)


CHANGED MINECRAFT:ENTITY_SCORES
更改了 MINECRAFT:ENTITY_SCORES

  • The min and max fields inside values of scores map now accept an inline value or a namespaced ID of a minecraft:context_int_provider type
  • scores 结构内的  minmax 字段现在接受一个内联值或 minecraft:context_int_provider 类型的命名空间ID
  • scores field itself now accepts an inline value or a namespaced ID of a minecraft:context_int_provider type (previously only integers were allowed)
  • scores 字段现在接受一个内联值或 minecraft:context_int_provider 类型的命名空间ID(之前仅允许整数)


RECIPES
配方


COOKING RECIPES
烹饪配方

  • The cookingtime field of all cooking recipes is no longer optional
  • 所有烹饪配方的 cookingtime 字段不再可选
  • Custom Smoker and Blast Furnace recipes should be updated accordingly, by setting cookingtime to twice the previous value
  • 自定义烟熏炉和高炉配方应相应更新,通过将 cookingtime 设置为之前值的两倍
  • If a custom cooking recipe was previously relying on the default cookingtime value, 200 can be used to maintain the same timing
  • 如果自定义烧炼配方此前依赖于默认的 cookingtime 值,则可以使用 200 来保持相同的时长


WORLD GENERATION
世界生成


BLOCK STATE PROVIDERS
方块状态提供器

Block State Providers can now be defined as standalone types in a registry - worldgen/block_state_provider - and referenced by using a namespaced string for a field that expects a Block State Provider.
方块状态提供器现在可以定义为注册表中的独立类型 —— worldgen/block_state_provider - 并且可以通过使用命名空间字符串来引用,用于需要方块状态提供器的字段。

An inline Block State definition is now an accepted shorthand form for a minecraft:simple block state provider providing that state. The Block State has to be in the form of an object with fields, a shorthand Block ID is not allowed.
内联方块状态定义现已可作为 minecraft:simple 方块状态提供器的简写形式以提供对应方块状态。方块状态必须为带字段的对象格式,不允许使用简写方块 ID。


RENAMED PROVIDER TYPES
重命名了提供程序类型

The following providers types have been renamed:
重命名了以下提供程序类型:

  • minecraft:dual_noise_provider renamed to minecraft:dual_noise
  • minecraft:dual_noise_provider 重命名为 minecraft:dual_noise
  • minecraft:noise_provider renamed to minecraft:noise
  • minecraft:noise_provider 重命名为 minecraft:noise
  • minecraft:noise_threshold_provider renamed to minecraft:noise_threshold
  • minecraft:noise_threshold_provider 重命名为 minecraft:noise_threshold
  • minecraft:randomized_int_state_provider renamed to minecraft:randomized_int
  • minecraft:randomized_int_state_provider 重命名为 minecraft:randomized_int
  • minecraft:rule_based_state_provider renamed to minecraft:rule_based
  • minecraft:rule_based_state_provider 重命名为 minecraft:rule_based
  • minecraft:simple_state_provider renamed to minecraft:simple
  • minecraft:simple_state_provider 重命名为 minecraft:simple
  • minecraft:weighted_state_provider renamed to minecraft:weighted
  • minecraft:weighted_state_provider 重命名为 minecraft:weighted
  • minecraft:random_block_provider renamed to minecraft:random_block
  • minecraft:random_block_provider 重命名为 minecraft:random_block
  • minecraft:rotated_block_provider renamed to minecraft:rotated
  • minecraft:rotated_block_provider 重命名为 minecraft:rotated


CHANGED MINECRAFT:RULE_BASED
更改了 MINECRAFT:RULE_BASED

  • If a rule yields no result, the following rules will be evaluated
  • 如果一条规则没有产生结果,则将评估以下规则
  • If no rule or fallback yields a result, will now also yield no result
  • 如果没有规则或 fallback 产生结果,现在也将不会产生任何结果


VILLAGER TRADES
村民交易

  • The max_uses and xp fields now require an inline value of a minecraft:context_int_provider type
  • max_usesxp 字段现在需要一个 minecraft:context_int_provider 类型的内联值
  • The count field in wants and additional_wants structures now require an inline value of a minecraft:context_int_provider type
  • wantsadditional_wants 结构中的 count 字段现在需要一个 minecraft:context_int_provider 类型的内联值
  • The reputation_discount field now requires an inline value of a minecraft:context_float_provider type
  • reputation_discount 字段现在需要一个 minecraft:context_float_provider 类型的内联值


TAGS
标签


ITEM TAGS
物品标签

  • Added #furnace_fuel_bottom_takeable - Items that can be taken out of furnace by a hopper attached to the bottom face
  • 加入了 #furnace_fuel_bottom_takeable - 可由连接在底面的漏斗从熔炉中取出的物品


RESOURCE PACK VERSION 97.1
资源包版本 97.1


ORDER-INDEPENDENT TRANSPARENCY (OIT)-RELATED SHADER CHANGES
顺序无关透明算法(OIT)相关的着色器更改

  • core/blit_depth.fsh added as a way to copy contents of depth textures as an alternative to the rendering backend-based copying methods that do not work on some devices
  • core/blit_depth.fsh 添加为复制深度纹理内容的一种方式,以替代在某些设备上无法正常工作的基于渲染后端的复制方法


FIXED BUGS IN 26.3 PRE-RELEASE 1
26.3-pre1 修复的漏洞

  • MC-154881 - Dropping an item from your hotbar at the same time as switching to another hotbar slot desyncs the second item
  • MC-154881 - 从快捷栏中丢弃一个物品的同时切换到另一个快捷栏槽位,会导致第二个物品不同步
  • MC-254370 - The entity_scores predicate type cannot check all possible scores
  • MC-254370 - entity_scores 谓词类型无法检查所有可能的分数
  • MC-270970 - The player's camera shakes when attempting to step up blocks with a boat above them
  • MC-270970 - 玩家在尝试登上上方有船的方块时,相机会抖动。
  • MC-277906 - Ender pearls land incorrectly at high speeds
  • MC-277906 - 末影珍珠在高速移动时落点错误
  • MC-309768 - Persistent targets in post_effects are not cleared when removing the effect with /posteffect
  • MC-309768 - 通过 /posteffect 命令移除后处理效果时 post_effects 的持久化目标不会清除
  • MC-309855 - The entity texture of black cushions has one extra color compared to all other cushions
  • MC-309855 - 黑色坐垫的实体纹理与其他所有坐垫相比多了一种颜色
  • MC-309870 - Drowned holding spears can use both the jab and charge attacks at the same time
  • MC-309870 - 手持矛的溺尸可以同时使用戳刺和冲锋攻击
  • MC-310289 - Entity collisions fully above an entity's hitbox are ignored when stepping up blocks
  • MC-310289 - 当走上方块时,完全位于实体的碰撞箱上方的实体碰撞会被忽略
  • MC-310331 - The game crashes on Wayland with the OpenGL rendering backend
  • MC-310331 - 游戏在使用 OpenGL 渲染后端的 Wayland 上崩溃
  • MC-310332 - The mouse cursor's position isn't updated after closing a singleplayer world and entering the title screen
  • MC-310332 - 关闭单人游戏世界并进入标题画面后,鼠标光标的位置没有更新
  • MC-310522 - Pressing Right Shift in textboxes toggles fullscreen under specific conditions
  • MC-310522 - 在特定条件下,在文本框中按下 右Shift键 会切换全屏
  • MC-310646 - The textures of shelf mushrooms contain several unused pixels
  • MC-310646 - 层孔菇的纹理包含几个未使用的像素
  • MC-310710 - A few maps' item textures have inconsistent details compared to the others
  • MC-310710 - 少数地图的物品纹理与其他地图相比存在不一致的细节
  • MC-310712 - Using a Nether portal in Spectator mode while spectating an entity now causes the player to stop spectating when the other side is not generated
  • MC-310712 - 在旁观模式中旁观实体时使用下界传送门,当另一边尚未生成时,现在会导致玩家停止旁观
  • MC-310830 - The scissor bounds check ignores the render area's Y offset
  • MC-310830 - 剪裁边界检查忽略了渲染区域的Y偏移
  • MC-310957 - The player is unable to perform a sweep attack for a brief moment after blocking an attack with their shield
  • MC-310957 - 玩家在用盾牌格挡攻击后的短暂时间内无法进行横扫攻击
  • MC-310990 - The "Join Realm" button can extend out of the screen
  • MC-310990 - “加入 Realm”按钮可能会超出屏幕。
  • MC-311037 - The same "Join Realm" string is used for two buttons with different meanings
  • MC-311037 - 相同的“加入 Realm”字符串被用于两个含义不同的按钮
  • MC-311129 - Dappled forests use the music.overworld.flower_forest sound event instead of music.overworld.forest
  • MC-311129 - 斑驳森林使用了 music.overworld.flower_forest 而非 music.overworld.forest
  • MC-311183 - Fuel in blast furnaces and smokers smelts double the items
  • MC-311183 - 高炉和烟熏炉中的燃料可烧炼双倍的物品
  • MC-311222 - NBT to SNBT data generators crash when attempting to convert old NBT files
  • MC-311222 - NBT 到 SNBT 数据生成器在尝试转换旧 NBT 文件时崩溃
  • MC-311236 - The block_transformer component ignores the use_cooldown component
  • MC-311236 - block_transformer 组件忽略了 use_cooldown 组件
  • MC-311274 - The default value of the cookingtime field for blasting and smoking recipes is still 100
  • MC-311274 - 高炉和烟熏炉配方的 cookingtime 字段默认值仍为 100
  • MC-311297 - Keyboard input is picked up by input methods even when no text input box is selected
  • MC-311297 - 即使未选择文本输入框,键盘输入也会被输入法读取
  • MC-311298 - On certain locales, pressing Right Shift while the "Toggle Cinematic Camera" key bind is unbound will toggle it
  • MC-311298 - 在某些区域设置下,当“切换电影视角”键位未绑定时,按下 右Shift键 会切换
  • MC-311364 - Category headers in some screens still can't be selected
  • MC-311364 - 部分菜单中的分类标题仍然无法选中
  • MC-311369 - The World Options screen is not centered
  • MC-311369 - 世界选项屏幕未居中
  • MC-311372 - Endermen can now teleport onto waterlogged blocks
  • MC-311372 - 末影人现在可以传送到含水方块上
  • MC-311384 - Empty buried treasure maps from previous updates are called "filled_map.buried_treasure"
  • MC-311384 - 旧版本中的空藏宝图被称为 "filled_map.buried_treasure"
  • MC-311390 - The swimming animation of drowned is incorrect
  • MC-311390 - 溺尸的游泳动画不正确
  • MC-311391 - Leaving the Enter Join Code screen always brings you to the main Realms screen
  • MC-311391 - 离开 “输入加入代码” 屏幕总会回到 Realms 主界面
  • MC-311399 - Enabling commands in the World Options screen and clicking "Edit Game Rules" shows an infinite loading screen
  • MC-311399 - 在世界选项屏幕中启用命令并点击 “编辑游戏规则” 按钮会显示无限加载屏幕
  • MC-311400 - Arrows now bounce off endermen even when they teleport
  • MC-311400 - 箭现在会从末影人身上弹开,即使它们正在传送
  • MC-311414 - Players can teleport arbitrary distances by using a desynced carrot on a stick on a pig
  • MC-311414 - 玩家可以通过在骑乘猪时使用不同步的胡萝卜钓竿来传送任意距离
  • MC-311423 - Moving then opening the inventory does not allow input from IME, and switching the input method immediately inserts previous inputs
  • MC-311423 - 移动后打开物品栏不允许使用输入法进行输入,切换输入法会立即插入之前的输入
  • MC-311428 - Number providers lose precision when reading the initial values in integer mode
  • MC-311428 - 数值提供器在整数模式下读取初始值时失去精度
  • MC-311431 - Abandoned camps located on biome edges can generate explorer maps leading to themselves
  • MC-311431 - 位于生物群系边缘的废弃营地会生成指向自身的探险家地图
  • MC-311472 - Turning off commands on the World Options screen doesn't properly reset the personal game mode
  • MC-311472 - 在世界选项屏幕中禁用命令无法正确重置个人游戏模式
  • MC-311478 - Copper veins generate ores with stone variants on the deepslate layer
  • MC-311478 - 铜矿脉在深板岩层生成了带有浅层石头变种的矿石
  • MC-311486 - Veins of deepslate iron ore and tuff now generate above y=0
  • MC-311486 - 深层铁矿石和凝灰岩的矿脉现在生成于y=0以上
  • MC-311546 - Locking the difficulty of a world doesn't immediately disable the difficulty button
  • MC-311546 - 锁定世界的难度不会立即禁用难度切换按钮







【mxy333 译自Java Team 2026 年 9 月 1 日发布的 Minecraft 26.3 Pre-Release 1

【本文排版借助了:SPXXKLP 用户脚本 v3.2.7】



Powered by SPXXKLP 3.2.7 with love
Converted at 2026-09-01 23:19 +0800


|想了解更多游戏资讯?

苦力怕论坛,感谢有您~

本版积分规则

本站
关于我们
联系我们
坛史纲要
官方
哔哩哔哩
技术博客
下载
网易版
安卓版
JAVA
反馈
意见建议
教程中心
更多
捐助本站
QQ群
QQ群

QQ群

访问手机版

访问手机版

手机版|小黑屋|系统状态|klpbbs.com

木韩网络 提供支持 | GMT+8, 2026-9-3 04:49

声明:本站与Mojang以及微软公司没有从属关系

Powered by Discuz! X3.4