Minecraft:Noise: Difference between revisions
From SAS Gaming Wiki
More actions
Sync: new page from Minecraft |
Sync: updated from Minecraft |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 16: | Line 16: | ||
<div class="treeview"> | <div class="treeview"> | ||
* {{nbt|compound}}: Root object. | * {{nbt|compound}}: Root object. | ||
** | ** {{nbt|int|base_octave}}: First octave. If {{nbt|bool|legacy_random_source}} in the noise settings is true, it must be an integer less than or equal to 1, otherwise the value range is not unlimited. | ||
** | ** {{nbt|list|amplitude_modifiers}} (optional): A scaling factor to apply to each octave. The number of elements in the list must match {{cd|octave_count}}. If not specified, it defaults to 1.0. | ||
*** {{Nbt|double}}: A double value for a sub-noise. | *** {{Nbt|double}}: A double value for a sub-noise. | ||
** {{nbt|float|base_amplitude | ** {{nbt|float|base_amplitude}}: A scale factor to apply to the noise output. It must not be negative. | ||
** {{nbt|int|octave_count | ** {{nbt|int|octave_count}}: The number of octaves to sample. Value between 1 and 32 (inclusive). | ||
** {{nbt|boolean|normalize | ** {{nbt|boolean|normalize}}: Controls how the output amplitude should be normalized. If {{cd|true}}, {{cd|base_amplitude}} is the expected amplitude of the output (i.e., 99.7% of all samples in {{cd|[-base.amplitude; base.amplitude]}}). If {{cd|false}}, the base amplitude is instead the amplitude of the first octave. If {{cd|"legacy"}}, it inherits the same normalization behavior as expressed by the previous format. If not specified, it defaults to {{cd|true}}. | ||
</div> | </div> | ||
| Line 27: | Line 27: | ||
{{info needed section|when it was added.}} | {{info needed section|when it was added.}} | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|java | |{{HistoryLine|java}} | ||
|{{HistoryLine||26.3|dev=snap6|Noises now define a fractal Brownian motion (fBm) configuration, producing approximate output vales fitting a normal distribution. | |{{HistoryLine||26.3|dev=snap6|Noises now define a fractal Brownian motion (fBm) configuration, producing approximate output vales fitting a normal distribution. | ||
|Renamed the following fields: | |Renamed the following fields: | ||
| Line 37: | Line 37: | ||
* {{cd|octave_count}} | * {{cd|octave_count}} | ||
}} | }} | ||
|{{HistoryLine|||dev=snap7|Noises are no longer evaluated with double-precision floating point values, but instead with single-precision.}} | |||
}} | }} | ||
Latest revision as of 11:18, 17 September 2026
Template:For Template:Exclusive
A noise is a technical Minecraft:JSON file that can be referenced by a Minecraft:density function and Minecraft:surface rule. They are stored within a Minecraft:data pack in the folder Template:Cd.
In addition to being called by density functions and surface rules, there are also some noises with hard-coded usage:
- Template:Code: Affects the surface layer thickness in surface rules.
- Template:Code: Used as the thickness of additional surface layer in surface rules.
- Template:Code: Used to generate badland terracotta bands in Template:Code surface rules.
- Template:Code, Template:Code, Template:Code: Used when generating badland hoodoos in Template:Cd biome.
- Template:Code, Template:Code, Template:Code: Used when generating iceberg Minecraft:terrain feature in Template:Cd and Template:Cd biomes.
JSON format
- Template:Nbt: Root object.
- Template:Nbt: First octave. If Template:Nbt in the noise settings is true, it must be an integer less than or equal to 1, otherwise the value range is not unlimited.
- Template:Nbt (optional): A scaling factor to apply to each octave. The number of elements in the list must match Template:Cd. If not specified, it defaults to 1.0.
- Template:Nbt: A double value for a sub-noise.
- Template:Nbt: A scale factor to apply to the noise output. It must not be negative.
- Template:Nbt: The number of octaves to sample. Value between 1 and 32 (inclusive).
- Template:Nbt: Controls how the output amplitude should be normalized. If Template:Cd, Template:Cd is the expected amplitude of the output (i.e., 99.7% of all samples in Template:Cd). If Template:Cd, the base amplitude is instead the amplitude of the first octave. If Template:Cd, it inherits the same normalization behavior as expressed by the previous format. If not specified, it defaults to Template:Cd.
History
External links
Template:Navbox Java Edition technical
Minecraft:de:Rauschdefinition Minecraft:fr:Bruit Minecraft:pt:Ruído Minecraft:zh:噪声