From bae912d4d44747354dc292bf5506ddabee0fac6d Mon Sep 17 00:00:00 2001 From: Forstride Date: Sun, 8 Sep 2024 16:27:33 -0400 Subject: [PATCH] Tagged Water Cleansing/Thermal Tuning as tradeable --- .../.cache/1edd1aa8a5f5209e40be6ce639ab3fdd92079a0c | 4 +++- .../data/minecraft/tags/enchantment/on_random_loot.json | 6 ++++++ .../data/minecraft/tags/enchantment/tradeable.json | 6 ++++++ .../forge/datagen/provider/TANEnchantmentTagsProvider.java | 2 ++ 4 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 common/src/generated/resources/data/minecraft/tags/enchantment/on_random_loot.json create mode 100644 common/src/generated/resources/data/minecraft/tags/enchantment/tradeable.json diff --git a/common/src/generated/resources/.cache/1edd1aa8a5f5209e40be6ce639ab3fdd92079a0c b/common/src/generated/resources/.cache/1edd1aa8a5f5209e40be6ce639ab3fdd92079a0c index d35db4e2..4a500a42 100644 --- a/common/src/generated/resources/.cache/1edd1aa8a5f5209e40be6ce639ab3fdd92079a0c +++ b/common/src/generated/resources/.cache/1edd1aa8a5f5209e40be6ce639ab3fdd92079a0c @@ -1,2 +1,4 @@ -// 1.21.1 2024-08-25T05:09:20.7545617 Tags for minecraft:enchantment mod id vanilla +// 1.21.1 2024-09-08T16:27:07.7039549 Tags for minecraft:enchantment mod id vanilla +0ef1512d105fb2b8c0f389b6cc5fffd07ba5c820 data/minecraft/tags/enchantment/on_random_loot.json +0ef1512d105fb2b8c0f389b6cc5fffd07ba5c820 data/minecraft/tags/enchantment/tradeable.json 0ef1512d105fb2b8c0f389b6cc5fffd07ba5c820 data/minecraft/tags/enchantment/treasure.json diff --git a/common/src/generated/resources/data/minecraft/tags/enchantment/on_random_loot.json b/common/src/generated/resources/data/minecraft/tags/enchantment/on_random_loot.json new file mode 100644 index 00000000..edb0a16d --- /dev/null +++ b/common/src/generated/resources/data/minecraft/tags/enchantment/on_random_loot.json @@ -0,0 +1,6 @@ +{ + "values": [ + "toughasnails:thermal_tuning", + "toughasnails:water_cleansing" + ] +} \ No newline at end of file diff --git a/common/src/generated/resources/data/minecraft/tags/enchantment/tradeable.json b/common/src/generated/resources/data/minecraft/tags/enchantment/tradeable.json new file mode 100644 index 00000000..edb0a16d --- /dev/null +++ b/common/src/generated/resources/data/minecraft/tags/enchantment/tradeable.json @@ -0,0 +1,6 @@ +{ + "values": [ + "toughasnails:thermal_tuning", + "toughasnails:water_cleansing" + ] +} \ No newline at end of file diff --git a/forge/src/main/java/toughasnails/forge/datagen/provider/TANEnchantmentTagsProvider.java b/forge/src/main/java/toughasnails/forge/datagen/provider/TANEnchantmentTagsProvider.java index f5c5d7ee..8b551414 100644 --- a/forge/src/main/java/toughasnails/forge/datagen/provider/TANEnchantmentTagsProvider.java +++ b/forge/src/main/java/toughasnails/forge/datagen/provider/TANEnchantmentTagsProvider.java @@ -32,5 +32,7 @@ protected void addTags(HolderLookup.Provider provider) { // TAN tags this.tag(EnchantmentTags.TREASURE).add(TANEnchantments.THERMAL_TUNING).add(TANEnchantments.WATER_CLEANSING); + this.tag(EnchantmentTags.TRADEABLE).add(TANEnchantments.THERMAL_TUNING).add(TANEnchantments.WATER_CLEANSING); + this.tag(EnchantmentTags.ON_RANDOM_LOOT).add(TANEnchantments.THERMAL_TUNING).add(TANEnchantments.WATER_CLEANSING); } }