DatapackLib
Makes datapack creation easier for plugin devs
About DatapackLib
Adds easy to create Datapacks for HyTale Plugins
How to use:
Create a class for your entries implementing DatapackEntry.
Create a codec for your datapack entry.
In you Plugin setup method create a new DatapackReader using the pack name and codec for your entries.
Access your datapack entries by the DatapackManager class.
For more customised use of datapacks you can use save your datapack reader to a property for getDataObjects method and getDataValues method.
Additionally, If extending DatapackReader you can override saveToManager to sort the entries before saving or alternatively save the entries to a new property to fit your use case.
Backup DataGen is available by appending a DatapackProvider to the DatapackReader constructor. DatapackProvider#generatePack will be called if no pack entries could be read.
Saves packs to Saves/worldName/mods/modName/datapackName
See github for example classes and comments.
Categories
Need a Server?
Run DatapackLib on a dedicated Hytale server with easy mod management.
Get Hytale HostingFrequently Asked Questions
What is DatapackLib?
Makes datapack creation easier for plugin devs
How do I download DatapackLib?
You can download DatapackLib for free from CurseForge. Click the "Download on CurseForge" button on this page to go directly to the download page.
Who created DatapackLib?
DatapackLib was created by DuckXYZ. The mod has been downloaded 68 times.
Is DatapackLib compatible with Hytale servers?
DatapackLib is designed for Hytale and can be used on both single-player and multiplayer servers. Check the mod page on CurseForge for specific compatibility information.
How do I install DatapackLib?
To install DatapackLib: 1) Download the mod from CurseForge, 2) Place the file in your Hytale mods folder, 3) Restart the game. The mod should load automatically.
Related Misc Mods
View all modsYmmersive Melodies
Conczin
Upload and play MIDI files in-game on various instruments to annoy your friends with custom melodies!
MultipleHUD
Buuz135
A simple mod that allows you to have multiple HUDs present at once.
Spanish Translation
Plexu5
A Spanish language translation for Hytale. Includes UI, items, and menus.
YUNG's HyDungeons
YUNGNICKYOUNG
Adds new procedurally generated dungeon instances!
Just Enough Tales (JEI mod)
uwudwagon
A JEI mod for Hytale.
[NoCube's] Simple Bags
NoCube
Adds bags that you can put anything in!