From 169a2dd342d489115233709be8ff89c66622aab7 Mon Sep 17 00:00:00 2001 From: Misode Date: Wed, 9 Oct 2019 21:20:05 +0200 Subject: [PATCH] Add reference condition --- locales/en.json | 2 ++ schemas/1.15.json | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/locales/en.json b/locales/en.json index a147d042..cc04be6e 100644 --- a/locales/en.json +++ b/locales/en.json @@ -3,6 +3,7 @@ "$type": { "alternative": "Alternative", "inverted": "Inverted", + "reference": "Reference", "entity_properties": "Entity Properties", "block_state_propery": "Block Properties", "match_tool": "Tool Properties", @@ -17,6 +18,7 @@ "survives_explosion": "Survives Explosion" }, "type": "Condition", + "name": "Predicate Name", "chance": "Chance", "looting_multiplier": "Looting Multiplier", "inverse": "Inverted", diff --git a/schemas/1.15.json b/schemas/1.15.json index 423f0917..fa9202d7 100644 --- a/schemas/1.15.json +++ b/schemas/1.15.json @@ -488,6 +488,7 @@ "values": [ "minecraft:alternative", "minecraft:inverted", + "minecraft:reference", "minecraft:entity_properties", { "value": "minecraft:block_state_propery", @@ -517,6 +518,14 @@ } ] }, + { + "id": "name", + "type": "string", + "translate": "$condition.name", + "require": [ + "minecraft:reference" + ] + }, { "id": "chance", "type": "float",