From 32b6dabf2ec8761dfc8bff663af08f1ac423ed8b Mon Sep 17 00:00:00 2001 From: Misode Date: Fri, 27 Dec 2019 01:34:59 +0100 Subject: [PATCH] Add offsetXYZ to location_check condition (#44) * Add offsetXYZ to location_check condition * Add translations --- locales/en.json | 3 +++ schemas/1.15.json | 24 ++++++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/locales/en.json b/locales/en.json index 60701052..22b0cbc1 100644 --- a/locales/en.json +++ b/locales/en.json @@ -40,6 +40,9 @@ "condition.location": "Location", "condition.looting_multiplier": "Looting Multiplier", "condition.name": "Predicate Name", + "condition.offsetX": "X Offset", + "condition.offsetY": "Y Offset", + "condition.offsetZ": "Z Offset", "condition.raining": "Raining", "condition.score": "Objective", "condition.score_add": "Add Score", diff --git a/schemas/1.15.json b/schemas/1.15.json index fe5167bc..63a1d1c8 100644 --- a/schemas/1.15.json +++ b/schemas/1.15.json @@ -676,6 +676,30 @@ "minecraft:entity_scores" ] }, + { + "id": "offsetX", + "type": "int", + "translate": "condition.offsetX", + "require": [ + "minecraft:location_check" + ] + }, + { + "id": "offsetY", + "type": "int", + "translate": "condition.offsetY", + "require": [ + "minecraft:location_check" + ] + }, + { + "id": "offsetZ", + "type": "int", + "translate": "condition.offsetZ", + "require": [ + "minecraft:location_check" + ] + }, { "id": "predicate", "type": "object",