From 4a8c35e2f8d7a0ea95c27ff32bf50c3e2ed76828 Mon Sep 17 00:00:00 2001 From: FirstMegaGame4 <84094287+FirstMegaGame4@users.noreply.github.com> Date: Sun, 31 Dec 2023 16:26:02 +0100 Subject: [PATCH] Add "AT" Field for Localizations --- README.md | 16 ++++++++-------- .../env/json/api/rule/SkyEnvJsonRule.java | 1 + .../env/json/api/rule/VoidEnvJsonRule.java | 1 + .../env/json/api/rule/WaterEnvJsonRule.java | 1 + 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 80d1e05..54a053c 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ 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. @@ -31,7 +31,7 @@ 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. @@ -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 diff --git a/src/main/java/fr/firstmegagame4/env/json/api/rule/SkyEnvJsonRule.java b/src/main/java/fr/firstmegagame4/env/json/api/rule/SkyEnvJsonRule.java index 084e58c..0b51f9f 100644 --- a/src/main/java/fr/firstmegagame4/env/json/api/rule/SkyEnvJsonRule.java +++ b/src/main/java/fr/firstmegagame4/env/json/api/rule/SkyEnvJsonRule.java @@ -6,6 +6,7 @@ public interface SkyEnvJsonRule extends EnvJsonRule { enum Localization { BELOW, + AT, ABOVE } } diff --git a/src/main/java/fr/firstmegagame4/env/json/api/rule/VoidEnvJsonRule.java b/src/main/java/fr/firstmegagame4/env/json/api/rule/VoidEnvJsonRule.java index 0645dec..d8d3120 100644 --- a/src/main/java/fr/firstmegagame4/env/json/api/rule/VoidEnvJsonRule.java +++ b/src/main/java/fr/firstmegagame4/env/json/api/rule/VoidEnvJsonRule.java @@ -6,6 +6,7 @@ public interface VoidEnvJsonRule extends EnvJsonRule { enum Localization { BELOW, + AT, ABOVE } } diff --git a/src/main/java/fr/firstmegagame4/env/json/api/rule/WaterEnvJsonRule.java b/src/main/java/fr/firstmegagame4/env/json/api/rule/WaterEnvJsonRule.java index aaad47e..edefd37 100644 --- a/src/main/java/fr/firstmegagame4/env/json/api/rule/WaterEnvJsonRule.java +++ b/src/main/java/fr/firstmegagame4/env/json/api/rule/WaterEnvJsonRule.java @@ -6,6 +6,7 @@ public interface WaterEnvJsonRule extends EnvJsonRule { enum Localization { BELOW, + AT, ABOVE } }