Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[MC News] Minecraft 26.3 Pre-Release 1
1
[Image: new-article-hero-image.jpg]

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.

Happy mining!

Changes

UI
  • On macOS, Exclusive Fullscreen is now available again
  • 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
  • The cursor is now confined to the window while Exclusive Fullscreen is active
Technical Changes
  • The Data Pack version is now 119.0
  • The Resource Pack version is now 97.1
Data Pack Version 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)
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

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

Following number provider types have been split into integer and float variants:
  • minecraft:constant
  • minecraft:uniform
  • minecraft:storage
  • minecraft:sum (renamed to minecraft:add)
  • minecraft:product (renamed to minecraft:mul)
  • minecraft:minimum (renamed to minecraft:min)
  • minecraft:maximum (renamed to minecraft:max)
  • minecraft:average (renamed to minecraft:avg)
  • minecraft:weighted_list
  • minecraft:conditional
  • minecraft:number_dispatcher
  • minecraft:environment_attribute
Following number providers types are now only available in integer variant:
  • minecraft:binomial
  • minecraft:score
Following number providers types are now only available in float variant:
  • minecraft:enchantment_level
Following vanilla number providers have been migrated to minecraft:context_int_provider registry:
  • minecraft:compostable/low
  • minecraft:compostable/low_medium
  • minecraft:compostable/medium
  • minecraft:compostable/medium_high
  • minecraft:compostable/always_add_one
  • minecraft:cooking/time_bamboo
  • minecraft:cooking/time_wool_slabs
  • minecraft:cooking/time_wool_carpets
  • minecraft:cooking/time_dry_plants
  • minecraft:cooking/time_wood_items_extra_small
  • minecraft:cooking/time_wool
  • minecraft:cooking/time_wood_slabs
  • minecraft:cooking/time_wood_items_large
  • minecraft:cooking/time_wood_items_small
  • minecraft:cooking/time_roots
  • minecraft:cooking/time_wood_blocks
  • minecraft:cooking/time_hanging_signs
  • minecraft:cooking/time_boats
  • minecraft:cooking/time_coal
  • minecraft:cooking/time_blaze_rod
  • minecraft:cooking/time_dried_kelp_block
  • minecraft:cooking/time_coal_block
  • minecraft:cooking/time_lava_bucket
  • minecraft:brewing/uses_default
Following vanilla number providers have been migrated to minecraft:context_float_provider registry:
  • minecraft:cooking/speed_default
  • minecraft:cooking/normal_speed_multiplier
  • minecraft:cooking/fast_speed_multiplier
  • 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/fast_burn_time_multiplier (replaced by minecraft:cooking/fast_burn_time_reduction_factor)
Integer Number Providers
  • Added the minecraft:context_int_provider registry
  • All calculations are performed using 32-bit integers
  • 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
Added minecraft:abs
  • Returns the absolute value of input
  • If the final result does not fit inside 32-bit integer, calculation will be canceled
  • Fields:input - an inline value or a namespaced ID of a minecraft:context_int_provider type
Added minecraft:avg
  • Evaluates multiple integer providers and returns arithmetic mean of results
  • Division rounds towards 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 typeRequires at least one value
Added minecraft:binomial
  • Makes n random coin flips with probability of succeeding equal to p, then returns number of successes
  • Fields:n - number of coin flips, an inline value or a namespaced ID of a minecraft:context_int_provider typep - 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
Added minecraft:conditional
  • Returns the value from on_true if its condition is fulfilled or on_false if not
  • Fields:condition - an inline value or a namespaced ID of a minecraft:predicate typeon_true - an inline value or a namespaced ID of a minecraft:context_int_provider type which is executed if its condition is fulfilledon_false - an optional inline value or a namespaced ID of a minecraft:context_int_provider typeDefaults to a constant 0 if omitted
Added minecraft:constant
  • Returns a constant value
  • Fields:value - an integer
  • Can be also written inline as a plain number (foo: 1 is equivalent to foo: {type:"minecraft:constant",value:1})
Added minecraft:sub
  • Returns left minus right
  • If the final result does not fit inside 32-bit integer, calculation will be canceled
  • Fields:left - an inline value or a namespaced ID of a minecraft:context_int_provider typeright - an inline value or a namespaced ID of a minecraft:context_int_provider type
Added 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
  • Fields:input - an inline value or a namespaced ID of a minecraft:context_float_provider type
