We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable mod packer make and use config for their scripts.
val cfg as CFG = ConfigManager.define("example"); //example.cfg cfg.startSub("subFirst"); cfg.startSub("subTwo"); cfg.int(10, 0, 100); //default, min, max; cfg.requireMCRestart(); cfg.define("energy"); cfg.endSub(); cfg.endSub(); cfg.register();
VanillaFactory.createEnergyItem("example_energe_item", ConfigManager.getInt("example:subFirst.subTwo.energy"), ConfigManager.getInt("example:subFirst.subTwo.energy"), ConfigManager.getInt("example:subFirst.subTwo.energy"));
It is player-friendly. Yes, friendly.
The text was updated successfully, but these errors were encountered:
I mark it low priority, but feel free to make a PR.
Sorry, something went wrong.
No branches or pull requests
Summary
Enable mod packer make and use config for their scripts.
Details
For example
config.zs
example.zs
Why we do not edit the script directly.
It is player-friendly. Yes, friendly.
The text was updated successfully, but these errors were encountered: