{{Infobox version
|title=Minecraft 1.18.2
|image=22w07a.jpg
|image2=Java Edition 1.18.2.png
|edition=Java
|date=February 28, 2022
|jsonhash=86f9645f8398ec902cd17769058851e6fead68cf
|clienthash=2e9a3e3107cca00d6bc9c97bf7d149cae163ef21
|clientmap=a661c6a55a0600bd391bdbbd6827654c05b2109c
|serverhash=c8f83c5655308435b3dcf03c06d9fe8740a77469
|servermap=e562f588fea155d96291267465dc3323bfe1551b
|prevparent=1.18
|prev=1.18.1
|next=
|nextparent=1.19
}}
'''1.18.2''' is a minor update to {{JE}}, released on February 28, 2022, which adds the {{cmd|placefeature}} command, makes changes to [[tag]]s and [[custom world generation]], and fixes bugs.[{{Mcnet|minecraft-java-edition-1-18-2|Minecraft Java Edition 1.18.2|February 28, 2022}}] It is not compatible with [[Java Edition 1.18|1.18]] and [[Java Edition 1.18.1|1.18.1]] servers.
== Additions ==
=== World generation ===
; [[Custom world generation]]
* Added biomes
field in configured structure files, which is a tag.
* Added {{w|Spline interpolation|spline density}} function: general-purpose building block that allows user to express almost any function using a cubic spline.
=== Command format ===
; {{cmd|placefeature}}
* Used to place a configured feature at a given location.
* Syntax: {{cmd|placefeature []|link=none}}
** 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 ===
[[File:Regional compliancies notification 1 hour.png|thumb|Notification of playing greater than 1 hour.]]
[[File:Regional compliancies notification 1 day.png|thumb|Notification of playing greater than 24 hours.]]
; 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.
; [[Language]]s
* Added Friulian.[Also available for versions since [[21w37a]].]
; [[Resource pack]]s
* Added a JSON file related to the new compliance requirements, located at assets/[namespace]/regional_compliancies.json.
; [[Tag]]s
* Added the {{code|#fall_damage_resetting}} block tag.
** Contains the {{code|#climbable}} 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:
** {{cd|#is_badlands}}: {{cd|d=and|badlands|eroded_badlands|wooded_badlands}}.
** {{cd|#is_beach}}: {{cd|d=and|beach|snowy_beach}}.
** {{cd|#is_deep_ocean}}: {{cd|d=and|deep_frozen_ocean|deep_cold_ocean|deep_ocean|deep_lukewarm_ocean}}.
** {{cd|#is_forest}}: {{cd|d=and|forest|flower_forest|birch_forest|old_growth_birch_forest|dark_forest|grove}}.
** {{cd|#is_hill}}: {{cd|d=and|windswept_hills|windswept_forest|windswept_gravelly_hills}}.
** {{cd|#is_jungle}}: {{cd|d=and|bamboo_jungle|jungle|sparse_jungle}}.
** {{cd|#is_mountain}}: {{cd|d=and|meadow|frozen_peaks|jagged_peaks|stony_peaks|snowy_slopes}}.
** {{cd|#is_nether}}: {{cd|d=and|nether_wastes|basalt_deltas|soul_sand_valley|crimson_forest|warped_forest}}.
** {{cd|#is_ocean}}: {{cd|d=and|#is_deep_ocean|frozen_ocean|ocean|cold_ocean|lukewarm_ocean|warm_ocean}}.
** {{cd|#is_river}}: {{cd|d=and|river|frozen_river}}.
** {{cd|#is_taiga}}: {{cd|d=and|taiga|snowy_taiga|old_growth_pine_taiga|old_growth_spruce_taiga}}.
* Added biome tags to determine which biomes a structure can generate in, stored in tags/worldgen/biome/has_structure.
** {{cd|values}} field in these files can accept both biome IDs and biome tags.
* Added following configured structure feature tags:
** {{cd|#dolphin_located}}: {{cd|d=and|#ocean_ruin|#shipwreck}}.
** {{cd|#eye_of_ender_located}}: {{cd|stronghold}}.
** {{cd|#mineshaft}}: {{cd|d=and|mineshaft|mineshaft_mesa}}.
** {{cd|#ocean_ruin}}: {{cd|d=and|ocean_ruin_cold|ocean_ruin_warm}}.
** {{cd|#on_ocean_explorer_maps}}: {{cd|monument}}.
** {{cd|#on_treasure_maps}}: {{cd|buried_treasure}}.
** {{cd|#on_woodland_explorer_maps}}: {{cd|mansion}}.
** {{cd|#ruined_portal}}: {{cd|d=and|ruined_portal|ruined_portal_desert|ruined_portal_jungle|ruined_portal_mountain|ruined_portal_nether|ruined_portal_ocean|ruined_portal_swamp}}.
** {{cd|#shipwreck}}: {{cd|d=and|shipwreck|shipwreck_beached}}.
** {{cd|#village}}: {{cd|d=and|village|village_desert|village_plains|village_savanna|village_snowy|village_taiga}}.
== Changes ==
=== Blocks ===
; [[Ender chest]]
* No longer gift wrapped around Christmas.
=== Mobs ===
; [[Dolphin]]s
* Now pick the closest [[structure]] more accurately, regardless of structure type.
; [[Glow squid]]s
* 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 (world generation)|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 ===
; {{cmd|locate}}
* Now uses a namespaced ID parameter.
* Now support [[tag]]s, using {{cd|#}} 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 {{cmd|locate village_desert}} or {{cmd|locate shipwreck_beached}}.
* The old usage for structure categories is now done via tags.
** For instance, {{cmd|locate village}} is now {{cmd|locate #village}}.
; {{cmd|locatebiome}}
* Now support tags, using {{cd|#}} prefix to distinguish from normal IDs.
** For instance, it is now possibile to use {{cmd|locatebiome #minecraft:has_structure/igloo}}.
=== General ===
; [[Data pack]]s
* 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 {{cd|feature}} field in location predicates now references a configured feature.
** The {{cd|exploration_map}} loot table function {{cd|destination}} field is now a configured feature tag id.
** The {{cd|exploration_map}} 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 {{cd|noise_router}} (and lost a couple of flags), see {{samp|worldgen/noise_settings}} 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 {{cd|NoiseRouter T: ''data'' H: ''data'' C: ''data'' E: ''data'' D: ''data'' W: ''data'' PV: ''data'' AS: ''data'' N: ''data''}}.
** {{cd|d=and|T|H|C|E|W}} are the same with data from the former "Multinoise" row.
** {{cd|PV}} is the same with data from the former "Terrain" row.
** {{cd|d=and|D|AS|N}} are the depth, initial density without jaggedness, and final density value used for terrain generation.
; Logging
* Upgrades log4j to 2.17.0.
; [[Tag]]s
* [[Powder snow]] is no longer part of the {{code|#goats_spawnable_on}} block tag.
* [[Snow block]]s and powder snow are now part of the {{code|#azalea_root_replaceable}} block tag.
* Removed [[dirt]] from the {{cd|#dripstone_replaceable_blocks}} block tag.
* Removed {{cd|#lush_ground_replaceable}}, and added {{cd|d=and|#base_stone_overworld|#dirt|clay|gravel|sand}} block tags to the {{cd|#azalea_root_replaceable}} 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 ==
{{fixes|fixedin=1.18.2,1.18.2 Release Candidate 1,1.18.2 Pre-release 3,1.18.2 Pre-release 2,1.18.2 Pre-release 1,22w07a,22w06a,22w05a,22w03a
|;From released versions before 1.18
|3524|Structure related mobs do not spawn in flat type world generation.
|4533|Water graphical glitch when connecting diagonally.
|9232|When loading a world, the held item from the previously loaded world is briefly visible.
|53850|Invulnerable item entities and experience orbs are removed client-side when they take damage.
|56037|Killing {{cd|falling_block entity}}: texture disappears while falling but the block is still there.
|70848|Water looks like it flows up.
|72248|Falling sand creates invisible blocks.
|83938|Standing on entities with solid collision boxes (shulkers, boats) kicks you for flying.
|94025|A world with seed 0 cannot be copied using the "Re-Create" option.
|98727|Server: Entering a boat/minecart/horse while going upward from jumping causes a kick for flying.
|105317|Structure blocks do not rotate entities correctly when loading.
|111082|Riding a boat with {{code|NoGravity}} on a server without flight enabled causes kick for flying.
|126772|Underwater fog doesn't hide edge of chunks correctly at low render distances.
|129652|Long names of backed up worlds are cut off in toasts.
|133703|Right hand shown for one tick after joining world, ignoring handedness.
|135989|Kicked for flying using trident with riptide enchantment.
|138717|{{cmd|locate}} command does not locate certain structures in Superflat.
|142590|{{cd|StackOverflowError}} when using {{cmd|stop}} with player logged in.
|146854|Player movement favors x axis when in a corner.
|156309|TNT entities don't properly collide with blocks when being fired in X direction.
|158696|Armor stand with a falling block creates ghost block.
|165974|Game pushes east/west when jumping from the inside corner.
|167763|Blindness does not work underwater for certain graphics cards.
|170545|macOS: Crash upon entering fullscreen.
|179315|Ruined portals never generate in Superflat worlds by default.
|184549|Fallling blocks visually jump up when falling through cobweb.
|185545|Knockback Resistance on players is still affected by chance.
|185695|Twisting vines don't reliably protect the player from fall damage.
|187549|Horizontal velocity is not reset on +/- Z axis in 1.15.2+ when colliding with a wall.
|187911|{{cd|minecraft:endcity structure}} has no underscore while {{cd|end_city_treasure}} does.
|188086|Decorations and amethyst geodes get cut off on full chunk boundaries upon relog.
|191765|Chat closes after death when gamerule {{cd|doImmediateRespawn}} is {{cd|true}}.
|192361|{{cmd|locate stronghold}} does not locate stronghold in Superflat worlds despite them generating.
|193709|When looking exactly to the positive X direction you don't take kinetic damage when gliding with an elytra against a wall.
|195692|Structure 'End City' and configured structure in vanilla end 'End City' use inconsistent identifiers.
|197128|If a custom biome uses multiple configured structure features of the same type, only one of them can generate.
|205232|Player can see farther in powder snow with blindness effect.
|210612|Strongholds do not generate in certain customized worlds despite {{cmd|locate}} saying otherwise.
|214138|Placing block after jumping from an enchantment table causes desync.
|214289|Pointed dripstone can replace blocks when generating.
|216004|Wood pillars from mineshafts are generating on pointed dripstones.
|216589|Abandoned Mineshafts don't delete dripstone in certain situations.
|218739|Glow berries and glow lichen generation does not cause light updates across chunk borders.
|221312|Decorations can occasionally replace logs that support mineshafts when generating.
|223834|Pointed dripstone can form below some non-full (non-solid) blocks.
|226359|The Zero-Width Non-Joiner shows as a "ZWNJ" box.
|227358|Baby goats do not avoid powder snow on the same y level as them.
|227995|Goats can't pathfind through open doors.
|229313|Some blocks that negate fall damage don't reliably protect mobs at certain heights.
|230905|Sky background is visible on certain reduced fog situations.
|232290|Foxes lay down in powder snow and do not try to escape even when taking damage.
|232822|Various structures not generating in Superflat worlds.
|233599|{{cmd|spreadplayers}} command does not allow for negative "{{code|under}}" values.
|234390|The {{cd|minecraft:ui.button.click}} sound isn't played when clicking on the credits button in the main menu.
|235574|Game crashes when replacing a block with a wall with blockstate {{code|up:false}}.
|242331|Entities are displayed faster than chunks.
|248225|Incorrect {{code|BlockPos getSquaredDistance()}} calculation.
|;From 1.18
|236693|"Done" button in controls submenu is very low.
|236775|Biome selector is disordered in other languages.
|237110|Grass blocks can generate underwater.
|237262|Crash report and tick profiling causes "{{code|Failed to find module info for _}}" spam to log.
|238114|Meadow trees can spawn without bee nests.
|238696|Using {{cmd|locate stronghold}} or throwing an eye of ender in Superflat, can find strongholds that do not actually exist.
|238866|Snow / powder snow can generate underwater.
|238977|Glow squids spawn in villager farms and wells in Superflat worlds.
|239031|Glitchy chunk rendering persists since 21w41a.
|239436|Broken culling in very long caves.
|239708|Superflat world "Water World" preset settings are obsolete for the 1.18 update.
|240559|JFR JSON report's {{code|bytesPerSecond}} is incorrectly calculated.
|241152|Powder snow is part of {{code|#goat_spawnable_on block tag}} / goats can spawn on powder snow.
|241205|Sandstone generates 2-5 layers instead of 3-8 layers.
|241232|Pointed dripstone doesn't properly maintain its shape when falling directly over a block.
|241288|Support for custom structures has been removed.
|242010|Snow blocks, powder snow aren't a part of {{code|#azalea_root_replaceable}} / rooted dirt can't replace snow blocks and powder snow.
|242543|Suffocation always uses the entity head center position for predicate and collision box.
|242709|Pointed dripstone clusters create holes in the ground when generating in aquifers.
|243015|Falling blocks at chunk generation cause tons of entities and (client-side) lag.
|243152|Slimes spawn in "Redstone Ready" Superflat worlds.
|243190|Rooted dirt can replace cave vines.
|243196|Driver view angle resets when another player enters or exits boat.
|243245|Unable to select "What is Realms?" button using {{key|Tab}}.
|243489|Console spam: {{code|Skipping update for removed player}}.
|243619|Raid waves can spawn outside of simulation distance.
|243766|Not able to label "Copyright Mojang AB. Do not distribute" using {{key|Tab}} key.
|244137|The option "{{code|level-seed}}" is not present in {{samp|server.properties}} by default.
|244164|Upgrade to 1.18 makes chests invisible and empty.
|244682|Some custom dimensions settings can cause the server to stop running, but not crash.
|244683|Tropical Fish in lush caves spawn in bubble columns.
|244772|Can't double click to join a realm.
|;From 1.18.1
|244174|Fog effect for void, blindness, water, lava and powder snow is cylindrical.
|245345|Crash when reloading chunks.
|245347|Flying with an elytra and colliding with floating flowing water sometimes doesn't reset fall damage.
|245406|Memory leak leading to crashes when loading pre-1.18 chunks.
|245416|Baby turtles suffocate on soul sand.
|245772|Outdated chests' loot tables get deleted when updating to 1.18.1.
|245817|Server constantly writes to disk at about 500kB/s.
|245850|Buttons in the multiplayer warning menu are not selected in order when using the {{key|Tab}} key.
|245857|Enchanting table registers block diagonally above the bookshelves as blocking said bookshelf.
|245910|Campfires and hoppers cause constant chunk saving.
|245925|Falling block visual glitch when dying with {{code|doImmediateRespawn}}.
|245937|Flashing particles when boosting upward with firework rockets.
|246445|Game crashes when dispenser with shears is used on non-beehive block in {{code|#beehives}} tag.
|246449|Game crashes when villager tries to open non-door in {{code|#wooden_doors}} tag.
|246464|Game crashes when dispensing a bone meal in a warm ocean and there is a block with no facing block state in {{code|#wall_corals}}.
|246465|Lava can burn, damage, and destroy entities client-side and lead to de-sync.
|247415|Game crashes if coral related block tags are empty during coral reef generation.
|247636|Deleting a world no longer logs that a world is being deleted.
|247871|{{code|Cannot invoke "com.mojang.datafixers.util.Either.left()" because "$$6" is null}}.
|248095|Active repeating command blocks stop running after world conversion to 1.18.
|248106|Parrot dying while using Riptide enchantment.
|248163|Horrible server performance since changes to auto-saving in 1.18-pre6.
|248316|Minecraft server 1.18.1 crashes with {{cd|OutOfMemoryError: Java heap space}}.
|;previous
|248814|{{cd|Unknown structure start: minecraft:ruined_portal_standard}}.
}}
== Video ==
{{Slicedlime|qvF6c8MQIi8|_U5rEhm3jeI}}
== References ==
{{Reflist}}
== Notes ==
{{Notelist}}
== Navigation ==
{{Navbox Java Edition versions|1.1x}}
[[de:1.18.2]]
[[es:Java Edition 1.18.2]]
[[fr:Édition Java 1.18.2]]
[[ja:Java Edition 1.18.2]]
[[lzh:爪哇版一點一八點二]]
[[pt:Edição Java 1.18.2]]
[[ru:1.18.2 (Java Edition)]]
[[zh:Java版1.18.2]]