Added 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 typeRequires at least one value
Added 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 typeRequires at least one value
Added minecraft:mod
  • Returns the modulus of left by 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 typeright - an inline value or a namespaced ID of a minecraft:context_int_provider type
Added minecraft:floor_mod
  • Returns the modulus of left by right
  • 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 typeright - an inline value or a namespaced ID of a minecraft:context_int_provider type
Added minecraft:environment_attribute
  • Fetches and provides the value of an Environment Attribute (minecraft:environment_attribute)
  • Fieldsattribute - Environment Attribute ID to fetch (must be representable as an int)
Added minecraft:negate
  • Returns the negation of input
  • If the final result does not fit inside 32-bit integer, calculation will be canceled
  • Fields:input - an inline value or a namespaced ID of a minecraft:context_int_provider type
Added minecraft:number_dispatcher
  • Returns the first case which fulfills its condition or the default if none do
  • Fields:cases - a list of cases in the order that the dispatcher will try to execute themFields:condition - an inline value or a namespaced ID of a minecraft:predicate typevalue - an inline value or a namespaced ID of a minecraft:context_int_provider type which is executed if the condition is fulfilleddefault - an optional inline value or a namespaced ID of a minecraft:context_int_provider typeDefaults to a constant 0 if omitted
Added minecraft:pow
  • Returns base to the power of exponent
  • 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
  • Fields:base - an inline value or a namespaced ID of a minecraft:context_int_provider typeexponent - an inline value or a namespaced ID of a minecraft:context_int_provider type
Added 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
  • 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 typeRequires at least one value
Added minecraft:div
  • Returns left divided by 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 typeright - an inline value or a namespaced ID of a minecraft:context_int_provider type
Added minecraft:floor_div
  • Returns left divided by 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
  • Fields:left - an inline value or a namespaced ID of a minecraft:context_int_provider typeright - an inline value or a namespaced ID of a minecraft:context_int_provider type
Added minecraft:score
  • Returns a score of the selected target
  • If score is not present, provider returns value of fallback
  • Fields:score - objective nametarget - score holder (same format as in number provider version)fallback - an optional inline value or a namespaced ID of a minecraft:context_int_provider type, defaults to 0
Added 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
  • Conversion of numeric NBT values that are not an integer is undefined
  • Fields:storage - a namespaced ID of a command storagepath - an NBT pathfallback - an optional inline value or a namespaced ID of a minecraft:context_int_provider type, defaults to 0
Added 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
  • 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 typeRequires at least one value
Added 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 typemax - maximum value (inclusive), an inline value or a namespaced ID of a minecraft:context_int_provider type
Added minecraft:weighted_list
  • Returns a value from a distribution of weighted number providers
  • Fields:distribution - a list of objects with the following fieldsFields:data - an inline value or a namespaced ID of a minecraft:context_int_provider typeweight - a positive integer
Float Number Providers
  • Added a minecraft:context_float_provider registry
  • All calculations are peformed using single-precision floating-point numbers ("floats")
  • Result of calculations that produce NaN and Infinity is undefined
  • Format:type - a namespaced ID from minecraft:context_float_provider_type registry
Added vanilla float number providers
  • minecraft:cooking/speed_defaultReturns the default speed multiplier for cooking fuel
  • minecraft:cooking/normal_speed_multiplierReturns the speed multiplier for cooking fuel when used in a normal furnace
  • minecraft:cooking/fast_speed_multiplierReturns the speed multiplier for cooking fuel when used in a block matching the block/fast_cooking predicate
  • minecraft:brewing/speed_defaultReturns the default speed multiplier for brewing fuel
  • Returns the absolute value of input
  • Fields:input - an inline value or a namespaced ID of a minecraft:context_float_provider type
  • 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 typeRequires at least one value
Added minecraft:ceil
  • Returns the ceiling (i.e. rounded towards positive infinity) value of input
  • Fields:input - an inline value or a namespaced ID of a minecraft:context_float_provider type
  • Returns the value from on_true if its condition is fulfilled or on_false if not
  • Fields:conditions - an inline value or a namespaced ID of a minecraft:predicate typeon_true - an inline value or a namespaced ID of a minecraft:context_float_provider type which is executed if its condition is fulfilledon_false - an optional inline value or a namespaced ID of a minecraft:context_float_provider typeDefaults to a constant 0.0 if omitted
  • Returns a constant value
  • Fields:value - a float
  • Can be also written inline as a plain number (foo: 1.0 is equivalent to foo: {type:"minecraft:constant",value:1.0})
