Skip to content

Commit

Permalink
Add Stripped Logs and Stripped Woods Tags (#1584)
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr authored Oct 15, 2024
1 parent feb8027 commit 8450a90
Show file tree
Hide file tree
Showing 9 changed files with 72 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/generated/resources/assets/c/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@
"tag.block.c.storage_blocks.redstone": "Redstone Storage Blocks",
"tag.block.c.storage_blocks.slime": "Slime Storage Blocks",
"tag.block.c.storage_blocks.wheat": "Wheat Storage Blocks",
"tag.block.c.stripped_logs": "Stripped Logs",
"tag.block.c.stripped_woods": "Stripped Woods",
"tag.block.c.villager_job_sites": "Villager Job Sites",
"tag.block.neoforge.enderman_place_on_blacklist": "Enderman Place On Blacklist",
"tag.block.neoforge.needs_gold_tool": "Needs Gold Tools",
Expand Down Expand Up @@ -348,6 +350,8 @@
"tag.item.c.storage_blocks.slime": "Slime Storage Blocks",
"tag.item.c.storage_blocks.wheat": "Wheat Storage Blocks",
"tag.item.c.strings": "Strings",
"tag.item.c.stripped_logs": "Stripped Log Blocks",
"tag.item.c.stripped_woods": "Stripped Wood Blocks",
"tag.item.c.tools": "Tools",
"tag.item.c.tools.bow": "Bows",
"tag.item.c.tools.brush": "Brushes",
Expand Down
13 changes: 13 additions & 0 deletions src/generated/resources/data/c/tags/block/stripped_logs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"values": [
"minecraft:stripped_acacia_log",
"minecraft:stripped_bamboo_block",
"minecraft:stripped_birch_log",
"minecraft:stripped_cherry_log",
"minecraft:stripped_dark_oak_log",
"minecraft:stripped_jungle_log",
"minecraft:stripped_mangrove_log",
"minecraft:stripped_oak_log",
"minecraft:stripped_spruce_log"
]
}
12 changes: 12 additions & 0 deletions src/generated/resources/data/c/tags/block/stripped_woods.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"values": [
"minecraft:stripped_acacia_wood",
"minecraft:stripped_birch_wood",
"minecraft:stripped_cherry_wood",
"minecraft:stripped_dark_oak_wood",
"minecraft:stripped_jungle_wood",
"minecraft:stripped_mangrove_wood",
"minecraft:stripped_oak_wood",
"minecraft:stripped_spruce_wood"
]
}
13 changes: 13 additions & 0 deletions src/generated/resources/data/c/tags/item/stripped_logs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"values": [
"minecraft:stripped_acacia_log",
"minecraft:stripped_bamboo_block",
"minecraft:stripped_birch_log",
"minecraft:stripped_cherry_log",
"minecraft:stripped_dark_oak_log",
"minecraft:stripped_jungle_log",
"minecraft:stripped_mangrove_log",
"minecraft:stripped_oak_log",
"minecraft:stripped_spruce_log"
]
}
12 changes: 12 additions & 0 deletions src/generated/resources/data/c/tags/item/stripped_woods.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"values": [
"minecraft:stripped_acacia_wood",
"minecraft:stripped_birch_wood",
"minecraft:stripped_cherry_wood",
"minecraft:stripped_dark_oak_wood",
"minecraft:stripped_jungle_wood",
"minecraft:stripped_mangrove_wood",
"minecraft:stripped_oak_wood",
"minecraft:stripped_spruce_wood"
]
}
4 changes: 4 additions & 0 deletions src/main/java/net/neoforged/neoforge/common/Tags.java
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ public static class Blocks {
public static final TagKey<Block> STORAGE_BLOCKS_REDSTONE = tag("storage_blocks/redstone");
public static final TagKey<Block> STORAGE_BLOCKS_SLIME = tag("storage_blocks/slime");
public static final TagKey<Block> STORAGE_BLOCKS_WHEAT = tag("storage_blocks/wheat");
public static final TagKey<Block> STRIPPED_LOGS = tag("stripped_logs");
public static final TagKey<Block> STRIPPED_WOODS = tag("stripped_woods");
public static final TagKey<Block> VILLAGER_JOB_SITES = tag("villager_job_sites");

/**
Expand Down Expand Up @@ -627,6 +629,8 @@ public static class Items {
public static final TagKey<Item> STORAGE_BLOCKS_SLIME = tag("storage_blocks/slime");
public static final TagKey<Item> STORAGE_BLOCKS_WHEAT = tag("storage_blocks/wheat");
public static final TagKey<Item> STRINGS = tag("strings");
public static final TagKey<Item> STRIPPED_LOGS = tag("stripped_logs");
public static final TagKey<Item> STRIPPED_WOODS = tag("stripped_woods");
public static final TagKey<Item> VILLAGER_JOB_SITES = tag("villager_job_sites");

// Tools and Armors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@ public void addTags(HolderLookup.Provider p_256380_) {
tag(Tags.Blocks.STORAGE_BLOCKS_REDSTONE).add(Blocks.REDSTONE_BLOCK);
tag(Tags.Blocks.STORAGE_BLOCKS_SLIME).add(Blocks.SLIME_BLOCK);
tag(Tags.Blocks.STORAGE_BLOCKS_WHEAT).add(Blocks.HAY_BLOCK);
tag(Tags.Blocks.STRIPPED_LOGS).add(
Blocks.STRIPPED_ACACIA_LOG, Blocks.STRIPPED_BAMBOO_BLOCK, Blocks.STRIPPED_BIRCH_LOG,
Blocks.STRIPPED_CHERRY_LOG, Blocks.STRIPPED_DARK_OAK_LOG, Blocks.STRIPPED_JUNGLE_LOG,
Blocks.STRIPPED_MANGROVE_LOG, Blocks.STRIPPED_OAK_LOG, Blocks.STRIPPED_SPRUCE_LOG);
tag(Tags.Blocks.STRIPPED_WOODS).add(
Blocks.STRIPPED_ACACIA_WOOD, Blocks.STRIPPED_BIRCH_WOOD, Blocks.STRIPPED_CHERRY_WOOD,
Blocks.STRIPPED_DARK_OAK_WOOD, Blocks.STRIPPED_JUNGLE_WOOD, Blocks.STRIPPED_MANGROVE_WOOD,
Blocks.STRIPPED_OAK_WOOD, Blocks.STRIPPED_SPRUCE_WOOD);
tag(Tags.Blocks.VILLAGER_JOB_SITES).add(
Blocks.BARREL, Blocks.BLAST_FURNACE, Blocks.BREWING_STAND, Blocks.CARTOGRAPHY_TABLE,
Blocks.CAULDRON, Blocks.WATER_CAULDRON, Blocks.LAVA_CAULDRON, Blocks.POWDER_SNOW_CAULDRON,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ public void addTags(HolderLookup.Provider lookupProvider) {
copy(Tags.Blocks.STORAGE_BLOCKS_SLIME, Tags.Items.STORAGE_BLOCKS_SLIME);
copy(Tags.Blocks.STORAGE_BLOCKS_WHEAT, Tags.Items.STORAGE_BLOCKS_WHEAT);
tag(Tags.Items.STRINGS).add(Items.STRING);
copy(Tags.Blocks.STRIPPED_LOGS, Tags.Items.STRIPPED_LOGS);
copy(Tags.Blocks.STRIPPED_WOODS, Tags.Items.STRIPPED_WOODS);
tag(Tags.Items.VILLAGER_JOB_SITES).add(
Items.BARREL, Items.BLAST_FURNACE, Items.BREWING_STAND, Items.CARTOGRAPHY_TABLE,
Items.CAULDRON, Items.COMPOSTER, Items.FLETCHING_TABLE, Items.GRINDSTONE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ protected void addTranslations() {
add(Tags.Blocks.STORAGE_BLOCKS_REDSTONE, "Redstone Storage Blocks");
add(Tags.Blocks.STORAGE_BLOCKS_SLIME, "Slime Storage Blocks");
add(Tags.Blocks.STORAGE_BLOCKS_WHEAT, "Wheat Storage Blocks");
add(Tags.Blocks.STRIPPED_LOGS, "Stripped Logs");
add(Tags.Blocks.STRIPPED_WOODS, "Stripped Woods");
add(Tags.Blocks.VILLAGER_JOB_SITES, "Villager Job Sites");
add(Tags.Blocks.VILLAGER_FARMLANDS, "Villager Farmlands");

Expand Down Expand Up @@ -322,6 +324,8 @@ protected void addTranslations() {
add(Tags.Items.STORAGE_BLOCKS_SLIME, "Slime Storage Blocks");
add(Tags.Items.STORAGE_BLOCKS_WHEAT, "Wheat Storage Blocks");
add(Tags.Items.STRINGS, "Strings");
add(Tags.Items.STRIPPED_LOGS, "Stripped Log Blocks");
add(Tags.Items.STRIPPED_WOODS, "Stripped Wood Blocks");
add(Tags.Items.VILLAGER_JOB_SITES, "Villager Job Sites");
add(Tags.Items.TOOLS_SHEAR, "Shears");
add(Tags.Items.TOOLS_SHIELD, "Shields");
Expand Down

0 comments on commit 8450a90

Please sign in to comment.