diff --git a/src/main/resources/data/techreborn/loot_tables/blocks/iridium_ore.json b/src/main/resources/data/techreborn/loot_tables/blocks/iridium_ore.json index 3317c068c..843b53487 100644 --- a/src/main/resources/data/techreborn/loot_tables/blocks/iridium_ore.json +++ b/src/main/resources/data/techreborn/loot_tables/blocks/iridium_ore.json @@ -1,19 +1,49 @@ { "type": "minecraft:block", "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "techreborn:iridium_ore" - } - ], - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ] - } + { + "rolls": 1.0, + "bonus_rolls": 0.0, + "entries": [ + { + "type": "minecraft:alternatives", + "children": [ + { + "type": "minecraft:item", + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "name": "techreborn:iridium_ore" + }, + { + "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:apply_bonus", + "enchantment": "minecraft:fortune", + "formula": "minecraft:ore_drops" + }, + { + "function": "minecraft:explosion_decay" + } + ], + "name": "techreborn:raw_iridium" + } + ] + } + ] + } ] } \ No newline at end of file diff --git a/src/main/resources/data/techreborn/loot_tables/blocks/lead_ore.json b/src/main/resources/data/techreborn/loot_tables/blocks/lead_ore.json index e94f0e580..2202e693b 100644 --- a/src/main/resources/data/techreborn/loot_tables/blocks/lead_ore.json +++ b/src/main/resources/data/techreborn/loot_tables/blocks/lead_ore.json @@ -1,19 +1,49 @@ { "type": "minecraft:block", "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "techreborn:lead_ore" - } - ], - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ] - } + { + "rolls": 1.0, + "bonus_rolls": 0.0, + "entries": [ + { + "type": "minecraft:alternatives", + "children": [ + { + "type": "minecraft:item", + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "name": "techreborn:lead_ore" + }, + { + "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:apply_bonus", + "enchantment": "minecraft:fortune", + "formula": "minecraft:ore_drops" + }, + { + "function": "minecraft:explosion_decay" + } + ], + "name": "techreborn:raw_lead" + } + ] + } + ] + } ] } \ No newline at end of file diff --git a/src/main/resources/data/techreborn/loot_tables/blocks/silver_ore.json b/src/main/resources/data/techreborn/loot_tables/blocks/silver_ore.json index f92b0bc35..7da3722db 100644 --- a/src/main/resources/data/techreborn/loot_tables/blocks/silver_ore.json +++ b/src/main/resources/data/techreborn/loot_tables/blocks/silver_ore.json @@ -1,19 +1,49 @@ { "type": "minecraft:block", "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "techreborn:silver_ore" - } - ], - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ] - } + { + "rolls": 1.0, + "bonus_rolls": 0.0, + "entries": [ + { + "type": "minecraft:alternatives", + "children": [ + { + "type": "minecraft:item", + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "name": "techreborn:silver_ore" + }, + { + "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:apply_bonus", + "enchantment": "minecraft:fortune", + "formula": "minecraft:ore_drops" + }, + { + "function": "minecraft:explosion_decay" + } + ], + "name": "techreborn:raw_silver" + } + ] + } + ] + } ] } \ No newline at end of file diff --git a/src/main/resources/data/techreborn/loot_tables/blocks/tin_ore.json b/src/main/resources/data/techreborn/loot_tables/blocks/tin_ore.json index 5e5936d02..f3438a44d 100644 --- a/src/main/resources/data/techreborn/loot_tables/blocks/tin_ore.json +++ b/src/main/resources/data/techreborn/loot_tables/blocks/tin_ore.json @@ -1,19 +1,49 @@ { "type": "minecraft:block", "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "techreborn:tin_ore" - } - ], - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ] - } + { + "rolls": 1.0, + "bonus_rolls": 0.0, + "entries": [ + { + "type": "minecraft:alternatives", + "children": [ + { + "type": "minecraft:item", + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "name": "techreborn:tin_ore" + }, + { + "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:apply_bonus", + "enchantment": "minecraft:fortune", + "formula": "minecraft:ore_drops" + }, + { + "function": "minecraft:explosion_decay" + } + ], + "name": "techreborn:raw_tin" + } + ] + } + ] + } ] } \ No newline at end of file diff --git a/src/main/resources/data/techreborn/loot_tables/blocks/tungsten_ore.json b/src/main/resources/data/techreborn/loot_tables/blocks/tungsten_ore.json index 8ea3f6ae0..0114970c0 100644 --- a/src/main/resources/data/techreborn/loot_tables/blocks/tungsten_ore.json +++ b/src/main/resources/data/techreborn/loot_tables/blocks/tungsten_ore.json @@ -1,19 +1,49 @@ { "type": "minecraft:block", "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "techreborn:tungsten_ore" - } - ], - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ] - } + { + "rolls": 1.0, + "bonus_rolls": 0.0, + "entries": [ + { + "type": "minecraft:alternatives", + "children": [ + { + "type": "minecraft:item", + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "name": "techreborn:tungsten_ore" + }, + { + "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:apply_bonus", + "enchantment": "minecraft:fortune", + "formula": "minecraft:ore_drops" + }, + { + "function": "minecraft:explosion_decay" + } + ], + "name": "techreborn:raw_tungsten" + } + ] + } + ] + } ] } \ No newline at end of file