9
0
mirror of https://github.com/Kas-tle/java2bedrock.sh.git synced 2025-12-27 10:39:07 +00:00

Update converter.sh

Mappings version now an int
Changed ``unbreaking`` to ``unbreakable`` according to the changes in the PR(Merged)
This commit is contained in:
Typical
2022-07-04 22:06:45 +07:00
committed by GitHub
parent ae57f8da7a
commit e7bcc464a1

View File

@@ -991,7 +991,7 @@ jq '
}
+ (if .value.nbt.CustomModelData then {"custom_model_data": (.value.nbt.CustomModelData)} else {} end)
+ (if .value.nbt.Damage then {"damage_predicate": (.value.nbt.Damage)} else {} end)
+ (if .value.nbt.Unbreakable then {"unbreaking": (.value.nbt.Unbreakable)} else {} end)
+ (if .value.nbt.Unbreakable then {"unbreakable": (.value.nbt.Unbreakable)} else {} end)
]
}
)
@@ -999,7 +999,7 @@ jq '
| group_by(.key)[]
| {(.[0].key) : map(.value) | add}] | add) as $mappings
| {
"format_version": "1.0.0",
"format_version": "1",
"items": $mappings
}
' config.json | sponge ./target/geyser_mappings.json