From 6b3eb0f6761ee86bc6814df0c7ec3485f9591e52 Mon Sep 17 00:00:00 2001 From: TechnoVisionDev Date: Mon, 4 May 2020 19:58:25 -0700 Subject: [PATCH] Add loot tables --- .../loot_tables/blocks/ruby_block.json | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 src/main/resources/data/tutorial/loot_tables/blocks/ruby_block.json diff --git a/src/main/resources/data/tutorial/loot_tables/blocks/ruby_block.json b/src/main/resources/data/tutorial/loot_tables/blocks/ruby_block.json new file mode 100644 index 0000000..e2b9585 --- /dev/null +++ b/src/main/resources/data/tutorial/loot_tables/blocks/ruby_block.json @@ -0,0 +1,56 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1, + "entries": [ + { + "type": "minecraft:alternatives", + "children": [ + { + "type": "minecraft:item", + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "name": "tutorial:ruby_block" + }, + { + "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:set_count", + "count": { + "min": 1, + "max": 2, + "type": "minecraft:uniform" + } + }, + { + "function": "minecraft:apply_bonus", + "enchantment": "minecraft:fortune", + "formula": "minecraft:uniform_bonus_count", + "parameters": { + "bonusMultiplier": 1 + } + } + ], + "name": "tutorial:ruby" + } + ] + } + ] + } + ] +} \ No newline at end of file