resource: add new Minecraft 1.21.5 block types

This commit is contained in:
Matthias Schiffer 2025-04-02 19:05:09 +02:00
parent 5f84ec8ed2
commit 42b302f493
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
4 changed files with 109 additions and 2 deletions

View file

@ -2,6 +2,12 @@
## [Unreleased] - ReleaseDate ## [Unreleased] - ReleaseDate
### Added
- Added support for Minecraft 1.21.5
Added new block types and handling for changed sign text storage format.
## [2.5.0] - 2025-03-16 ## [2.5.0] - 2025-03-16
### Added ### Added

View file

@ -1488,6 +1488,16 @@ pub const BLOCK_TYPES: &[(&str, ConstBlockType)] = &[
sign_material: None, sign_material: None,
}, },
), ),
(
"bush",
ConstBlockType {
block_color: BlockColor {
flags: make_bitflags!(BlockFlag::{Opaque|Grass}),
color: Color([119, 120, 119]),
},
sign_material: None,
},
),
( (
"cactus", "cactus",
ConstBlockType { ConstBlockType {
@ -1498,6 +1508,16 @@ pub const BLOCK_TYPES: &[(&str, ConstBlockType)] = &[
sign_material: None, sign_material: None,
}, },
), ),
(
"cactus_flower",
ConstBlockType {
block_color: BlockColor {
flags: make_bitflags!(BlockFlag::{Opaque}),
color: Color([209, 120, 135]),
},
sign_material: None,
},
),
( (
"cake", "cake",
ConstBlockType { ConstBlockType {
@ -3808,6 +3828,16 @@ pub const BLOCK_TYPES: &[(&str, ConstBlockType)] = &[
sign_material: None, sign_material: None,
}, },
), ),
(
"firefly_bush",
ConstBlockType {
block_color: BlockColor {
flags: make_bitflags!(BlockFlag::{Opaque}),
color: Color([87, 83, 43]),
},
sign_material: None,
},
),
( (
"fletching_table", "fletching_table",
ConstBlockType { ConstBlockType {
@ -4878,6 +4908,16 @@ pub const BLOCK_TYPES: &[(&str, ConstBlockType)] = &[
sign_material: None, sign_material: None,
}, },
), ),
(
"leaf_litter",
ConstBlockType {
block_color: BlockColor {
flags: make_bitflags!(BlockFlag::{}),
color: Color([0, 0, 0]),
},
sign_material: None,
},
),
( (
"lectern", "lectern",
ConstBlockType { ConstBlockType {
@ -8698,6 +8738,16 @@ pub const BLOCK_TYPES: &[(&str, ConstBlockType)] = &[
sign_material: None, sign_material: None,
}, },
), ),
(
"short_dry_grass",
ConstBlockType {
block_color: BlockColor {
flags: make_bitflags!(BlockFlag::{Opaque}),
color: Color([187, 158, 108]),
},
sign_material: None,
},
),
( (
"short_grass", "short_grass",
ConstBlockType { ConstBlockType {
@ -9638,6 +9688,16 @@ pub const BLOCK_TYPES: &[(&str, ConstBlockType)] = &[
sign_material: None, sign_material: None,
}, },
), ),
(
"tall_dry_grass",
ConstBlockType {
block_color: BlockColor {
flags: make_bitflags!(BlockFlag::{Opaque}),
color: Color([196, 171, 122]),
},
sign_material: None,
},
),
( (
"tall_grass", "tall_grass",
ConstBlockType { ConstBlockType {
@ -9678,6 +9738,26 @@ pub const BLOCK_TYPES: &[(&str, ConstBlockType)] = &[
sign_material: None, sign_material: None,
}, },
), ),
(
"test_block",
ConstBlockType {
block_color: BlockColor {
flags: make_bitflags!(BlockFlag::{}),
color: Color([0, 0, 0]),
},
sign_material: None,
},
),
(
"test_instance_block",
ConstBlockType {
block_color: BlockColor {
flags: make_bitflags!(BlockFlag::{}),
color: Color([0, 0, 0]),
},
sign_material: None,
},
),
( (
"tinted_glass", "tinted_glass",
ConstBlockType { ConstBlockType {
@ -10828,6 +10908,16 @@ pub const BLOCK_TYPES: &[(&str, ConstBlockType)] = &[
sign_material: None, sign_material: None,
}, },
), ),
(
"wildflowers",
ConstBlockType {
block_color: BlockColor {
flags: make_bitflags!(BlockFlag::{}),
color: Color([0, 0, 0]),
},
sign_material: None,
},
),
( (
"wither_rose", "wither_rose",
ConstBlockType { ConstBlockType {

View file

@ -316,9 +316,13 @@
"bubble_coral_fan": null, "bubble_coral_fan": null,
"bubble_coral_wall_fan": null, "bubble_coral_wall_fan": null,
"budding_amethyst": {}, "budding_amethyst": {},
"bush": {
"grass": true
},
"cactus": { "cactus": {
"texture": "cactus_top" "texture": "cactus_top"
}, },
"cactus_flower": {},
"cake": { "cake": {
"texture": "cake_top" "texture": "cake_top"
}, },
@ -778,6 +782,7 @@
"fire_coral_block": {}, "fire_coral_block": {},
"fire_coral_fan": null, "fire_coral_fan": null,
"fire_coral_wall_fan": null, "fire_coral_wall_fan": null,
"firefly_bush": {},
"fletching_table": { "fletching_table": {
"texture": "fletching_table_top" "texture": "fletching_table_top"
}, },
@ -987,6 +992,7 @@
"lava_cauldron": { "lava_cauldron": {
"texture": "cauldron_top" "texture": "cauldron_top"
}, },
"leaf_litter": null,
"lectern": { "lectern": {
"texture": "lectern_top" "texture": "lectern_top"
}, },
@ -1782,6 +1788,7 @@
"sea_lantern": {}, "sea_lantern": {},
"sea_pickle": {}, "sea_pickle": {},
"seagrass": {}, "seagrass": {},
"short_dry_grass": {},
"short_grass": null, "short_grass": null,
"shroomlight": {}, "shroomlight": {},
"shulker_box": {}, "shulker_box": {},
@ -2013,6 +2020,7 @@
"sweet_berry_bush": { "sweet_berry_bush": {
"texture": "sweet_berry_bush_stage3" "texture": "sweet_berry_bush_stage3"
}, },
"tall_dry_grass": {},
"tall_grass": { "tall_grass": {
"grass": true, "grass": true,
"texture": "tall_grass_top" "texture": "tall_grass_top"
@ -2024,6 +2032,8 @@
"texture": "target_top" "texture": "target_top"
}, },
"terracotta": {}, "terracotta": {},
"test_block": null,
"test_instance_block": null,
"tinted_glass": {}, "tinted_glass": {},
"tnt": { "tnt": {
"texture": "tnt_top" "texture": "tnt_top"
@ -2288,6 +2298,7 @@
"white_tulip": null, "white_tulip": null,
"white_wall_banner": null, "white_wall_banner": null,
"white_wool": {}, "white_wool": {},
"wildflowers": null,
"wither_rose": null, "wither_rose": null,
"wither_skeleton_skull": null, "wither_skeleton_skull": null,
"wither_skeleton_wall_skull": null, "wither_skeleton_wall_skull": null,

View file

@ -26,7 +26,7 @@ use crate::{
/// ///
/// Increase when the generation of processed regions from region data changes /// Increase when the generation of processed regions from region data changes
/// (usually because of updated resource data) /// (usually because of updated resource data)
pub const REGION_FILE_META_VERSION: FileMetaVersion = FileMetaVersion(6); pub const REGION_FILE_META_VERSION: FileMetaVersion = FileMetaVersion(7);
/// MinedMap map tile data version number /// MinedMap map tile data version number
/// ///
@ -38,7 +38,7 @@ pub const MAP_FILE_META_VERSION: FileMetaVersion = FileMetaVersion(0);
/// ///
/// Increase when the generation of lightmap tiles from region data changes /// Increase when the generation of lightmap tiles from region data changes
/// (usually because of updated resource data) /// (usually because of updated resource data)
pub const LIGHTMAP_FILE_META_VERSION: FileMetaVersion = FileMetaVersion(4); pub const LIGHTMAP_FILE_META_VERSION: FileMetaVersion = FileMetaVersion(5);
/// MinedMap mipmap data version number /// MinedMap mipmap data version number
/// ///