Explicitly made the Drill unbreakable.

This commit is contained in:
Flanks255 2024-11-28 17:30:55 -06:00
parent 38d6404b62
commit 424427fd4c

View file

@ -53,11 +53,7 @@ import net.neoforged.neoforge.items.IItemHandler;
import net.neoforged.neoforge.items.IItemHandlerModifiable; import net.neoforged.neoforge.items.IItemHandlerModifiable;
import javax.annotation.Nonnull; import javax.annotation.Nonnull;
import java.util.ArrayList; import java.util.*;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.UUID;
public class DrillItem extends ItemEnergy { public class DrillItem extends ItemEnergy {
public static final int HARVEST_LEVEL = 4; public static final int HARVEST_LEVEL = 4;
@ -70,6 +66,7 @@ public class DrillItem extends ItemEnergy {
public DrillItem() { public DrillItem() {
super(ActuallyItems.defaultProps() super(ActuallyItems.defaultProps()
.stacksTo(1) .stacksTo(1)
.component(DataComponents.UNBREAKABLE, new Unbreakable(false))
.component(DataComponents.TOOL, Tiers.NETHERITE.createToolProperties(ActuallyTags.Blocks.MINEABLE_WITH_DRILL)) .component(DataComponents.TOOL, Tiers.NETHERITE.createToolProperties(ActuallyTags.Blocks.MINEABLE_WITH_DRILL))
, 250000, 1000); , 250000, 1000);