diff --git a/src/main/resources/data/unicopia/recipes/crystal_shard.json b/src/main/resources/data/unicopia/recipes/crystal_shard.json index f7e1445a..b01d5883 100644 --- a/src/main/resources/data/unicopia/recipes/crystal_shard.json +++ b/src/main/resources/data/unicopia/recipes/crystal_shard.json @@ -4,7 +4,7 @@ { "item": "minecraft:diamond" } ], "result": { - "item": "unicopia:crystal_shard", - "count": 3 + "item": "unicopia:crystal_shard", + "count": 3 } } \ No newline at end of file diff --git a/src/main/resources/data/unicopiamc/loot_tables/blocks/course_dirt.json b/src/main/resources/data/unicopiamc/loot_tables/blocks/course_dirt.json index 135abad4..59a324ee 100644 --- a/src/main/resources/data/unicopiamc/loot_tables/blocks/course_dirt.json +++ b/src/main/resources/data/unicopiamc/loot_tables/blocks/course_dirt.json @@ -23,6 +23,43 @@ } ], "entries": [ + { + "type": "minecraft:item", + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "unicopia:gem_finder", + "levels": { + "min": 1 + } + } + ] + } + }, + { + "condition": "minecraft:table_bonus", + "enchantment": "unicopia:gem_finder", + "chances": [ 0.060555554 ] + } + ], + "functions": [ + { + "function": "minecraft:set_count", + "count": { + "min": 1.0, + "max": 2.0, + "type": "minecraft:uniform" + } + }, + { + "function": "minecraft:explosion_decay" + } + ], + "name": "unicopia:gemstone" + }, { "type": "minecraft:item", "conditions": [ diff --git a/src/main/resources/data/unicopiamc/loot_tables/blocks/dirt.json b/src/main/resources/data/unicopiamc/loot_tables/blocks/dirt.json index 135abad4..bc5666d4 100644 --- a/src/main/resources/data/unicopiamc/loot_tables/blocks/dirt.json +++ b/src/main/resources/data/unicopiamc/loot_tables/blocks/dirt.json @@ -23,6 +23,43 @@ } ], "entries": [ + { + "type": "minecraft:item", + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "unicopia:gem_finder", + "levels": { + "min": 1 + } + } + ] + } + }, + { + "condition": "minecraft:table_bonus", + "enchantment": "unicopia:gem_finder", + "chances": [ 0.055555554 ] + } + ], + "functions": [ + { + "function": "minecraft:set_count", + "count": { + "min": 1.0, + "max": 2.0, + "type": "minecraft:uniform" + } + }, + { + "function": "minecraft:explosion_decay" + } + ], + "name": "unicopia:gemstone" + }, { "type": "minecraft:item", "conditions": [ diff --git a/src/main/resources/data/unicopiamc/loot_tables/blocks/grass_block.json b/src/main/resources/data/unicopiamc/loot_tables/blocks/grass_block.json index 135abad4..bc5666d4 100644 --- a/src/main/resources/data/unicopiamc/loot_tables/blocks/grass_block.json +++ b/src/main/resources/data/unicopiamc/loot_tables/blocks/grass_block.json @@ -23,6 +23,43 @@ } ], "entries": [ + { + "type": "minecraft:item", + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "unicopia:gem_finder", + "levels": { + "min": 1 + } + } + ] + } + }, + { + "condition": "minecraft:table_bonus", + "enchantment": "unicopia:gem_finder", + "chances": [ 0.055555554 ] + } + ], + "functions": [ + { + "function": "minecraft:set_count", + "count": { + "min": 1.0, + "max": 2.0, + "type": "minecraft:uniform" + } + }, + { + "function": "minecraft:explosion_decay" + } + ], + "name": "unicopia:gemstone" + }, { "type": "minecraft:item", "conditions": [ diff --git a/src/main/resources/data/unicopiamc/loot_tables/blocks/stone.json b/src/main/resources/data/unicopiamc/loot_tables/blocks/stone.json new file mode 100644 index 00000000..e0bd3810 --- /dev/null +++ b/src/main/resources/data/unicopiamc/loot_tables/blocks/stone.json @@ -0,0 +1,66 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1, + "bonus_rolls": 0, + "conditions": [ + { + "condition": "minecraft:inverted", + "term": { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + } + ], + "entries": [ + { + "type": "minecraft:item", + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "unicopia:gem_finder", + "levels": { + "min": 1 + } + } + ] + } + }, + { + "condition": "minecraft:table_bonus", + "enchantment": "unicopia:gem_finder", + "chances": [ 0.1 ] + } + ], + "functions": [ + { + "function": "minecraft:set_count", + "count": { + "min": 1.0, + "max": 2.0, + "type": "minecraft:uniform" + } + }, + { + "function": "minecraft:explosion_decay" + } + ], + "name": "unicopia:gemstone" + } + ] + } + ] +} \ No newline at end of file