What is Tulip?
Tulip is a lightweight and easy-to-use config library for Minecraft that simplifies the process of saving and loading data to and from config files. With its simple API, Tulip allows you to easily manage your mod's config settings. Whether you're a beginner or an experienced modder, Tulip's intuitive design means that it is easy to handle things like saving and loading data all while the mod handles errors for you.
You can use this mod to add configurations to your mods. To clarify, this mod isn't for making config screens (where other config libraries do so), this library is for handling saving and loading. You will have to create your own config screen class to handle actually dealing with your mod's data.
Well, where do I find a source to learn how to use this library?
I've made a GitHub wiki page that explains every step in the process of using Tulip, as well as setting up a simple config screen along with it. You can find it here.
IMPORTANT
Please note that most likely older versions of Tulip are broken and should be considered broken even if they aren't. If you're a mod creator and would like to use Tulip, please be sure to download the latest version of Tulip.
Potential Future Additions
- Quick config screen creation
- JSON config files
- Automatic class serialization and deserialization
How to Install Tulip (Mod)
Tulip by TimeSquared is verified for Fabric, Quilt across Minecraft versions 1.0, 1.1, 1.10, 1.10.1, 1.10.2, 1.11, 1.11.1, 1.11.2 (latest release: 1.2.2, file size: 20 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.0, 1.1, 1.10, 1.10.1, 1.10.2, 1.11, 1.11.1, 1.11.2) and platform (Fabric, Quilt).
- Make sure you have the compatible loader or environment installed for Fabric, Quilt.
- Move the downloaded Tulip file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version- Added
loadWithoutSave() - Added
setDefault() - Made a separate absolute path constructor
- Disambiguified some method names
- General code cleanups
- Minor fix to allow Tulip to run on all Minecraft versions.
- Changed the
load()method to also save after loading config to ensure that properties are synced correctly
- Changed internal API methods
load()andsave()toloadUnsafe()andsaveUnsafe() - Added new
load()andsave()methods that handle file exceptions automatically