Datapack Importer
This is a Plugin for datapack creators that allows them to list their datapacks as plugins and still have them work in the plugins folder
Datapack Importer
<p align="center"> <a alt="Supports Minecraft 1.21.x" title="Go to Minecraft's Server download site" href="https://www.minecraft.net/en-us/download/server" > <img alt="Supported Minecraft Version" src="https://img.shields.io/badge/Minecraft-1.21.x-69986a" /></a> <a alt="SpigotMC" title="Go to SpigotMC's download site" href="https://hub.spigotmc.org/jenkins/" > <img alt="Supports SpigotMC" src="https://img.shields.io/badge/Supports-SpigotMC-gold?style=flat-square" /></a> <a alt="Supports PaperMC" title="Go to PaperMC's download site" href="https://papermc.io/downloads/paper" > <img alt="Supports PaperMC" src="https://img.shields.io/badge/Supports-PaperMC-blue" /></a> <a alt="Supports Folia" title="Go to Folia's download site" href="https://papermc.io/downloads/folia"> <img alt="Supports Folia" src="https://img.shields.io/badge/Supports-Folia-green" /></a> <a alt="Supports PurPur" title="Go to Purpur's download site" href="https://purpurmc.org/download/purpur"> <img alt="Supports Purpur" src="https://img.shields.io/badge/Supports-PurPur-a947ff" /></a> </p>
This is a fork of a fork made for datapack creators to be able to list their datapacks as plugins on Modrinth. The project I drew from
Datapack Importer
Datapack Importer automatically copies datapacks from your server's `plugins/` folder into the world's `datapacks/` folder on startup. This plugin is intended to allow datapack creators to distribute their datapacks as Modrinth plugins. DatapackLoader supports Folia, but does not make Folia-incompatible datapacks compatible with Folia.
The Goal
My goal is for datapack creators to be able to list their datapacks as plugins on Modrinth, with Datapack Importer as a dependency.
Plugin Installation
1. Download the plugin from latest releases. 2. Stop your server. 3. Put `DatapackImporter-X.X.X.jar` in your server's `plugins/` folder. 4. Place your datapack `.zip` in the `plugins/` folder. 5. Restart the server.
For Datapack Creators — Listing Your Datapack as a Plugin on Modrinth
You can list your datapack on Modrinth as a plugin by adding a `plugin.yml` to your datapack `.zip`. Modrinth requires this file to accept plugin uploads — the server will ignore it entirely, but Modrinth's validator will be satisfied.
1. Create a `plugin.yml`
Add a file named `plugin.yml` to the root of your datapack `.zip` with the following contents:
```yaml name: YourDatapackName version: 1.0.0 main: com.example.YourDatapackName.Main api-version: 1.21 description: A short description of your datapack. author: YourName ```
Replace `YourDatapackName` and `YourName` accordingly. The `main` field won't be loaded by the server so it just needs to look valid.
2. Upload to Modrinth
- Create a new project on Modrinth and set the project type to Datapack Importer. - Upload your `.zip` as the version file. - Add Datapack Importer as a required dependency so users know they need it.
That's it — users download your datapack zip, drop it in their `plugins/` folder alongside Datapack Importer, and it gets installed automatically on the next server start.