Skip to content

Commit

Permalink
Add a seed tag for Pitcher Plants (#1860)
Browse files Browse the repository at this point in the history
  • Loading branch information
cassiancc authored Jan 21, 2025
1 parent d5d9899 commit 0beabaf
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/generated/resources/assets/c/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@
"tag.item.c.seeds": "Seeds",
"tag.item.c.seeds.beetroot": "Beetroot Seeds",
"tag.item.c.seeds.melon": "Melon Seeds",
"tag.item.c.seeds.pitcher_plant": "Pitcher Plant Seeds",
"tag.item.c.seeds.pumpkin": "Pumpkin Seeds",
"tag.item.c.seeds.torchflower": "Torchflower Seeds",
"tag.item.c.seeds.wheat": "Wheat Seeds",
Expand Down
1 change: 1 addition & 0 deletions src/generated/resources/data/c/tags/item/seeds.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"#c:seeds/melon",
"#c:seeds/pumpkin",
"#c:seeds/torchflower",
"#c:seeds/pitcher_plant",
"#c:seeds/wheat",
{
"id": "#forge:seeds",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"minecraft:pitcher_pod"
]
}
1 change: 1 addition & 0 deletions src/main/java/net/neoforged/neoforge/common/Tags.java
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,7 @@ public static class Items {
public static final TagKey<Item> SEEDS_MELON = tag("seeds/melon");
public static final TagKey<Item> SEEDS_PUMPKIN = tag("seeds/pumpkin");
public static final TagKey<Item> SEEDS_TORCHFLOWER = tag("seeds/torchflower");
public static final TagKey<Item> SEEDS_PITCHER_PLANT = tag("seeds/pitcher_plant");
public static final TagKey<Item> SEEDS_WHEAT = tag("seeds/wheat");
/**
* Block tag equivalent is {@link BlockTags#SHULKER_BOXES}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,12 @@ public void addTags(HolderLookup.Provider lookupProvider) {
copy(Tags.Blocks.SANDSTONE_UNCOLORED_BLOCKS, Tags.Items.SANDSTONE_UNCOLORED_BLOCKS);
copy(Tags.Blocks.SANDSTONE_UNCOLORED_SLABS, Tags.Items.SANDSTONE_UNCOLORED_SLABS);
copy(Tags.Blocks.SANDSTONE_UNCOLORED_STAIRS, Tags.Items.SANDSTONE_UNCOLORED_STAIRS);
tag(Tags.Items.SEEDS).addTags(Tags.Items.SEEDS_BEETROOT, Tags.Items.SEEDS_MELON, Tags.Items.SEEDS_PUMPKIN, Tags.Items.SEEDS_TORCHFLOWER, Tags.Items.SEEDS_WHEAT);
tag(Tags.Items.SEEDS).addTags(Tags.Items.SEEDS_BEETROOT, Tags.Items.SEEDS_MELON, Tags.Items.SEEDS_PUMPKIN, Tags.Items.SEEDS_TORCHFLOWER, Tags.Items.SEEDS_PITCHER_PLANT, Tags.Items.SEEDS_WHEAT);
tag(Tags.Items.SEEDS_BEETROOT).add(Items.BEETROOT_SEEDS);
tag(Tags.Items.SEEDS_MELON).add(Items.MELON_SEEDS);
tag(Tags.Items.SEEDS_PUMPKIN).add(Items.PUMPKIN_SEEDS);
tag(Tags.Items.SEEDS_TORCHFLOWER).add(Items.TORCHFLOWER_SEEDS);
tag(Tags.Items.SEEDS_PITCHER_PLANT).add(Items.PITCHER_POD);
tag(Tags.Items.SEEDS_WHEAT).add(Items.WHEAT_SEEDS);
tag(Tags.Items.SLIME_BALLS).add(Items.SLIME_BALL);
tag(Tags.Items.SHULKER_BOXES)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ protected void addTranslations() {
add(Tags.Items.SEEDS_MELON, "Melon Seeds");
add(Tags.Items.SEEDS_PUMPKIN, "Pumpkin Seeds");
add(Tags.Items.SEEDS_TORCHFLOWER, "Torchflower Seeds");
add(Tags.Items.SEEDS_PITCHER_PLANT, "Pitcher Plant Seeds");
add(Tags.Items.SEEDS_WHEAT, "Wheat Seeds");
add(Tags.Items.SHULKER_BOXES, "Shulker Boxes");
add(Tags.Items.SLIME_BALLS, "Slimeballs");
Expand Down

0 comments on commit 0beabaf

Please sign in to comment.