{"id":64809,"date":"2026-06-03T20:35:34","date_gmt":"2026-06-03T17:35:34","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/env-json\/"},"modified":"2026-06-03T20:35:34","modified_gmt":"2026-06-03T17:35:34","slug":"env-json","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/env-json\/","title":{"rendered":"env.json"},"content":{"rendered":"<p>![MModding](https:\/\/mmodding.github.io\/discord-link)<\/p>\n<p># env.json<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/github.com\/MModding\/art\/blob\/main\/mods\/env_json\/logo_named.png?raw=true\" width=\"256\" alt=\"env.json logo\"><\/p>\n<p>## Supports<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/github.com\/JR1811\/Boatism\/blob\/5bdbea79b11428101353c4a67ccd4b3821200a76\/extrernal\/promo\/badges\/supported_on_fabric_loader.png?raw=true\" width=\"256\" alt=\"Supports Fabric Loader\"><br \/>\n<img decoding=\"async\" src=\"https:\/\/github.com\/JR1811\/Boatism\/blob\/5bdbea79b11428101353c4a67ccd4b3821200a76\/extrernal\/promo\/badges\/supported_on_quilt_loader.png?raw=true\" width=\"256\" alt=\"Supports Quilt Loader\"><\/p>\n<p>## Requirements<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/github.com\/JR1811\/Boatism\/blob\/5bdbea79b11428101353c4a67ccd4b3821200a76\/extrernal\/promo\/badges\/requires_fabric_api.png?raw=true\" width=\"256\" alt=\"Requires Fabric API\"><\/p>\n<p>## Concept<\/p>\n<p>env.json is a Minecraft Library introducing a new sub json file extension format, with the goal of<br \/>\nredirecting minecraft resources to other ones based on the environment context.<\/p>\n<p>## Implementations<\/p>\n<p>env.json doesn&#8217;t provide these redirections directly, but only the operations around env.json files<br \/>\nand their resource reload management.<\/p>\n<p>There is currently two official implementations of env.json:<\/p>\n<p>&#8211; Environment Driven Assets (EDA)<\/p>\n<p>Mod Identifier: env-driven-assets.<\/p>\n<p>Environments: Client<\/p>\n<p>Applies env.json operations to Minecraft Vanilla asset types.<\/p>\n<p>&#8211; Environment Driven Data (EDD)<\/p>\n<p>Mod Identifier: env-driven-data.<\/p>\n<p>Environments: Common &#038; Server<\/p>\n<p>Applies env.json operations to Minecraft Vanilla data types.<\/p>\n<p>## The env.json Format<\/p>\n<p>&#8220;`json<br \/>\n[<br \/>\n  {<br \/>\n    &#8220;rules&#8221;: [ \/\/ the primary set of rules, is an &#8220;any&#8221; type<br \/>\n      {<br \/>\n        &#8220;type&#8221;: &#8220;sequence&#8221;, \/\/ all rules in the sequence must pass<br \/>\n        &#8220;rule&#8221;: [] \/\/ the rules<br \/>\n      },<br \/>\n      {<br \/>\n        &#8220;type&#8221;: &#8220;any&#8221;, \/\/ passes if at least one rule passes<br \/>\n        &#8220;rule&#8221;: [] \/\/ the rules<br \/>\n      },<br \/>\n      {<br \/>\n        &#8220;type&#8221;: &#8220;not&#8221;, \/\/ reverses the rule<br \/>\n        &#8220;rule&#8221;: { \/\/ the rule<br \/>\n          &#8220;type&#8221;: &#8220;&#8230;&#8221;,<br \/>\n          &#8220;rule&#8221;: &#8220;&#8230;&#8221;<br \/>\n        }<br \/>\n      },<br \/>\n      {<br \/>\n        &#8220;type&#8221;: &#8220;dimension&#8221;, \/\/ passes if the current dimension matches this one<br \/>\n        &#8220;rule&#8221;: &#8220;minecraft:overworld&#8221; \/\/ the dimension, can also be a tag<br \/>\n      },<br \/>\n      {<br \/>\n        &#8220;type&#8221;: &#8220;biome&#8221;, \/\/ passes if the current biome matches this one<br \/>\n        &#8220;rule&#8221;: &#8220;minecraft:plains&#8221; \/\/ the biome, can also be a tag<br \/>\n      },<br \/>\n      {<br \/>\n        &#8220;type&#8221;: &#8220;x_coord&#8221;, \/\/ passes if the following operations on the x-axis are valid<br \/>\n        &#8220;rule&#8221;: {<br \/>\n          &#8220;comparator&#8221;: &#8220;==&#8221;, \/\/ must be <, >, ==, <=, >=, =< or =><br \/>\n          &#8220;value&#8221;: &#8220;100&#8221; \/\/ must be an integer<br \/>\n        }<br \/>\n      },<br \/>\n      {<br \/>\n        &#8220;type&#8221;: &#8220;y_coord&#8221;, \/\/ passes if the following operations on the y-axis are valid<br \/>\n        &#8220;rule&#8221;: {<br \/>\n          &#8220;comparator&#8221;: &#8220;==&#8221;, \/\/ must be <, >, ==, <=, >=, =< or =><br \/>\n          &#8220;value&#8221;: &#8220;100&#8221; \/\/ must be an integer<br \/>\n        }<br \/>\n      },<br \/>\n      {<br \/>\n        &#8220;type&#8221;: &#8220;z_coord&#8221;, \/\/ passes if the following operations on the z-axis are valid<br \/>\n        &#8220;rule&#8221;: {<br \/>\n          &#8220;comparator&#8221;: &#8220;==&#8221;, \/\/ must be <, >, ==, <=, >=, =< or =><br \/>\n          &#8220;value&#8221;: &#8220;100&#8221; \/\/ must be an integer<br \/>\n        }<br \/>\n      },<br \/>\n      {<br \/>\n        &#8220;type&#8221;: &#8220;submerged&#8221;, \/\/ passes if the current context is surrounded by water or not<br \/>\n        &#8220;rule&#8221;: true \/\/ true for &#8220;if it is submerged&#8221; and false for &#8220;if it is not submerged&#8221;<br \/>\n      },<br \/>\n      {<br \/>\n        &#8220;type&#8221;: &#8220;sky&#8221;, \/\/ passes if the context is above the sky limit, at or below<br \/>\n        &#8220;rule&#8221;: &#8220;at&#8221; \/\/ must be &#8220;above&#8221;, &#8220;at&#8221; or &#8220;below&#8221;<br \/>\n      },<br \/>\n      {<br \/>\n        &#8220;type&#8221;: &#8220;water&#8221;, \/\/ passes if the context is above the water level, at or below<br \/>\n        &#8220;rule&#8221;: &#8220;at&#8221; \/\/ must be &#8220;above&#8221;, &#8220;at&#8221; or &#8220;below&#8221;<br \/>\n      },<br \/>\n      {<br \/>\n        &#8220;type&#8221;: &#8220;void&#8221;, \/\/ passes if the context is above the void limit, at or below<br \/>\n        &#8220;rule&#8221;: &#8220;at&#8221; \/\/ must be &#8220;above&#8221;, &#8220;at&#8221; or &#8220;below&#8221;<br \/>\n      }<br \/>\n    ],<br \/>\n    &#8220;result&#8221;: &#8220;minecraft:block\/stone&#8221; \/\/ the redirected resource<br \/>\n  }<br \/>\n]<br \/>\n&#8220;`<\/p>\n<p>The file must be registered under this format: `redirected_resource_name-redirected_resource_extension.env.json`.<\/p>\n<p>## Usage For Developers<\/p>\n<p>In your `build.gradle`<br \/>\n&#8220;`groovy<br \/>\nrepositories {<br \/>\n    \/\/ &#8230;<br \/>\n    maven { url &#8216;https:\/\/jitpack.io&#8217; }<br \/>\n}<\/p>\n<p>\/\/ &#8230;<\/p>\n<p>dependencies {<br \/>\n    \/\/ &#8230;<br \/>\n    modImplementation &#8220;com.mmodding:env.json:${theMostBeautifulVersionYouCanFind}&#8221;<br \/>\n}<br \/>\n&#8220;`<\/p>\n<p>You can now get your `EnvJson` object from a `Resource` object thanks to `ExtendedResource#of(Resource)#getEnvJson`<br \/>\nor parse it with `EnvJson#parse(Path)` or `EnvJson#parse(InputStream)`.<\/p>\n<p>## Badge For Developers<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/github.com\/MModding\/art\/blob\/main\/mods\/env_json\/requires_env_json.png?raw=true\" width=\"256\" alt=\"Requires env.json\"><\/p>\n<p>`<img decoding=\"async\" src=\"https:\/\/github.com\/MModding\/art\/blob\/main\/mods\/env_json\/requires_env_json.png?raw=true\" width=\"256\" alt=\"Requires env.json\">`<\/p>\n<p>## Promotion<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/ModFest\/art\/3bf66556e674d670e30f647d6a48c4e1798c21d4\/badge\/128h\/ModFest%201.20%20Badge%20Cozy.png\" alt=\"ModFest 1.20\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A small FabricMC library allowing to convert an `env.json` file into a Java Object. It is mostly used by Environment Driven Assets and Environment Driven Data.<\/p>\n","protected":false},"featured_media":64810,"template":"","meta":{"_minecraft_slug":"env.json","_minecraft_project_id":"ZKEKrxKq","_minecraft_author":"MModding","_minecraft_license":"LicenseRef-Code-PolyForm-Shield-1.0.0-Assets-ARR","_minecraft_downloads":3197,"_minecraft_follows":11,"_minecraft_client_side":"optional","_minecraft_server_side":"optional","_minecraft_storage_type":"zip","_minecraft_archive_name":"env.json.zip","_minecraft_size_bytes":1217504,"_minecraft_version_count":18,"_minecraft_updated_at":"2026-05-17T01:31:23.408271Z","_minecraft_date_created":"2023-12-30T21:11:29.840212Z","_minecraft_date_modified":"2024-09-09T18:54:10.452115Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/env.json","_minecraft_icon_attachment_id":64810,"_minecraft_imported_at":"2026-06-03T17:35:35+00:00","_minecraft_import_hash":"6e093f57a3b7b4618af17c063ffb50fc","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[156,97,89,873,126,98,867,92],"mod_loader":[99,100],"minecraft_version":[36,60,93,94,101,102,62,37],"class_list":["post-64809","mod","type-mod","status-publish","has-post-thumbnail","hentry","mod_category-decoration","mod_category-fabric","mod_category-game-mechanics","mod_category-library","mod_category-management","mod_category-quilt","mod_category-social","mod_category-utility","mod_loader-fabric","mod_loader-quilt","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","minecraft_version-1-21","minecraft_version-1-21-1"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>env.json - 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\/env-json\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"env.json - Minecraft\" \/>\n<meta property=\"og:description\" content=\"A small FabricMC library allowing to convert an `env.json` file into a Java Object. It is mostly used by Environment Driven Assets and Environment Driven Data.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/env-json\/\" \/>\n<meta property=\"og:site_name\" content=\"Minecraft\" \/>\n<meta property=\"og:image\" content=\"https:\/\/github.com\/MModding\/art\/blob\/main\/mods\/env_json\/logo_named.png?raw=true\" \/>\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\\\/env-json\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/env-json\\\/\",\"name\":\"env.json - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/env-json\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/env-json\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/env.json-icon-1d9b473be8e7961a3811c13f539f1f535dad207a_96.webp\",\"datePublished\":\"2026-06-03T17:35:34+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/env-json\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/env-json\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/env-json\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/env.json-icon-1d9b473be8e7961a3811c13f539f1f535dad207a_96.webp\",\"contentUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/env.json-icon-1d9b473be8e7961a3811c13f539f1f535dad207a_96.webp\",\"width\":96,\"height\":96},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/env-json\\\/#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\":\"env.json\"}]},{\"@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":"env.json - 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\/env-json\/","og_locale":"en_US","og_type":"article","og_title":"env.json - Minecraft","og_description":"A small FabricMC library allowing to convert an `env.json` file into a Java Object. It is mostly used by Environment Driven Assets and Environment Driven Data.","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/env-json\/","og_site_name":"Minecraft","og_image":[{"url":"https:\/\/github.com\/MModding\/art\/blob\/main\/mods\/env_json\/logo_named.png?raw=true","type":"","width":"","height":""}],"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\/env-json\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/env-json\/","name":"env.json - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/env-json\/#primaryimage"},"image":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/env-json\/#primaryimage"},"thumbnailUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/env.json-icon-1d9b473be8e7961a3811c13f539f1f535dad207a_96.webp","datePublished":"2026-06-03T17:35:34+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/env-json\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/env-json\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vpesports.com\/minecraft\/mods\/env-json\/#primaryimage","url":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/env.json-icon-1d9b473be8e7961a3811c13f539f1f535dad207a_96.webp","contentUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/env.json-icon-1d9b473be8e7961a3811c13f539f1f535dad207a_96.webp","width":96,"height":96},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/env-json\/#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":"env.json"}]},{"@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\/64809","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\/64810"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=64809"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=64809"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=64809"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=64809"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}