Skip to content

Commit

Permalink
update tool tags
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMCLoveMan committed Jun 17, 2024
1 parent 989f422 commit 2b336c1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{
"condition": "minecraft:match_tool",
"predicate": {
"items": "#c:tools/shears"
"items": "#c:tools/shear"
}
},
{
Expand Down Expand Up @@ -77,7 +77,7 @@
{
"condition": "minecraft:match_tool",
"predicate": {
"items": "#c:tools/shears"
"items": "#c:tools/shear"
}
},
{
Expand Down Expand Up @@ -145,7 +145,7 @@
{
"condition": "minecraft:match_tool",
"predicate": {
"items": "#c:tools/shears"
"items": "#c:tools/shear"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ protected void addTags(HolderLookup.Provider lookupProvider) {
this.tag(Tags.Items.RAW_MATERIALS).addTag(UselessTags.Items.RAW_MATERIALS_USELESS).addTag(UselessTags.Items.RAW_MATERIALS_SUPER_USELESS);

// other common tags
this.tag(Tags.Items.TOOLS_SHEARS).add(UselessItems.USELESS_SHEARS.get());
this.tag(Tags.Items.TOOLS_SHIELDS).add(UselessItems.USELESS_SHIELD.get(), UselessItems.SUPER_USELESS_SHIELD.get());
this.tag(Tags.Items.TOOLS_SHEAR).add(UselessItems.USELESS_SHEARS.get());
this.tag(Tags.Items.TOOLS_SHIELD).add(UselessItems.USELESS_SHIELD.get(), UselessItems.SUPER_USELESS_SHIELD.get());

this.tag(UselessTags.Items.CROPS_USELESS_WHEAT).add(UselessItems.USELESS_WHEAT.get());
this.tag(UselessTags.Items.CROPS_COFFEEBEAN).add(UselessItems.COFFEE_BEANS.get());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import static net.themcbrothers.uselessmod.core.UselessBlocks.*;

public class UselessBlockLoot extends BlockLootSubProvider {
private static final LootItemCondition.Builder HAS_SHEARS = MatchTool.toolMatches(ItemPredicate.Builder.item().of(Tags.Items.TOOLS_SHEARS));
private static final LootItemCondition.Builder HAS_SHEARS = MatchTool.toolMatches(ItemPredicate.Builder.item().of(Tags.Items.TOOLS_SHEAR));
private static final float[] NORMAL_LEAVES_SAPLING_CHANCES = new float[]{0.05F, 0.0625F, 0.083333336F, 0.1F};

private static final Set<Item> EXPLOSION_RESISTANT = Stream.of(
Expand Down

0 comments on commit 2b336c1

Please sign in to comment.