I want to add a simple config option to my mod for one number, I tried reading in the wiki about options but I didn't find tutorials there for adding configs.
I also tried reading the Cloth Config example and wiki but didn't really find how to add config more on how to load, save, add screen etc... through Cloth Config.
Is there an online tutorial on how to setup simple configs, as said I only need one configurable number but would like to learn about more options, like items (for blacklists or similar).
#Help with adding config
6 messages · Page 1 of 1 (latest)
From my experience rolling your own config is tedious, even for simple stuff. There are usually edge cases and it tends to break between mc updates. I've used cloth config before but last time I checked it's in maintenance mode and generally didn't let me do all the stuff that I wanted. I highly recommend yacl (yet another config library), it's not perfect but works very well and is easy to use. Oh and the docs are quite good as well which I can't say about cloth config.
Does it have documentation on simple configs, I do not really care what helper mod I use, more so on how to use it, I simply did not find the Cloth Config wiki useful at all for how to create you config.
I remember the yacl wiki as being quite useful, but it's been some time since I looked at it
I will look at it, thank you!
Bump, I think YACL isn't right for my mod, I am not sure how configurable in theory my mod is anyway.
My mod is used to modify the stack size of potions, the configure option I want is the number potions can stack to, from testing the mod works when on server only, but not perfectly, so I am not sure if that means it client & server or server only:
What happens is that creative only works on client & server, survival works on both client & server and server only (didn't check client only, not sure how really), but on server only it when splitting a stack it it shows like potions can only split to one but splits them correctly when completing the number of piles you want to split to.
I think I should use Cloth Config, can any one help me with that?