Added minecraft:cos
  • Returns the cosine of input
  • Fields:input - argument in radians, an inline value or a namespaced ID of a minecraft:context_float_provider type
  • Returns left minus right
  • Fields:left - an inline value or a namespaced ID of a minecraft:context_float_provider typeright - an inline value or a namespaced ID of a minecraft:context_float_provider type
Added minecraft:enchantment_level
  • Evaluates Enchantment Level-Based (minecraft:enchantment_level_based_value_type) parameter
  • Fields:amount: A Level-Based Value giving a value based on the level of the Enchantment
  • Fetches and provides the value of an Environment Attribute (minecraft:environment_attribute)
  • Fieldsattribute - Environment Attribute ID to fetch (must be representable as a float)
Added minecraft:floor
  • Returns the floored (i.e. rounded towards negative infinity) value of input
  • Fields:input - an inline value or a namespaced ID of a minecraft:context_float_provider type
Added 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
Added 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 typeRequires at least one value
  • 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 typeRequires at least one value
  • 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 typeRequires at least one value
  • Returns the modulus of left by right
  • Fields:left - an inline value or a namespaced ID of a minecraft:context_float_provider typeright - an inline value or a namespaced ID of a minecraft:context_float_provider type
  • Returns the negation of input
  • Fields:input - an inline value or a namespaced ID of a minecraft:context_float_provider type
  • Returns the first case which fulfills its condition or the default if none do
  • Fields:cases - a list of cases in the order that the dispatcher will try to execute themFields:condition - an inline value or a namespaced ID of a minecraft:predicate typevalue - an inline value or a namespaced ID of a minecraft:context_float_provider type which is executed if the condition is fulfilleddefault - an optional inline value or a namespaced ID of a minecraft:context_float_provider typeDefaults to a constant 0.0 if omitted
  • Returns base to the power of exponent
  • Fields:base - an inline value or a namespaced ID of a minecraft:context_float_provider typeexponent - an inline value or a namespaced ID of a minecraft:context_float_provider type
  • 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 typeRequires at least one value
  • Returns left divided by right
  • Fields:left - an inline value or a namespaced ID of a minecraft:context_float_provider typeright - an inline value or a namespaced ID of a minecraft:context_float_provider type
Added minecraft:round
  • Returns the rounded (towards nearest integer, with ties rounding towards positive infinity) value of input
  • Fields:input - an inline value or a namespaced ID of a minecraft:context_float_provider type
Added minecraft:sin
  • Returns the sine of input
  • Fields:input - argument in radians, an inline value or a namespaced ID of a minecraft:context_float_provider type
Added minecraft:sqrt
  • Returns the square root of input
  • Fields:input - an inline value or a namespaced ID of a minecraft:context_float_provider type
  • 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
  • Conversion of numeric NBT values that are not a float is undefined
  • Fields:storage - a namespaced ID of a command storagepath - an NBT pathfallback - an optional inline value or a namespaced ID of a minecraft:context_float_provider type, defaults to 0.0
  • 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 typeRequires at least one value
Added minecraft:truncate
  • Returns the truncated (rounded towards zero) value of input
  • Fields:input - an inline value or a namespaced ID of a minecraft:context_float_provider type
  • Picks a random number from a range
  • Fields:min - minimum value, an inline value or a namespaced ID of a minecraft:context_float_provider typemax - maximum value, an inline value or a namespaced ID of a minecraft:context_float_provider type
  • Returns a value from a distribution of weighted number providers
  • Fields:distribution - a list of objects with the following fieldsFields:data - an inline value or a namespaced ID of a minecraft:context_float_provider typeweight - a positive integer
Villager Trades
  • The max_uses and xp fields now require an inline value of a minecraft:context_int_provider type
  • The count field in wants and additional_wants structures now require an inline value of a minecraft:context_int_provider type
  • The reputation_discount field now requires an inline value of a minecraft:context_float_provider type
Commands

Modified /compute
  • Command syntax has been modified to take into account number provider split:/compute integer where either an element of minecraft:context_int_provider registry or an inline value/compute float []where either an element of minecraft:context_float_provider registry or an inline value
  • If evaluation of a number provider fails (for example due to division by zero), command will now fail
Modified /data
  • Command syntax has been modified to take into account number provider split:compute integer compute float
Data Components
Reply



Forum Jump:


Users browsing this thread: 1 Guest(s)