Carpet

Carpet

2M Downloads

datapacks created by create_datapack cannot have filter section in pack.mcmeta

17183248569 opened this issue ยท 0 comments

commented

this is a new feature in 1.19.

Path zipRoot = zipfs.getPath("/");
zipValueToJson(zipRoot.resolve("pack.mcmeta"), MapValue.wrap(
Map.of(StringValue.of("pack"), MapValue.wrap(Map.of(
StringValue.of("pack_format"), new NumericValue(SharedConstants.getCurrentVersion().getPackVersion()),
StringValue.of("description"), StringValue.of(name),
StringValue.of("source"), StringValue.of("scarpet")
)))

https://minecraft.fandom.com/wiki/Java_Edition_1.19

I suggest that the 'pack.mcmeta' in the incoming map should be automatically merged with the automatically generated 'pack.mcmeta'.