Java Edition 1.18.2

1.18.2 is a minor update to , released on February 28, 2022, which adds the command, makes changes to tags and custom world generation, and fixes bugs. It is not compatible with 1.18 and 1.18.1 servers.
== Additions ==
=== World generation ===
; Custom world generation
* Added biomes field in configured structure files, which is a tag.
* Added function: general-purpose building block that allows user to express almost any function using a cubic spline.
=== Command format ===
; 
* Used to place a configured feature at a given location.
* Syntax: 
** feature: The namespaced ID of a configured feature to place.
** pos: The position to use as the origin for the feature placement.
*** If omitted, ~ ~ ~ is used.
=== General ===
; Compliance requirements
* Added gameplay timers and notices in compliance with gaming laws of South Korea to South Korean users, in order to remind these players to take occasional breaks from gameplay.
; Debug screen
* Now contains the chunk position in the region file, and the name of this region file which the player is currently in, at the end of the "Chunk" row.
; Languages
* Added Friulian.Also available for versions since 21w37a.
; Resource packs
* Added a JSON file related to the new compliance requirements, located at assets/[namespace]/regional_compliancies.json.
; Tags
* Added the block tag.
** Contains the block tag, sweet berry bush, and cobweb.
* Tags can now be defined for any types in registry, rather than only blocks, items, fluids, entity types, game events and functions previously.
** In datapacks, tags of new types are stored in their own folders (but not present in the vanilla datapack currently). The folders' names are based on their names in the registries.json, for example:
*** Tags for potions: /data/[namespace]/tags/potion
*** Tags for biomes: /data/[namespace]/tags/worldgen/biome
** For tags of blocks, items, fluids, entity types, game events and functions, their locations in datapacks are currently not changed, even if they use plural names which is against the new name format.
* Added biome tags in vanilla datapacks, as following:
** : .
** : .
** : .
** : .
** : .
** : .
** : .
** : .
** : .
** : .
** : .
* Added biome tags to determine which biomes a structure can generate in, stored in tags/worldgen/biome/has_structure.
** field in these files can accept both biome IDs and biome tags.
* Added following configured structure feature tags:
** : .
** : .
** : .
** : .
** : .
** : .
** : .
** : .
** : .
** : .
== Changes ==
=== Blocks ===
; Ender Chest
* No longer gift wrapped around Christmas.
=== Mobs ===
; Dolphins
* Now pick the closest structure more accurately, regardless of structure type.
; Glow Squids
* Now require complete darkness to spawn.
; Tropical Fish
* Now only spawn if the block above is a full water block.
=== World generation ===
; Bastion remnant
* Bounding boxes are now slightly more accurate to the shape of the structure.
; Custom world generation
* Some fields in worldgen structures that previously only lists of element IDs now accept tags.
** Those entries now accept [id, ...], id (shortcut for [id]), and #tag.
** Changed fields are:
*** feature.glow_lichen configuration: can_be_placed_on
*** feature.spring_feature configuration: valid_blocks
*** feature.simple_random_selector configuration: features
*** block_predicate_type.matching_blocks: blocks
*** block_predicate_type.matching_fluids: fluids
*** biome: inner list in features, map value in carvers
*** biome_source.checkerboard: biomes
* Some tag fields now require id to be prepended with #, however they are not yet accepting element list:
** dimension_type: infiniburn
** feature.geode configuration: blocks.cannot_replace, blocks.invalid_blocks
** feature.vegetation_patch, feature.waterlogged_vegetation_patch configuration: replaceable
** feature.root_system configuration: root_replaceable
** structure_processor.protected_blocks: value
* Structure fields in noise settings no longer have separate subfields for strongholds and non-stronghold structures. Instead each structure has a tag field which is tag: concentric_rings for strongholds and tag: random_spread for non-stronghold structures.
; Seed
* A seed of the number zero is no longer handled as a special case.
* Any spaces before/after an inputted seed are trimmed.
; Superflat
* "Redstone Ready" preset's top layer of blocks has increased to height Y=55 instead of Y=-9 in order to prevent slimes from spawning.
* Changed the "Water World" preset, by replacing sand with gravel, and adding additional 64 layers of deepslate above the bedrock layer, in order to fix the ocean monument generation issue in worlds using this preset.
=== Command format ===
; 
* Now uses a namespaced ID parameter.
* Now support tags, using prefix to distinguish from normal IDs.
* The parameter is now a configured structure rather than a structure type.
** For instance, it is now possible to use or .
* The old usage for structure categories is now done via tags.
** For instance, is now .
; 
* Now support tags, using prefix to distinguish from normal IDs.
** For instance, it is now possibile to use .
=== General ===
; Data packs
* Increased data pack version from 8 to 9.
* It is now possible to add custom structures in experimental datapacks: the game now generates and stores data-driven configured structures.
** Experimental datapacks can add new structure sets.
** The field in location predicates now references a configured feature.
** The loot table function field is now a configured feature tag id.
** The loot table function no longer automatically sets the display name of the map.
* A lot of the cave generation is now configurable through data packs.
** A new registry was added for Density functions (caves are created by combining those together).
** Noise settings got a new field (and lost a couple of flags), see folder in the worldgen report.
** Noise router wires data-driven parts of the cave generation with the rest of the code.
; Debug screen
* Moved the location of the player within a chunk from "Chunk" row, into the new square brackets at the end of the "Block" row.
* Merged the "Terrain" and "Multinoise" row into the "NoiseRouter" row, with the format .
** are the same with data from the former "Multinoise" row.
** is the same with data from the former "Terrain" row.
** are the depth, initial density without jaggedness, and final density value used for terrain generation.
; Logging
* Upgrades log4j to 2.17.0.
; Tags
* Powder snow is no longer part of the block tag.
* Snow blocks and powder snow are now part of the block tag.
* Removed dirt from the block tag.
* Removed , and added block tags to the block tag.
; General
* Added a warning for users running Minecraft in a 32-bit environment in the main menu, because support for the 32-bit environment is ending.
== Fixes ==
== Videos ==
Videos made by slicedlime:
== References ==
== Notes ==
de:1.18.2
es:Java Edition 1.18.2
fr:Version Java 1.18.2
ja:Java Edition 1.18.2
pt:Edição Java 1.18.2
ru:1.18.2 (Java Edition)
zh:Java版1.18.2