From 85dc31f9e03f6c422e1f7777b41e7681114a8343 Mon Sep 17 00:00:00 2001 From: TheClashFruit Date: Sun, 28 Jul 2024 18:22:10 +0200 Subject: [PATCH] fix: fix loot tables --- .../loot_tables/blocks/shit_block.json | 54 +++++++++------- .../loot_tables/blocks/shit_candle.json | 63 +++++++++++++++++++ 2 files changed, 94 insertions(+), 23 deletions(-) create mode 100644 src/main/resources/data/pissnshit/loot_tables/blocks/shit_candle.json diff --git a/src/main/resources/data/pissnshit/loot_tables/blocks/shit_block.json b/src/main/resources/data/pissnshit/loot_tables/blocks/shit_block.json index 5951f9d..743635d 100644 --- a/src/main/resources/data/pissnshit/loot_tables/blocks/shit_block.json +++ b/src/main/resources/data/pissnshit/loot_tables/blocks/shit_block.json @@ -1,36 +1,44 @@ { + "type": "minecraft:block", + "random_sequence": "pissnshit:blocks/shit_block", "pools": [ { "rolls": 1, + "bonus_rolls": 0, "entries": [ { - "type": "minecraft:item", - "name": "pissnshit:shit_block", - "conditions": [ + "type": "minecraft:alternatives", + "children": [ { - "condition": "minecraft:match_tool", - "predicate": { - "enchantments": [ - { - "enchantment": "minecraft:silk_touch", - "levels": 1 + "type": "minecraft:item", + "name": "pissnshit:shit_block", + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": 1 + } + ] } - ] - } - } - ] - }, - { - "type": "minecraft:item", - "name": "pissnshit:shit", - "functions": [ - { - "function": "minecraft:set_count", - "count": 4, - "add": false + } + ] }, { - "function": "minecraft:explosion_decay" + "type": "minecraft:item", + "name": "pissnshit:shit", + "functions": [ + { + "function": "minecraft:set_count", + "count": 4, + "add": false + }, + { + "function": "minecraft:explosion_decay" + } + ] } ] } diff --git a/src/main/resources/data/pissnshit/loot_tables/blocks/shit_candle.json b/src/main/resources/data/pissnshit/loot_tables/blocks/shit_candle.json new file mode 100644 index 0000000..d56d564 --- /dev/null +++ b/src/main/resources/data/pissnshit/loot_tables/blocks/shit_candle.json @@ -0,0 +1,63 @@ +{ + "type": "minecraft:block", + "random_sequence": "pissnshit:blocks/shit_candle", + "pools": [ + { + "rolls": 1, + "bonus_rolls": 0, + "entries": [ + { + "type": "minecraft:item", + "functions": [ + { + "add": false, + "conditions": [ + { + "block": "pissnshit:shit_candle", + "condition": "minecraft:block_state_property", + "properties": { + "candles": "2" + } + } + ], + "count": 2, + "function": "minecraft:set_count" + }, + { + "add": false, + "conditions": [ + { + "block": "pissnshit:shit_candle", + "condition": "minecraft:block_state_property", + "properties": { + "candles": "3" + } + } + ], + "count": 3, + "function": "minecraft:set_count" + }, + { + "add": false, + "conditions": [ + { + "block": "pissnshit:shit_candle", + "condition": "minecraft:block_state_property", + "properties": { + "candles": "4" + } + } + ], + "count": 4, + "function": "minecraft:set_count" + }, + { + "function": "minecraft:explosion_decay" + } + ], + "name": "pissnshit:shit_candle" + } + ] + } + ] +} \ No newline at end of file