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