Skip to content

Commit

Permalink
Add "AT" Field for Localizations
Browse files Browse the repository at this point in the history
  • Loading branch information
FirstMegaGame4 committed Dec 31, 2023
1 parent a33b505 commit 4a8c35e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ and their resource reload management.

There is currently two official implementations of env.json:

- Environment Driven Assets (EDA)
- [Environment Driven Assets (EDA)](https://modrinth.com/mod/env-driven-assets)

Mod Identifier: env-driven-assets.

Environments: Client

Applies env.json operations to Minecraft Vanilla asset types.

- Environment Driven Data (EDD)
- [Environment Driven Data (EDD)](https://modrinth.com/mod/env-driven-data)

Mod Identifier: env-driven-data.

Expand Down Expand Up @@ -94,16 +94,16 @@ Applies env.json operations to Minecraft Vanilla data types.
"rule": true // true for "if it is submerged" and false for "if it is not submerged"
},
{
"type": "sky", // passes if the context is above the sky limit or below
"rule": "above" // must be "above" or "below"
"type": "sky", // passes if the context is above the sky limit, at or below
"rule": "at" // must be "above", "at" or "below"
},
{
"type": "water", // passes if the context is above the water level or below
"rule": "above" // must be "above" or "below"
"type": "water", // passes if the context is above the water level, at or below
"rule": "at" // must be "above", "at" or "below"
},
{
"type": "void", // passes if the context is above the void limit or below
"rule": "above" // must be "above" or "below"
"type": "void", // passes if the context is above the void limit, at or below
"rule": "at" // must be "above", "at" or "below"
}
],
"result": "minecraft:block/stone" // the redirected resource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ public interface SkyEnvJsonRule extends EnvJsonRule {

enum Localization {
BELOW,
AT,
ABOVE
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ public interface VoidEnvJsonRule extends EnvJsonRule {

enum Localization {
BELOW,
AT,
ABOVE
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ public interface WaterEnvJsonRule extends EnvJsonRule {

enum Localization {
BELOW,
AT,
ABOVE
}
}

0 comments on commit 4a8c35e

Please sign in to comment.