Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add eggs common tag #3861

Open
wants to merge 1 commit into
base: 1.21
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"minecraft:egg"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,11 @@ private ConventionalItemTags() {
*/
public static final TagKey<Item> HIDDEN_FROM_RECIPE_VIEWERS = register("hidden_from_recipe_viewers");

/**
* For eggs that are like chicken eggs, used for recipes.
*/
public static final TagKey<Item> EGGS = register("eggs");

/**
* This tag is redundant. Please use {@link ConventionalItemTags#STORAGE_BLOCKS} tag instead.
*/
Expand Down
Loading