Skip to content

Commit

Permalink
Added hoe functionality to ArchitectMattock
Browse files Browse the repository at this point in the history
  • Loading branch information
kill05 committed Jun 11, 2024
1 parent 33bdb6c commit 4c291a1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/com/github/kill05/items/tool/ArchitectMattock.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
import com.github.kill05.items.part.ArchitectPart;
import com.github.kill05.items.part.statistics.PartStatistic;
import net.minecraft.core.block.tag.BlockTags;
import net.minecraft.core.entity.player.EntityPlayer;
import net.minecraft.core.item.Item;
import net.minecraft.core.item.ItemStack;
import net.minecraft.core.util.helper.Side;
import net.minecraft.core.world.World;

public class ArchitectMattock extends ArchitectTool {

Expand All @@ -20,4 +25,9 @@ public ArchitectMattock() {
addMineableTags(BlockTags.MINEABLE_BY_SHOVEL);
addMineableTags(BlockTags.MINEABLE_BY_HOE);
}

@Override
public boolean onItemUse(ItemStack itemstack, EntityPlayer entityplayer, World world, int blockX, int blockY, int blockZ, Side side, double xPlaced, double yPlaced) {
return Item.toolHoeDiamond.onItemUse(itemstack, entityplayer, world, blockX, blockY, blockZ, side, xPlaced, yPlaced);
}
}

0 comments on commit 4c291a1

Please sign in to comment.