From 16ccbdb0c7b890e48e681c99fcaaed50d367116a Mon Sep 17 00:00:00 2001 From: J-onasJones Date: Fri, 4 Oct 2024 20:50:55 +0200 Subject: [PATCH] ported and fixed block loot-tables --- .../nec/{loot_tables => loot_table}/blocks/blaze_block.json | 6 ++++++ .../blocks/deepslate_diamond_ore_ore.json | 6 ++++++ .../{loot_tables => loot_table}/blocks/diamond_ore_ore.json | 6 ++++++ .../blocks/fletching_stairs.json | 6 ++++++ .../{loot_tables => loot_table}/blocks/green_birch_log.json | 6 ++++++ .../nec/{loot_tables => loot_table}/blocks/gun_block.json | 6 ++++++ .../nec/{loot_tables => loot_table}/blocks/java_block.json | 6 ++++++ .../{loot_tables => loot_table}/blocks/pocket_block.json | 6 ++++++ 8 files changed, 48 insertions(+) rename src/main/resources/data/nec/{loot_tables => loot_table}/blocks/blaze_block.json (55%) rename src/main/resources/data/nec/{loot_tables => loot_table}/blocks/deepslate_diamond_ore_ore.json (57%) rename src/main/resources/data/nec/{loot_tables => loot_table}/blocks/diamond_ore_ore.json (56%) rename src/main/resources/data/nec/{loot_tables => loot_table}/blocks/fletching_stairs.json (56%) rename src/main/resources/data/nec/{loot_tables => loot_table}/blocks/green_birch_log.json (55%) rename src/main/resources/data/nec/{loot_tables => loot_table}/blocks/gun_block.json (55%) rename src/main/resources/data/nec/{loot_tables => loot_table}/blocks/java_block.json (55%) rename src/main/resources/data/nec/{loot_tables => loot_table}/blocks/pocket_block.json (55%) diff --git a/src/main/resources/data/nec/loot_tables/blocks/blaze_block.json b/src/main/resources/data/nec/loot_table/blocks/blaze_block.json similarity index 55% rename from src/main/resources/data/nec/loot_tables/blocks/blaze_block.json rename to src/main/resources/data/nec/loot_table/blocks/blaze_block.json index 1080193..d93d38a 100644 --- a/src/main/resources/data/nec/loot_tables/blocks/blaze_block.json +++ b/src/main/resources/data/nec/loot_table/blocks/blaze_block.json @@ -1,4 +1,5 @@ { + "type": "minecraft:block", "pools": [ { "rolls": 1, @@ -7,6 +8,11 @@ "type": "minecraft:item", "name": "nec:blaze_block" } + ], + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } ] } ] diff --git a/src/main/resources/data/nec/loot_tables/blocks/deepslate_diamond_ore_ore.json b/src/main/resources/data/nec/loot_table/blocks/deepslate_diamond_ore_ore.json similarity index 57% rename from src/main/resources/data/nec/loot_tables/blocks/deepslate_diamond_ore_ore.json rename to src/main/resources/data/nec/loot_table/blocks/deepslate_diamond_ore_ore.json index 6a0956a..0ecfb50 100644 --- a/src/main/resources/data/nec/loot_tables/blocks/deepslate_diamond_ore_ore.json +++ b/src/main/resources/data/nec/loot_table/blocks/deepslate_diamond_ore_ore.json @@ -1,4 +1,5 @@ { + "type": "minecraft:block", "pools": [ { "rolls": 1, @@ -7,6 +8,11 @@ "type": "minecraft:item", "name": "minecraft:deepslate_diamond_ore" } + ], + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } ] } ] diff --git a/src/main/resources/data/nec/loot_tables/blocks/diamond_ore_ore.json b/src/main/resources/data/nec/loot_table/blocks/diamond_ore_ore.json similarity index 56% rename from src/main/resources/data/nec/loot_tables/blocks/diamond_ore_ore.json rename to src/main/resources/data/nec/loot_table/blocks/diamond_ore_ore.json index 96d3564..c5834d3 100644 --- a/src/main/resources/data/nec/loot_tables/blocks/diamond_ore_ore.json +++ b/src/main/resources/data/nec/loot_table/blocks/diamond_ore_ore.json @@ -1,4 +1,5 @@ { + "type": "minecraft:block", "pools": [ { "rolls": 1, @@ -7,6 +8,11 @@ "type": "minecraft:item", "name": "minecraft:diamond_ore" } + ], + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } ] } ] diff --git a/src/main/resources/data/nec/loot_tables/blocks/fletching_stairs.json b/src/main/resources/data/nec/loot_table/blocks/fletching_stairs.json similarity index 56% rename from src/main/resources/data/nec/loot_tables/blocks/fletching_stairs.json rename to src/main/resources/data/nec/loot_table/blocks/fletching_stairs.json index db09a93..d35f413 100644 --- a/src/main/resources/data/nec/loot_tables/blocks/fletching_stairs.json +++ b/src/main/resources/data/nec/loot_table/blocks/fletching_stairs.json @@ -1,4 +1,5 @@ { + "type": "minecraft:block", "pools": [ { "rolls": 1, @@ -7,6 +8,11 @@ "type": "minecraft:item", "name": "nec:fletching_stairs" } + ], + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } ] } ] diff --git a/src/main/resources/data/nec/loot_tables/blocks/green_birch_log.json b/src/main/resources/data/nec/loot_table/blocks/green_birch_log.json similarity index 55% rename from src/main/resources/data/nec/loot_tables/blocks/green_birch_log.json rename to src/main/resources/data/nec/loot_table/blocks/green_birch_log.json index 4d51d99..f2fd43f 100644 --- a/src/main/resources/data/nec/loot_tables/blocks/green_birch_log.json +++ b/src/main/resources/data/nec/loot_table/blocks/green_birch_log.json @@ -1,4 +1,5 @@ { + "type": "minecraft:block", "pools": [ { "rolls": 1, @@ -7,6 +8,11 @@ "type": "minecraft:item", "name": "nec:green_birch_log" } + ], + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } ] } ] diff --git a/src/main/resources/data/nec/loot_tables/blocks/gun_block.json b/src/main/resources/data/nec/loot_table/blocks/gun_block.json similarity index 55% rename from src/main/resources/data/nec/loot_tables/blocks/gun_block.json rename to src/main/resources/data/nec/loot_table/blocks/gun_block.json index 581820e..ac65509 100644 --- a/src/main/resources/data/nec/loot_tables/blocks/gun_block.json +++ b/src/main/resources/data/nec/loot_table/blocks/gun_block.json @@ -1,4 +1,5 @@ { + "type": "minecraft:block", "pools": [ { "rolls": 1, @@ -7,6 +8,11 @@ "type": "minecraft:item", "name": "nec:gun_block" } + ], + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } ] } ] diff --git a/src/main/resources/data/nec/loot_tables/blocks/java_block.json b/src/main/resources/data/nec/loot_table/blocks/java_block.json similarity index 55% rename from src/main/resources/data/nec/loot_tables/blocks/java_block.json rename to src/main/resources/data/nec/loot_table/blocks/java_block.json index b310183..2351672 100644 --- a/src/main/resources/data/nec/loot_tables/blocks/java_block.json +++ b/src/main/resources/data/nec/loot_table/blocks/java_block.json @@ -1,4 +1,5 @@ { + "type": "minecraft:block", "pools": [ { "rolls": 1, @@ -7,6 +8,11 @@ "type": "minecraft:item", "name": "nec:java_block" } + ], + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } ] } ] diff --git a/src/main/resources/data/nec/loot_tables/blocks/pocket_block.json b/src/main/resources/data/nec/loot_table/blocks/pocket_block.json similarity index 55% rename from src/main/resources/data/nec/loot_tables/blocks/pocket_block.json rename to src/main/resources/data/nec/loot_table/blocks/pocket_block.json index 8e786ce..85e173b 100644 --- a/src/main/resources/data/nec/loot_tables/blocks/pocket_block.json +++ b/src/main/resources/data/nec/loot_table/blocks/pocket_block.json @@ -1,4 +1,5 @@ { + "type": "minecraft:block", "pools": [ { "rolls": 1, @@ -7,6 +8,11 @@ "type": "minecraft:item", "name": "nec:pocket_block" } + ], + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } ] } ]