Skip to content

Commit

Permalink
feat: ✨ Added item tags to Shears of Winter to mark them as c:tools a…
Browse files Browse the repository at this point in the history
…nd c:tools/shear
  • Loading branch information
P3pp3rF1y committed Feb 11, 2025
1 parent 97d66df commit f670f99
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ loader_version_range=[4,)
mod_id=reliquary
mod_name=Reliquary Reincarnations
mod_license=All Rights Reserved
mod_version=2.0.46
mod_version=2.0.47
mod_group_id=reliquary
mod_authors=P3pp3rF1y
mod_description=Two words: magical swag. Oh, and a gun.
Expand Down
5 changes: 5 additions & 0 deletions src/generated/resources/data/c/tags/item/tools/shear.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"reliquary:shears_of_winter"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"reliquary:entities/blaze",
"reliquary:entities/ghast",
"reliquary:entities/guardian",
"reliquary:chests/desert_pyramid",
"reliquary:chests/jungle_temple"
"reliquary:chests/jungle_temple",
"reliquary:chests/desert_pyramid"
],
"replace": false
}
2 changes: 2 additions & 0 deletions src/main/java/reliquary/data/ItemTagProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import net.minecraft.data.tags.ItemTagsProvider;
import net.minecraft.tags.ItemTags;
import net.minecraft.world.level.block.Block;
import net.neoforged.neoforge.common.Tags;
import net.neoforged.neoforge.common.data.ExistingFileHelper;
import reliquary.Reliquary;
import reliquary.init.ModItems;
Expand All @@ -22,6 +23,7 @@ protected void addTags(HolderLookup.Provider provider) {
tag(ItemTags.ARROWS).add(ModItems.TIPPED_ARROW.get());
tag(ItemTags.SWORDS).add(ModItems.MAGICBANE.get(), ModItems.MERCY_CROSS.get());
tag(ItemTags.MINING_ENCHANTABLE).add(ModItems.SHEARS_OF_WINTER.get());
tag(Tags.Items.TOOLS_SHEAR).add(ModItems.SHEARS_OF_WINTER.get());
}

@Override
Expand Down

0 comments on commit f670f99

Please sign in to comment.