mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-04 20:18:34 +01:00
Explicitly made the Drill unbreakable.
This commit is contained in:
parent
38d6404b62
commit
424427fd4c
1 changed files with 2 additions and 5 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue