{"id":88570,"date":"2026-06-05T04:29:44","date_gmt":"2026-06-05T01:29:44","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/jsconf\/"},"modified":"2026-06-05T04:29:44","modified_gmt":"2026-06-05T01:29:44","slug":"jsconf","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/jsconf\/","title":{"rendered":"JasonConfig"},"content":{"rendered":"<p># This is a LIBRARY mod, if you are a user just INSTALL it, do not read below! <\/p>\n<p>## For Developers &#8212;<\/p>\n<p>Adding the dependancy [<br \/>\n    Just use CurseMaven, the repository for that is here, https:\/\/www.cursemaven.com\/<br \/>\n    Add the dependency using the snippet in the needed version in Files<br \/>\n    example (not the right mod)<br \/>\n    implementation &#8220;curse.maven:cloth-config-348521:5987045&#8221;<br \/>\n]<\/p>\n<p>Pros and Cons vs Forge&#8217;s config<br \/>\n###<br \/>\n### -Pros &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>    Uses JSON instead of TOML, making it more reliable (For example, Forge Configs do not easily support empty lists and can break when using them)<br \/>\n    Compatible with reading and writing many more Java \/ Minecraft classes than Forge configs (For example, Vec3 cannot be written or read to a forge config, JasonConfig has no issues with it because of JSON objects)<br \/>\n    Simpler to write in code while still being similar to how you create Forge config classes (see below)<\/p>\n<p>### -Cons &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>    Slightly less user readable because its in JSON format<br \/>\n    Experimental, while I haven&#8217;t found bugs yet I&#8217;m sure some will come, I&#8217;m only one guy after all<\/p>\n<p>Example Config (Can also be found in the &#8220;api&#8221; package of the mod once you add it to your dependencies)<\/p>\n<p>Everything you need in the &#8220;api&#8221; package is well documented and should be referred to<\/p>\n<p>&#8220;`<br \/>\npublic class ExampleConfigClass {<br \/>\n    public static final Config EXAMPLE_CONFIG = new Config(MODID + &#8220;-example_config&#8221;);<\/p>\n<p>    public static final ConfigComment DEVCOMMENT<br \/>\n            = new ConfigComment(&#8220;This file is only generated in a Dev environment&#8221;, EXAMPLE_CONFIG);<\/p>\n<p>    \/\/\/The following config values are called with the {<code>EXAMPLE_CONFIG<\/code>} Config passed in, this automatically adds it to the Config<br \/>\n    public static final ConfigValue<Float> EXAMPLE_FLOAT<br \/>\n            = new ConfigValue<>(10f, &#8220;exampleFloat&#8221;, EXAMPLE_CONFIG, new TypeToken<Float>(){}.getType());<br \/>\n    \/\/\/Comments are placed in order of declaration, so this comment will be below {<code>EXAMPLE_FLOAT<\/code>} and above {<code>EXAMPLE_LIST<\/code>}<br \/>\n    public static final ConfigComment EXAMPLE_COMMENT<br \/>\n            = new ConfigComment(&#8220;This is a list!&#8221;, EXAMPLE_CONFIG);<br \/>\n    public static final ConfigValue<List<String>> EXAMPLE_LIST<br \/>\n            = new ConfigValue<>(List.of(&#8220;value1&#8221;, &#8220;value2&#8221;, &#8220;value3&#8221;, &#8220;value4&#8221;), &#8220;exampleList&#8221;, EXAMPLE_CONFIG, new TypeToken<List<String>>(){}.getType());<br \/>\n    public static final ConfigComment VEC3_COMMENT<br \/>\n            = new ConfigComment(&#8220;This is a Vec3! Many Java classes that don&#8217;t work in Forge configs will work here!&#8221;, EXAMPLE_CONFIG);<br \/>\n    public static final ConfigValue<List<Vec3>> EXAMPLE_VEC3<br \/>\n            = new ConfigValue<>(List.of(new Vec3(123,123,123), Vec3.ZERO), &#8220;exampleVec3&#8221;, EXAMPLE_CONFIG, new TypeToken<List<Vec3>>(){}.getType());<br \/>\n    public static final ConfigComment CLASS_COMMENT<br \/>\n            = new ConfigComment(&#8220;This is a newly created class, records are the best way to hold data like this&#8221;, EXAMPLE_CONFIG);<br \/>\n    public static final ConfigValue<LinkedHashMap<String, Info>> EXAMPLE<br \/>\n            = new ConfigValue<>(new LinkedHashMap<>(Map.of(&#8220;information&#8221;, new Info(1.0f, false, 8))), &#8220;example&#8221;, EXAMPLE_CONFIG, new TypeToken<LinkedHashMap<String, Info>>(){}.getType());<\/p>\n<p>    \/\/\/This method must be called in your mod&#8217;s Main class<br \/>\n    \/\/\/<br \/>\n    \/\/\/ You will need to call the {<code>register()<\/code>} method on the {<code>Config<\/code>} you declared<br \/>\n    \/\/\/ and add any {<code>ConfigValue<?><\/><\/code>} variables you created if you did not assign them in the constructor<br \/>\n    public static void init()\/* This method can be called anything, init(), register(), etc*\/ {<br \/>\n        EXAMPLE_CONFIG.register();<\/p>\n<p>        \/\/\/EXAMPLES OF GRABBING VALUES<br \/>\n        \/\/EXPLICIT (Very similar to Forge&#8217;s Config)<br \/>\n    }<\/p>\n<p>    public record Info(float f, boolean bool, int integer) { }<br \/>\n}<br \/>\n&#8220;`<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Simple config API that uses the JSON data structure<\/p>\n","protected":false},"featured_media":88571,"template":"","meta":{"_minecraft_slug":"jsconf","_minecraft_project_id":"LIhJdOPR","_minecraft_author":"Corrinedev","_minecraft_license":"MIT","_minecraft_downloads":143245,"_minecraft_follows":3,"_minecraft_client_side":"optional","_minecraft_server_side":"optional","_minecraft_storage_type":"zip","_minecraft_archive_name":"jsconf.zip","_minecraft_size_bytes":29883,"_minecraft_version_count":2,"_minecraft_updated_at":"2026-05-16T22:23:38.273393Z","_minecraft_date_created":"2025-03-19T21:58:28.633177Z","_minecraft_date_modified":"2025-06-09T16:11:45.157002Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/jsconf","_minecraft_icon_attachment_id":88571,"_minecraft_imported_at":"2026-06-05T01:29:44+00:00","_minecraft_import_hash":"995084c92045074db14bba958f0cf3d7","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[104,873,126,92],"mod_loader":[106],"minecraft_version":[36,60,93,94,101,102],"class_list":["post-88570","mod","type-mod","status-publish","has-post-thumbnail","hentry","mod_category-forge","mod_category-library","mod_category-management","mod_category-utility","mod_loader-forge","minecraft_version-1-20-1","minecraft_version-1-20-2","minecraft_version-1-20-3","minecraft_version-1-20-4","minecraft_version-1-20-5","minecraft_version-1-20-6"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>JasonConfig - Minecraft<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vpesports.com\/minecraft\/mods\/jsconf\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JasonConfig - Minecraft\" \/>\n<meta property=\"og:description\" content=\"Simple config API that uses the JSON data structure\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/jsconf\/\" \/>\n<meta property=\"og:site_name\" content=\"Minecraft\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/jsconf\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/jsconf\\\/\",\"name\":\"JasonConfig - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/jsconf\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/jsconf\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/jsconf-icon-405ed67da3255a71ec8a1eee23ef75450dbde334.png\",\"datePublished\":\"2026-06-05T01:29:44+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/jsconf\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/jsconf\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/jsconf\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/jsconf-icon-405ed67da3255a71ec8a1eee23ef75450dbde334.png\",\"contentUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/jsconf-icon-405ed67da3255a71ec8a1eee23ef75450dbde334.png\",\"width\":64,\"height\":64},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/jsconf\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mods\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"JasonConfig\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\",\"name\":\"Minecraft\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JasonConfig - Minecraft","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vpesports.com\/minecraft\/mods\/jsconf\/","og_locale":"en_US","og_type":"article","og_title":"JasonConfig - Minecraft","og_description":"Simple config API that uses the JSON data structure","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/jsconf\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/jsconf\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/jsconf\/","name":"JasonConfig - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/jsconf\/#primaryimage"},"image":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/jsconf\/#primaryimage"},"thumbnailUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/jsconf-icon-405ed67da3255a71ec8a1eee23ef75450dbde334.png","datePublished":"2026-06-05T01:29:44+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/jsconf\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/jsconf\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vpesports.com\/minecraft\/mods\/jsconf\/#primaryimage","url":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/jsconf-icon-405ed67da3255a71ec8a1eee23ef75450dbde334.png","contentUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/jsconf-icon-405ed67da3255a71ec8a1eee23ef75450dbde334.png","width":64,"height":64},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/jsconf\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vpesports.com\/minecraft\/"},{"@type":"ListItem","position":2,"name":"Mods","item":"https:\/\/vpesports.com\/minecraft\/mods\/"},{"@type":"ListItem","position":3,"name":"JasonConfig"}]},{"@type":"WebSite","@id":"https:\/\/vpesports.com\/minecraft\/#website","url":"https:\/\/vpesports.com\/minecraft\/","name":"Minecraft","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vpesports.com\/minecraft\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod\/88570","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod"}],"about":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/types\/mod"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media\/88571"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=88570"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=88570"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=88570"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=88570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}