diff --git a/kubejs/data/minecraft/loot_tables/blocks/fern.json b/kubejs/data/minecraft/loot_tables/blocks/fern.json index 0fb7c8aec..92a0520a1 100644 --- a/kubejs/data/minecraft/loot_tables/blocks/fern.json +++ b/kubejs/data/minecraft/loot_tables/blocks/fern.json @@ -1,5 +1,45 @@ { "type": "minecraft:block", - "pools": [], - "random_sequence": "minecraft:blocks/fern" + "pools": [ + { + "name": "loot_pool", + "rolls": 1, + "entries": [ + { + "type": "minecraft:alternatives", + "children": [ + { + "type": "minecraft:item", + "name": "minecraft:fern", + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "tag": "forge:shears" + } + } + ] + }, + { + "type": "minecraft:item", + "name": "tfc:straw", + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "tag": "tfc:sharp_tools" + } + } + ] + } + ] + } + ], + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } + ] + } + ] } \ No newline at end of file diff --git a/kubejs/data/minecraft/loot_tables/blocks/large_fern.json b/kubejs/data/minecraft/loot_tables/blocks/large_fern.json index 0fb7c8aec..84c61375f 100644 --- a/kubejs/data/minecraft/loot_tables/blocks/large_fern.json +++ b/kubejs/data/minecraft/loot_tables/blocks/large_fern.json @@ -1,5 +1,45 @@ { "type": "minecraft:block", - "pools": [], - "random_sequence": "minecraft:blocks/fern" + "pools": [ + { + "name": "loot_pool", + "rolls": 1, + "entries": [ + { + "type": "minecraft:alternatives", + "children": [ + { + "type": "minecraft:item", + "name": "minecraft:large_fern", + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "tag": "forge:shears" + } + } + ] + }, + { + "type": "minecraft:item", + "name": "tfc:straw", + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "tag": "tfc:sharp_tools" + } + } + ] + } + ] + } + ], + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } + ] + } + ] } \ No newline at end of file diff --git a/kubejs/server_scripts/main_server_script.js b/kubejs/server_scripts/main_server_script.js index bca24d1f4..169755c01 100644 --- a/kubejs/server_scripts/main_server_script.js +++ b/kubejs/server_scripts/main_server_script.js @@ -179,6 +179,7 @@ TFCEvents.data(event => { */ LootJS.modifiers((event) => { registerAdAstraLoots(event) + registerBeneathLoots(event) registerTFGOreLoots(event) registerLootrLoots(event) registerPrimitiveCreaturesLoots(event)