From a065d8db161864be42e1b65760613a6b718f4f28 Mon Sep 17 00:00:00 2001 From: Jottyfan Date: Fri, 24 Jul 2026 19:31:31 +0200 Subject: [PATCH] added failure grass loot --- .../loot_table/blocks/short_grass.json | 81 ++++++++++++++++++ .../loot_table/blocks/tall_grass.json | 82 +++++++++++++++++++ .../loot_tables/blocks/short_grass.json | 29 ------- .../loot_tables/blocks/tall_grass.json | 29 ------- .../loot_tables/chests/simple_dungeon.json | 29 ------- 5 files changed, 163 insertions(+), 87 deletions(-) create mode 100644 src/main/resources/data/minecraft/loot_table/blocks/short_grass.json create mode 100644 src/main/resources/data/minecraft/loot_table/blocks/tall_grass.json delete mode 100644 src/main/resources/data/minecraft/loot_tables/blocks/short_grass.json delete mode 100644 src/main/resources/data/minecraft/loot_tables/blocks/tall_grass.json delete mode 100644 src/main/resources/data/minecraft/loot_tables/chests/simple_dungeon.json 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 new file mode 100644 index 0000000..fc8d7e1 --- /dev/null +++ b/src/main/resources/data/minecraft/loot_table/blocks/short_grass.json @@ -0,0 +1,81 @@ +{ + "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" + } + } + } + ] + }, + { + "type": "minecraft:item", + "name": "minecraft:wheat_seeds", + "conditions": [ + { + "condition": "minecraft:random_chance", + "value": 0.125 + } + ] + } + ] + } + ] + }, + { + "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 + }, + { + "condition": "minecraft:location_check", + "predicate": { + "location": { + "biomes": "minecraft:savanna" + } + } + } + ] + } + ] + } + ] +} diff --git a/src/main/resources/data/minecraft/loot_table/blocks/tall_grass.json b/src/main/resources/data/minecraft/loot_table/blocks/tall_grass.json new file mode 100644 index 0000000..80bf3cd --- /dev/null +++ b/src/main/resources/data/minecraft/loot_table/blocks/tall_grass.json @@ -0,0 +1,82 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": { + "type": "minecraft:constant", + "value": 1.0 + }, + "entries": [ + { + "type": "minecraft:alternatives", + "children": [ + { + "type": "minecraft:item", + "name": "minecraft:short_grass", + "functions": [ + { + "function": "minecraft:set_count", + "count": { + "type": "minecraft:constant", + "value": 2.0 + } + } + ], + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "sub_predicates": { + "minecraft:tool": "minecraft:tool/can_shear" + } + } + } + ] + }, + { + "type": "minecraft:item", + "name": "minecraft:wheat_seeds", + "conditions": [ + { + "condition": "minecraft:random_chance", + "chance": 0.125 + } + ] + } + ] + } + ] + }, + { + "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:canolaseed", + "conditions": [ + { + "condition": "minecraft:random_chance", + "chance": 0.05 + } + ] + } + ] + } + ] +} diff --git a/src/main/resources/data/minecraft/loot_tables/blocks/short_grass.json b/src/main/resources/data/minecraft/loot_tables/blocks/short_grass.json deleted file mode 100644 index 7e1f8fb..0000000 --- a/src/main/resources/data/minecraft/loot_tables/blocks/short_grass.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "type": "minecraft:block", - "pools": [ - { - "rolls": { "type": "minecraft:constant", "value": 1.0 }, - "entries": [ - { - "type": "minecraft:alternative", - "children": [ - { - "type": "minecraft:item", - "name": "minecraft:short_grass", - "conditions": [ - { "condition": "minecraft:match_tool", "predicate": { "items": "#minecraft:shears" } } - ] - }, - { - "type": "minecraft:item", - "name": "quickly:cottonseed", - "conditions": [ - { "condition": "minecraft:random_chance", "chance": 0.05 } - ] - } - ] - } - ] - } - ] -} diff --git a/src/main/resources/data/minecraft/loot_tables/blocks/tall_grass.json b/src/main/resources/data/minecraft/loot_tables/blocks/tall_grass.json deleted file mode 100644 index 05e9941..0000000 --- a/src/main/resources/data/minecraft/loot_tables/blocks/tall_grass.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "type": "minecraft:block", - "pools": [ - { - "rolls": { "type": "minecraft:constant", "value": 1.0 }, - "entries": [ - { - "type": "minecraft:alternative", - "children": [ - { - "type": "minecraft:item", - "name": "minecraft:tall_grass", - "conditions": [ - { "condition": "minecraft:match_tool", "predicate": { "items": "#minecraft:shears" } } - ] - }, - { - "type": "minecraft:item", - "name": "quickly:canolaseed", - "conditions": [ - { "condition": "minecraft:random_chance", "chance": 0.03 } - ] - } - ] - } - ] - } - ] -} diff --git a/src/main/resources/data/minecraft/loot_tables/chests/simple_dungeon.json b/src/main/resources/data/minecraft/loot_tables/chests/simple_dungeon.json deleted file mode 100644 index 598eb89..0000000 --- a/src/main/resources/data/minecraft/loot_tables/chests/simple_dungeon.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "type": "minecraft:chest", - "pools": [ - { - "rolls": { - "type": "minecraft:uniform", - "min": 1.0, - "max": 8.0 - }, - "entries": [ - { - "type": "minecraft:tag", - "name": "quickly:dungeon_loot", - "expand": true, - "functions": [ - { - "function": "minecraft:set_count", - "count": { - "type": "minecraft:uniform", - "min": 1.0, - "max": 5.0 - } - } - ] - } - ] - } - ] -}