diff --git a/src/main/resources/data/techreborn/loot_tables/blocks/peridot_ore.json b/src/main/resources/data/techreborn/loot_tables/blocks/peridot_ore.json index d376a1fc2..8e73539ee 100644 --- a/src/main/resources/data/techreborn/loot_tables/blocks/peridot_ore.json +++ b/src/main/resources/data/techreborn/loot_tables/blocks/peridot_ore.json @@ -1,19 +1,56 @@ { - "type": "minecraft:block", - "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "techreborn:peridot_ore" - } - ], - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ] - } - ] -} \ No newline at end of file + "type": "minecraft:block", + "pools": [ + { + "rolls": 1, + "entries": [ + { + "type": "minecraft:alternatives", + "children": [ + { + "type": "minecraft:item", + "name": "techreborn:peridot_ore", + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ] + }, + { + "type": "minecraft:item", + "name": "techreborn:peridot_gem", + "functions": [ + { + "function": "minecraft:set_count", + "count": { + "min": 1.0, + "max": 2.0, + "type": "minecraft:uniform" + } + }, + { + "function": "minecraft:apply_bonus", + "enchantment": "minecraft:fortune", + "formula": "minecraft:ore_drops" + }, + { + "function": "minecraft:explosion_decay" + } + ] + } + ] + } + ] + } + ] +}