mrkite / minutor

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

parse datapacks for their name #371

Closed EtlamGit closed 9 months ago

EtlamGit commented 9 months 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 9 months ago

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

EtlamGit commented 9 months ago

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