Skip to content

Commit

Permalink
Flip blockName and propertyName in added, renamed, remapped and remov…
Browse files Browse the repository at this point in the history
…ed properties

this saves a ton of space in the common cases, because typically one property is modified across many blocks at the same time.
the vast majority of the benefit is experienced by renames, remaps and removals, as properties aren't added very often.
  • Loading branch information
dktapps committed Mar 12, 2024
1 parent 1496e27 commit bead39c
Show file tree
Hide file tree
Showing 21 changed files with 731 additions and 1,597 deletions.
888 changes: 235 additions & 653 deletions nbt_upgrade_schema/0001_1.9.0_to_1.10.0.json

Large diffs are not rendered by default.

62 changes: 28 additions & 34 deletions nbt_upgrade_schema/0011_1.10.0_to_1.12.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,57 +3,51 @@
"maxVersionMinor": 12,
"maxVersionPatch": 0,
"maxVersionRevision": 1,
"addedProperties": {
"minecraft:barrel": {
"open_bit": {
"addedProperties2": {
"direction": {
"minecraft:campfire": {
"int": 0
}
},
"extinguished": {
"minecraft:campfire": {
"byte": 0
}
},
"minecraft:bell": {
"toggle_bit": {
"open_bit": {
"minecraft:barrel": {
"byte": 0
}
},
"minecraft:campfire": {
"direction": {
"int": 0
},
"extinguished": {
"powered_bit": {
"minecraft:lectern": {
"byte": 0
}
},
"minecraft:lectern": {
"powered_bit": {
"toggle_bit": {
"minecraft:bell": {
"byte": 0
}
}
},
"renamedProperties": {
"minecraft:blast_furnace": {
"direction": "facing_direction"
"renamedProperties2": {
"direction": {
"minecraft:blast_furnace": "facing_direction",
"minecraft:coral_fan": "coral_fan_direction",
"minecraft:coral_fan_dead": "coral_fan_direction",
"minecraft:smoker": "facing_direction"
},
"minecraft:composter": {
"fill_level": "composter_fill_level"
},
"minecraft:coral_fan": {
"direction": "coral_fan_direction"
},
"minecraft:coral_fan_dead": {
"direction": "coral_fan_direction"
},
"minecraft:smoker": {
"direction": "facing_direction"
"fill_level": {
"minecraft:composter": "composter_fill_level"
}
},
"remappedPropertyValues": {
"minecraft:barrel": {
"facing_direction": "facing_direction_00"
},
"minecraft:blast_furnace": {
"direction": "direction_00"
"remappedPropertyValues2": {
"direction": {
"minecraft:blast_furnace": "direction_00",
"minecraft:smoker": "direction_00"
},
"minecraft:smoker": {
"direction": "direction_00"
"facing_direction": {
"minecraft:barrel": "facing_direction_00"
}
},
"remappedPropertyValuesIndex": {
Expand Down
Loading

0 comments on commit bead39c

Please sign in to comment.