diff --git a/fabric-convention-tags-v2/src/datagen/java/net/fabricmc/fabric/impl/tag/convention/datagen/generators/EnglishTagLangGenerator.java b/fabric-convention-tags-v2/src/datagen/java/net/fabricmc/fabric/impl/tag/convention/datagen/generators/EnglishTagLangGenerator.java index 66de224a6c..80086a5cc7 100644 --- a/fabric-convention-tags-v2/src/datagen/java/net/fabricmc/fabric/impl/tag/convention/datagen/generators/EnglishTagLangGenerator.java +++ b/fabric-convention-tags-v2/src/datagen/java/net/fabricmc/fabric/impl/tag/convention/datagen/generators/EnglishTagLangGenerator.java @@ -274,6 +274,7 @@ public void generateTranslations(RegistryWrapper.WrapperLookup registryLookup, T translationBuilder.add(ConventionalItemTags.ROPES, "Ropes"); translationBuilder.add(ConventionalItemTags.CHAINS, "Chains"); translationBuilder.add(ConventionalItemTags.HIDDEN_FROM_RECIPE_VIEWERS, "Hidden From Recipe Viewers"); + translationBuilder.add(ConventionalItemTags.EGGS, "Eggs"); // Enchantments translationBuilder.add(ConventionalEnchantmentTags.INCREASE_BLOCK_DROPS, "Increases Block Drops"); diff --git a/fabric-convention-tags-v2/src/datagen/java/net/fabricmc/fabric/impl/tag/convention/datagen/generators/ItemTagGenerator.java b/fabric-convention-tags-v2/src/datagen/java/net/fabricmc/fabric/impl/tag/convention/datagen/generators/ItemTagGenerator.java index dbd1f10ec5..069733bcaa 100644 --- a/fabric-convention-tags-v2/src/datagen/java/net/fabricmc/fabric/impl/tag/convention/datagen/generators/ItemTagGenerator.java +++ b/fabric-convention-tags-v2/src/datagen/java/net/fabricmc/fabric/impl/tag/convention/datagen/generators/ItemTagGenerator.java @@ -578,6 +578,9 @@ private void generateOtherTags() { .add(Items.CHAIN); getOrCreateTagBuilder(ConventionalItemTags.HIDDEN_FROM_RECIPE_VIEWERS); // Generate tag so others can see it exists through JSON. + + getOrCreateTagBuilder(ConventionalItemTags.EGGS) + .add(Items.EGG); } private void generateDyedTags() { diff --git a/fabric-convention-tags-v2/src/generated/resources/assets/fabric-convention-tags-v2/lang/en_us.json b/fabric-convention-tags-v2/src/generated/resources/assets/fabric-convention-tags-v2/lang/en_us.json index 653b24b020..abf5f12bf8 100644 --- a/fabric-convention-tags-v2/src/generated/resources/assets/fabric-convention-tags-v2/lang/en_us.json +++ b/fabric-convention-tags-v2/src/generated/resources/assets/fabric-convention-tags-v2/lang/en_us.json @@ -145,6 +145,7 @@ "tag.item.c.dyes.red": "Red Dyes", "tag.item.c.dyes.white": "White Dyes", "tag.item.c.dyes.yellow": "Yellow Dyes", + "tag.item.c.eggs": "Eggs", "tag.item.c.enchantables": "Enchantables", "tag.item.c.foods": "Foods", "tag.item.c.foods.berries": "Berries", diff --git a/fabric-convention-tags-v2/src/generated/resources/data/c/tags/item/eggs.json b/fabric-convention-tags-v2/src/generated/resources/data/c/tags/item/eggs.json new file mode 100644 index 0000000000..cbcbec3c4e --- /dev/null +++ b/fabric-convention-tags-v2/src/generated/resources/data/c/tags/item/eggs.json @@ -0,0 +1,5 @@ +{ + "values": [ + "minecraft:egg" + ] +} \ No newline at end of file diff --git a/fabric-convention-tags-v2/src/main/java/net/fabricmc/fabric/api/tag/convention/v2/ConventionalItemTags.java b/fabric-convention-tags-v2/src/main/java/net/fabricmc/fabric/api/tag/convention/v2/ConventionalItemTags.java index 3a82768f6f..f51784908f 100644 --- a/fabric-convention-tags-v2/src/main/java/net/fabricmc/fabric/api/tag/convention/v2/ConventionalItemTags.java +++ b/fabric-convention-tags-v2/src/main/java/net/fabricmc/fabric/api/tag/convention/v2/ConventionalItemTags.java @@ -301,6 +301,11 @@ private ConventionalItemTags() { */ public static final TagKey HIDDEN_FROM_RECIPE_VIEWERS = register("hidden_from_recipe_viewers"); + /** + * For eggs that are like chicken eggs, used for recipes. + */ + public static final TagKey EGGS = register("eggs"); + /** * This tag is redundant. Please use {@link ConventionalItemTags#STORAGE_BLOCKS} tag instead. */