Skip to content

Commit

Permalink
fix cobwebs in multitool
Browse files Browse the repository at this point in the history
  • Loading branch information
RacoonDog committed Feb 1, 2025
1 parent 14d662c commit c676b7c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
import meteordevelopment.meteorclient.commands.Command;
import meteordevelopment.meteorclient.utils.commands.CreativeCommandHelper;
import net.minecraft.client.gui.DrawContext;
import net.minecraft.block.Blocks;
import net.minecraft.command.CommandSource;
import net.minecraft.component.DataComponentTypes;
import net.minecraft.component.type.ToolComponent;
import net.minecraft.item.BlockPredicatesChecker;
import net.minecraft.item.ItemStack;
import net.minecraft.predicate.BlockPredicate;
import net.minecraft.registry.Registries;
import net.minecraft.registry.entry.RegistryEntryList;
import net.minecraft.registry.tag.BlockTags;
import net.minecraft.text.Text;
import net.minecraft.util.Identifier;
Expand All @@ -40,7 +41,8 @@ public void build(LiteralArgumentBuilder<CommandSource> builder) {
ToolComponent.Rule.ofAlwaysDropping(Registries.BLOCK.getOrThrow(BlockTags.HOE_MINEABLE), 8f),
ToolComponent.Rule.ofAlwaysDropping(Registries.BLOCK.getOrThrow(BlockTags.PICKAXE_MINEABLE), 8f),
ToolComponent.Rule.ofAlwaysDropping(Registries.BLOCK.getOrThrow(BlockTags.SHOVEL_MINEABLE), 8f),
ToolComponent.Rule.ofAlwaysDropping(Registries.BLOCK.getOrThrow(BlockTags.SWORD_EFFICIENT), 24f)
ToolComponent.Rule.ofAlwaysDropping(Registries.BLOCK.getOrThrow(BlockTags.SWORD_EFFICIENT), 8f),
ToolComponent.Rule.ofAlwaysDropping(RegistryEntryList.of(Registries.BLOCK.getEntry(Blocks.COBWEB)), 16f)
), 10f, 1));
stack.set(DataComponentTypes.CAN_BREAK, new BlockPredicatesChecker(List.of(
BlockPredicate.Builder.create().tag(Registries.BLOCK, BlockTags.AXE_MINEABLE).build(),
Expand Down

0 comments on commit c676b7c

Please sign in to comment.