Skip to content

Commit

Permalink
Add missing eggs common tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatGravyBoat committed Jun 16, 2024
1 parent 41bc64c commit 74f9dfe
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
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

0 comments on commit 74f9dfe

Please sign in to comment.