mrkite / minutor

Mapping for Minecraft
http://seancode.com/minutor
BSD 2-Clause "Simplified" License
279 stars 51 forks source link

parse datapacks for their name #371

Closed EtlamGit closed 1 year ago

EtlamGit commented 1 year ago

Parse all enabled datapacks for their real name (not the filename). Put all found datapacks in a list in WorldInfo, support zipped and unzipped storage. Can be used to query whether a specific datapack is used in that world.

Refactored Custom Dimension parsing into the same code.

Example usage: Just call e.g. WorldInfo::isDatapackEnabled("Chunklock") to query if the datapack (in this case "Chunklock") is used.

madmaxoft commented 1 year ago

Does this work for server worlds, too? Are the folders the same?

EtlamGit commented 1 year ago

Yes, in (downloaded) server worlds it is the same.