From 5360ca302ee5d00e43bd0550909b07150557d5f1 Mon Sep 17 00:00:00 2001 From: DaanV2 Date: Wed, 20 Apr 2022 12:29:44 +0200 Subject: [PATCH] Added biome filterint to trades --- source/behavior/trading/trading.json | 12 ++++++++++-- source/general/biome_item.json | 6 +++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/source/behavior/trading/trading.json b/source/behavior/trading/trading.json index 6a6078d3..cc3d3e2e 100644 --- a/source/behavior/trading/trading.json +++ b/source/behavior/trading/trading.json @@ -26,6 +26,15 @@ "properties": { "item": { "type": "string", "title": "Item Identifier" }, "price_multiplier": { "type": "number", "title": "Price Multiplier" }, + "functions": { "$ref": "#/definitions/Functions" }, + "biomes": { + "title": "Biomes", + "description": "UNDOCUMENTED", + "type": "array", + "items": { + "$ref": "../../general/biome_item.json" + } + }, "quantity": { "title": "Quantity", "oneOf": [ @@ -40,8 +49,7 @@ } } ] - }, - "functions": { "$ref": "#/definitions/Functions" } + } } } ] diff --git a/source/general/biome_item.json b/source/general/biome_item.json index 9b66d409..77e5162a 100644 --- a/source/general/biome_item.json +++ b/source/general/biome_item.json @@ -2,6 +2,8 @@ "$id": "blockception.minecraft.general.1.8.0.biome.item", "type": "string", "title": "Biome Name", + "description": "UNDOCUMENTED", + "$comment": "UNDOCUMENTED", "enum": [ "animal", "beach", @@ -40,7 +42,5 @@ "taiga", "the_end", "warm" - ], - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED" + ] }