From f6ece6e267dea554705b5d309b7d015b53fdd163 Mon Sep 17 00:00:00 2001 From: Jottyfan Date: Sat, 25 Jul 2026 01:21:04 +0200 Subject: [PATCH] fixed short grass loot table --- .../loot_table/blocks/short_grass.json | 84 ++++++------------- 1 file changed, 26 insertions(+), 58 deletions(-) diff --git a/src/main/resources/data/minecraft/loot_table/blocks/short_grass.json b/src/main/resources/data/minecraft/loot_table/blocks/short_grass.json index fc8d7e1..ea31258 100644 --- a/src/main/resources/data/minecraft/loot_table/blocks/short_grass.json +++ b/src/main/resources/data/minecraft/loot_table/blocks/short_grass.json @@ -2,80 +2,48 @@ "type": "minecraft:block", "pools": [ { - "rolls": { - "type": "minecraft:constant", - "value": 1.0 - }, "entries": [ { "type": "minecraft:alternatives", "children": [ { "type": "minecraft:item", - "name": "minecraft:short_grass", - "conditions": [ - { - "condition": "minecraft:match_tool", - "predicate": { - "sub_predicates": { - "minecraft:tool": "minecraft:tool/can_shear" - } - } - } - ] + "condition": "minecraft:tool/can_shear", + "name": "minecraft:short_grass" }, { "type": "minecraft:item", - "name": "minecraft:wheat_seeds", - "conditions": [ + "condition": { + "type": "minecraft:random_chance", + "chance": 0.125 + }, + "modifier": [ { - "condition": "minecraft:random_chance", - "value": 0.125 + "type": "minecraft:apply_bonus", + "enchantment": "minecraft:fortune", + "formula": "minecraft:uniform_bonus_count", + "parameters": { + "bonusMultiplier": 2 + } + }, + { + "type": "minecraft:explosion_decay" } - ] - } - ] - } - ] - }, - { - "rolls": { - "type": "minecraft:constant", - "value": 1.0 - }, - "conditions": [ - { - "condition": "minecraft:inverted", - "term": { - "condition": "minecraft:match_tool", - "predicate": { - "sub_predicates": { - "minecraft:tool": "minecraft:tool/can_shear" - } - } - } - } - ], - "entries": [ - { - "type": "minecraft:item", - "name": "quickly:cottonseed", - "conditions": [ - { - "condition": "minecraft:random_chance", - "value": 0.05 + ], + "name": "minecraft:wheat_seeds" }, { - "condition": "minecraft:location_check", - "predicate": { - "location": { - "biomes": "minecraft:savanna" - } - } + "type": "minecraft:item", + "condition": { + "type": "minecraft:random_chance", + "chance": 0.125 + }, + "name": "quickly:cottonseed" } ] } - ] + ], + "rolls": 1.0 } ] }