From 84128ce4884024daf19cb144cb2c1f9829ae153e Mon Sep 17 00:00:00 2001 From: Sergeant Acoustic Date: Mon, 29 Dec 2025 19:52:58 +0000 Subject: [PATCH] Fix gravel loot table As originally intended, gravel now always drops flint unless mined with a shovel (or paxel), giving it a 50% chance of dropping gravel, or 100% with silk touch --- data/minecraft/loot_tables/blocks/gravel.json | 92 +++++++++---------- 1 file changed, 43 insertions(+), 49 deletions(-) diff --git a/data/minecraft/loot_tables/blocks/gravel.json b/data/minecraft/loot_tables/blocks/gravel.json index b0e46de..f0abeb8 100644 --- a/data/minecraft/loot_tables/blocks/gravel.json +++ b/data/minecraft/loot_tables/blocks/gravel.json @@ -1,56 +1,50 @@ { "type": "minecraft:block", "pools": [{ - "bonus_rolls": 0, - "entries": [ - { - "type": "minecraft:alternatives", - "children": [ - { - "type": "minecraft:item", - "conditions": [ - { - "condition": "minecraft:match_tool", - "predicate": { - "enchantments": [{ - "enchantment": "minecraft:silk_touch", - "levels": {"min": 1} - }] + "rolls": 1, + "entries": [{ + "type": "minecraft:alternatives", + "children": [ + { + "type": "minecraft:item", + "name": "minecraft:gravel", + "conditions": [{ + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [{ + "enchantment": "minecraft:silk_touch", + "levels": {"min": 1} + }] + } + }] + }, + { + "type": "minecraft:item", + "name": "minecraft:gravel", + "conditions": [ + { + "condition": "minecraft:any_of", + "terms": [ + { + "condition": "minecraft:match_tool", + "predicate": {"tag": "minecraft:shovels"} + }, + { + "condition": "minecraft:match_tool", + "predicate": {"tag": "forge:tools/paxels"} } - } - ], - "name": "minecraft:gravel" - }, - { - "type": "minecraft:alternatives", - "children": [ - { - "type": "minecraft:item", - "conditions": [ - { - "chances": [ - 0.1, - 0.14285715, - 0.25, - 1 - ], - "condition": "minecraft:table_bonus", - "enchantment": "minecraft:fortune" - } - ], - "name": "minecraft:flint" - }, - { - "type": "minecraft:item", - "name": "minecraft:flint" - } - ], - "conditions": [{"condition": "minecraft:survives_explosion"}] - } - ] - } - ], - "rolls": 1 + ] + }, + { + "condition": "minecraft:random_chance", + "chance": 0.5 + } + ] + }, + {"type": "minecraft:item", "name": "minecraft:flint"} + ], + "conditions": [{"condition": "minecraft:survives_explosion"}] + }] }], "random_sequence": "minecraft:blocks/gravel" }