Posted November 2, 20186 yr So i already made it where a config file is generated for my mod, but i don't know how to access the values i stored in it and store those into variables to use around my code. How would i do so?
November 2, 20186 yr It depends on how your configuration is setup. Are you using the suggested @Config annotation system? If you are it's just a matter of referencing the fields in the annotated class. If you are not however then you can get the data from the configuration using various getters provided by Configuration class, like Configuration#getFloat for example.
November 3, 20186 yr Author I seem to can't use the @Config annotation. I'm modded for 1.8.9, and I don't know if thats supported in that version.
November 3, 20186 yr 9 minutes ago, Sinon434Real said: I'm modded for 1.8.9 Well you need to update to a modern version of the game. As far as I am aware versions below 1.9 are no longer supported on this forum and you've discovered one of the many reasons as to why.
November 3, 20186 yr Author Darn, well i have reasons to why im modding for 1.8.9, but ok. Maybe ill update my mod to 1.12.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.