diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml index 144b26b5..f036baca 100644 --- a/src/main/resources/META-INF/mods.toml +++ b/src/main/resources/META-INF/mods.toml @@ -37,3 +37,10 @@ mandatory = true versionRange = "[1.18.1-65-SNAPSHOT,)" ordering = "NONE" side = "BOTH" + +[[dependencies.hex]] +modId = "kotlinforforge" +mandatory = true +versionRange = "[3.1.0,)" +ordering = "NONE" +side = "BOTH" diff --git a/src/main/resources/data/hex/loot_tables/blocks/amethyst_cluster.json b/src/main/resources/data/hex/loot_tables/blocks/amethyst_cluster.json new file mode 100644 index 00000000..6b809c16 --- /dev/null +++ b/src/main/resources/data/hex/loot_tables/blocks/amethyst_cluster.json @@ -0,0 +1,34 @@ +{ + "pools": [ + { + "rolls": 1, + "bonus_rolls": 0, + "entries": [ + { + "type": "minecraft:alternatives", + "children": [ + { + "type": "minecraft:item", + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "name": "minecraft:amethyst_cluster" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/data/hex/loot_tables/inject/amethyst_cluster.json b/src/main/resources/data/hex/loot_tables/inject/amethyst_cluster.json deleted file mode 100644 index e7e2c1f1..00000000 --- a/src/main/resources/data/hex/loot_tables/inject/amethyst_cluster.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "pools": [ - { - "name": "pool1", - "rolls": 1, - "entries": [ - { - "type": "minecraft:alternatives", - "children": [ - { - "type": "minecraft:item", - "name": "hex:charged_amethyst", - "conditions": [ - { - "condition": "minecraft:alternative", - "terms": [ - { - "type": "minecraft:random_chance", - "chance": 0.1 - }, - { - "type": "minecraft:table_bonus", - "enchantment": "minecraft:fortune", - "chances": [ - 0.25, - 0.5, - 0.75 - ] - } - ] - } - ] - }, - { - "type": "minecraft:item", - "name": "hex:amethyst_dust", - "functions": [ - { - "function": "minecraft:set_count", - "count": 2, - "add": true - }, - { - "function": "minecraft:apply_bonus", - "enchantment": "minecraft:fortune", - "formula": "minecraft:ore_drops" - } - ] - } - ] - } - ] - } - ] -} \ No newline at end of file