From a355a48acae4caefcedcbd99d077fe62a166f94e Mon Sep 17 00:00:00 2001 From: extremeheat Date: Sun, 13 Aug 2023 00:27:00 +0000 Subject: [PATCH 1/2] Sync itemDrop object types in blockLoot_schema and entityLoot_schema --- schemas/blockLoot_schema.json | 2 +- schemas/entityLoot_schema.json | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/schemas/blockLoot_schema.json b/schemas/blockLoot_schema.json index f1e006d13..b04a0f8d8 100644 --- a/schemas/blockLoot_schema.json +++ b/schemas/blockLoot_schema.json @@ -41,7 +41,7 @@ "description": "The min/max of number of items in this item drop stack", "type": "array", "items": { - "type": ["number", "null"] + "type": ["number"] } }, "blockAge": { diff --git a/schemas/entityLoot_schema.json b/schemas/entityLoot_schema.json index 8c7808f8f..a20d42c24 100644 --- a/schemas/entityLoot_schema.json +++ b/schemas/entityLoot_schema.json @@ -35,7 +35,10 @@ }, "stackSizeRange": { "description": "The min/max of number of items in this item drop stack", - "type": "array" + "type": "array", + "items": { + "type": ["number"] + } }, "playerKill": { "description": "If a player killer is required", From b226fcf6b182c3b89527c5c3c84fa71ffaa650f4 Mon Sep 17 00:00:00 2001 From: extremeheat Date: Sun, 13 Aug 2023 17:11:49 +0000 Subject: [PATCH 2/2] fix --- schemas/blockLoot_schema.json | 4 ++-- schemas/entityLoot_schema.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/schemas/blockLoot_schema.json b/schemas/blockLoot_schema.json index b04a0f8d8..d93b752cf 100644 --- a/schemas/blockLoot_schema.json +++ b/schemas/blockLoot_schema.json @@ -20,7 +20,7 @@ "type": "array", "uniqueItems": true, "items": { - "title": "itemDrop", + "title": "blockItemDrop", "type": "object", "properties": { "item": { @@ -41,7 +41,7 @@ "description": "The min/max of number of items in this item drop stack", "type": "array", "items": { - "type": ["number"] + "type": ["number", "null"] } }, "blockAge": { diff --git a/schemas/entityLoot_schema.json b/schemas/entityLoot_schema.json index a20d42c24..5b3a4942e 100644 --- a/schemas/entityLoot_schema.json +++ b/schemas/entityLoot_schema.json @@ -16,7 +16,7 @@ "type": "array", "uniqueItems": true, "items": { - "title": "itemDrop", + "title": "entityItemDrop", "type": "object", "properties": { "item": { @@ -37,7 +37,7 @@ "description": "The min/max of number of items in this item drop stack", "type": "array", "items": { - "type": ["number"] + "type": ["number", "null"] } }, "playerKill": {