From 46c55d414a3394c4aeebb3b2659ce9a44ab90876 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 31 Jan 2022 01:23:49 +0000 Subject: [PATCH] added JSON schema describing how to upgrade each version's blockstates (generated) --- .../mapping_schema_0001_1.13.0_to_1.14.0.json | 7 ++ .../mapping_schema_0011_1.14.0_to_1.16.0.json | 60 ++++++++++ ...ing_schema_0012_1.16.0_beta_to_1.16.0.json | 26 +++++ ...apping_schema_0021_1.16.0_to_1.16.100.json | 110 ++++++++++++++++++ ...ping_schema_0031_1.16.200_to_1.16.210.json | 16 +++ ...apping_schema_0041_1.17.10_to_1.17.30.json | 20 ++++ ...apping_schema_0051_1.17.30_to_1.17.40.json | 12 ++ upgrade_schema/mapping_schema_schema.json | 76 ++++++++++++ 8 files changed, 327 insertions(+) create mode 100644 upgrade_schema/mapping_schema_0001_1.13.0_to_1.14.0.json create mode 100644 upgrade_schema/mapping_schema_0011_1.14.0_to_1.16.0.json create mode 100644 upgrade_schema/mapping_schema_0012_1.16.0_beta_to_1.16.0.json create mode 100644 upgrade_schema/mapping_schema_0021_1.16.0_to_1.16.100.json create mode 100644 upgrade_schema/mapping_schema_0031_1.16.200_to_1.16.210.json create mode 100644 upgrade_schema/mapping_schema_0041_1.17.10_to_1.17.30.json create mode 100644 upgrade_schema/mapping_schema_0051_1.17.30_to_1.17.40.json create mode 100644 upgrade_schema/mapping_schema_schema.json diff --git a/upgrade_schema/mapping_schema_0001_1.13.0_to_1.14.0.json b/upgrade_schema/mapping_schema_0001_1.13.0_to_1.14.0.json new file mode 100644 index 0000000..df512c0 --- /dev/null +++ b/upgrade_schema/mapping_schema_0001_1.13.0_to_1.14.0.json @@ -0,0 +1,7 @@ +{ + "renamedProperties": { + "minecraft:kelp": { + "age": "kelp_age" + } + } +} \ No newline at end of file diff --git a/upgrade_schema/mapping_schema_0011_1.14.0_to_1.16.0.json b/upgrade_schema/mapping_schema_0011_1.14.0_to_1.16.0.json new file mode 100644 index 0000000..058034e --- /dev/null +++ b/upgrade_schema/mapping_schema_0011_1.14.0_to_1.16.0.json @@ -0,0 +1,60 @@ +{ + "addedProperties": { + "minecraft:melon_stem": { + "facing_direction": [ + { + "type": "int", + "value": 0 + } + ] + }, + "minecraft:jigsaw": { + "rotation": [ + { + "type": "int", + "value": 0 + } + ] + }, + "minecraft:cobblestone_wall": { + "wall_connection_type_east": [ + { + "type": "string", + "value": "none" + } + ], + "wall_connection_type_north": [ + { + "type": "string", + "value": "none" + } + ], + "wall_connection_type_south": [ + { + "type": "string", + "value": "none" + } + ], + "wall_connection_type_west": [ + { + "type": "string", + "value": "none" + } + ], + "wall_post_bit": [ + { + "type": "byte", + "value": 0 + } + ] + }, + "minecraft:pumpkin_stem": { + "facing_direction": [ + { + "type": "int", + "value": 0 + } + ] + } + } +} diff --git a/upgrade_schema/mapping_schema_0012_1.16.0_beta_to_1.16.0.json b/upgrade_schema/mapping_schema_0012_1.16.0_beta_to_1.16.0.json new file mode 100644 index 0000000..d2e8c7e --- /dev/null +++ b/upgrade_schema/mapping_schema_0012_1.16.0_beta_to_1.16.0.json @@ -0,0 +1,26 @@ +{ + "renamedIds": { + "minecraft:blue_fire": "minecraft:soul_fire", + "minecraft:blue_nether_wart_block": "minecraft:warped_wart_block", + "minecraft:shroomlight_block": "minecraft:shroomlight", + "minecraft:weeping_vines_block": "minecraft:weeping_vines", + "minecraft:basalt_block": "minecraft:basalt", + "minecraft:polished_basalt_block": "minecraft:polished_basalt", + "minecraft:soul_soil_block": "minecraft:soul_soil", + "minecraft:target_block": "minecraft:target", + "minecraft:crimson_trap_door": "minecraft:crimson_trapdoor", + "minecraft:lodestone_block": "minecraft:lodestone", + "minecraft:twisting_vines_block": "minecraft:twisting_vines" + }, + "removedProperties": { + "minecraft:blackstone_wall": [ + "wall_block_type" + ], + "minecraft:polished_blackstone_brick_wall": [ + "wall_block_type" + ], + "minecraft:polished_blackstone_wall": [ + "wall_block_type" + ] + } +} diff --git a/upgrade_schema/mapping_schema_0021_1.16.0_to_1.16.100.json b/upgrade_schema/mapping_schema_0021_1.16.0_to_1.16.100.json new file mode 100644 index 0000000..7c9e5f8 --- /dev/null +++ b/upgrade_schema/mapping_schema_0021_1.16.0_to_1.16.100.json @@ -0,0 +1,110 @@ +{ + "renamedProperties": { + "minecraft:beehive": { + "facing_direction": "direction" + }, + "minecraft:bee_nest": { + "facing_direction": "direction" + } + }, + "addedProperties": { + "minecraft:chain": { + "pillar_axis": [ + { + "type": "string", + "value": "y" + } + ] + } + }, + "remappedPropertyValues": { + "minecraft:beehive": { + "facing_direction": [ + { + "old": { + "type": "int", + "value": 1 + }, + "new": { + "type": "int", + "value": 0 + } + }, + { + "old": { + "type": "int", + "value": 3 + }, + "new": { + "type": "int", + "value": 0 + } + }, + { + "old": { + "type": "int", + "value": 5 + }, + "new": { + "type": "int", + "value": 3 + } + }, + { + "old": { + "type": "int", + "value": 4 + }, + "new": { + "type": "int", + "value": 1 + } + } + ] + }, + "minecraft:bee_nest": { + "facing_direction": [ + { + "old": { + "type": "int", + "value": 4 + }, + "new": { + "type": "int", + "value": 1 + } + }, + { + "old": { + "type": "int", + "value": 3 + }, + "new": { + "type": "int", + "value": 0 + } + }, + { + "old": { + "type": "int", + "value": 5 + }, + "new": { + "type": "int", + "value": 3 + } + }, + { + "old": { + "type": "int", + "value": 1 + }, + "new": { + "type": "int", + "value": 0 + } + } + ] + } + } +} \ No newline at end of file diff --git a/upgrade_schema/mapping_schema_0031_1.16.200_to_1.16.210.json b/upgrade_schema/mapping_schema_0031_1.16.200_to_1.16.210.json new file mode 100644 index 0000000..07d7f03 --- /dev/null +++ b/upgrade_schema/mapping_schema_0031_1.16.200_to_1.16.210.json @@ -0,0 +1,16 @@ +{ + "removedProperties": { + "minecraft:stripped_crimson_hyphae": [ + "deprecated" + ], + "minecraft:stripped_crimson_stem": [ + "deprecated" + ], + "minecraft:stripped_warped_hyphae": [ + "deprecated" + ], + "minecraft:stripped_warped_stem": [ + "deprecated" + ] + } +} \ No newline at end of file diff --git a/upgrade_schema/mapping_schema_0041_1.17.10_to_1.17.30.json b/upgrade_schema/mapping_schema_0041_1.17.10_to_1.17.30.json new file mode 100644 index 0000000..016f0da --- /dev/null +++ b/upgrade_schema/mapping_schema_0041_1.17.10_to_1.17.30.json @@ -0,0 +1,20 @@ +{ + "addedProperties": { + "minecraft:frame": { + "item_frame_photo_bit": [ + { + "type": "byte", + "value": 0 + } + ] + }, + "minecraft:glow_frame": { + "item_frame_photo_bit": [ + { + "type": "byte", + "value": 0 + } + ] + } + } +} \ No newline at end of file diff --git a/upgrade_schema/mapping_schema_0051_1.17.30_to_1.17.40.json b/upgrade_schema/mapping_schema_0051_1.17.30_to_1.17.40.json new file mode 100644 index 0000000..d3bebe8 --- /dev/null +++ b/upgrade_schema/mapping_schema_0051_1.17.30_to_1.17.40.json @@ -0,0 +1,12 @@ +{ + "addedProperties": { + "minecraft:sculk_catalyst": { + "bloom": [ + { + "type": "byte", + "value": 0 + } + ] + } + } +} \ No newline at end of file diff --git a/upgrade_schema/mapping_schema_schema.json b/upgrade_schema/mapping_schema_schema.json new file mode 100644 index 0000000..5eb1493 --- /dev/null +++ b/upgrade_schema/mapping_schema_schema.json @@ -0,0 +1,76 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "$defs": { + "blockStateProperty": { + "type": "object", + "properties": { + "type": { + "oneOf": ["int", "string", "byte"] + }, + "value": { + "anyOf": ["int", "string"] + } + } + } + }, + "type": "object", + "additionalProperties": false, + "properties": { + "renamedIds": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "renamedProperties": { + "type": "object", + "additionalProperties": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "addedProperties": { + "type": "object", + "additionalProperties": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "value": { + "type": ["string", "integer"] + } + } + } + } + } + }, + "removedProperties": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "remappedPropertyValues": { + "type": "object", + "additionalProperties": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "$ref": "#/$defs/blockStateProperty" + } + } + } + } + } +}