Jump to content

Problem with tools


Recommended Posts

I have some problems with "creation of tools" !

One of the problems that I have with my tool is this :


package wintersky20.ws20t.items;

import java.util.Set;

import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Sets;
import com.jcraft.jorbis.Block;

import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockProperties;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.item.ItemAxe;
import net.minecraft.item.ItemPickaxe;
import net.minecraft.item.ItemSpade;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemTool;
import net.minecraft.world.World;
import wintersky20.ws20t.Reference;
import wintersky20.ws20t.ws20t;

public class ItemDrill extends ItemPickaxe {

    public ItemDrill(ToolMaterial material) {
        this.attackSpeed = 0.9F;

    public boolean canHarvestBlock(IBlockState state, ItemStack stack) {
        return true;

    public Set<String> getToolClasses(ItemStack stack) {
        return ImmutableSet.of("pickaxe", "spade", "axe", "shovel");

    public int getItemEnchantability() {
        return this.toolMaterial.getEnchantability();

-> I can't enchnat the item in the enchanting table only in a anvil

->I can't brake the crafting table with this tool ( I mean , I can , but is taking me a long time to do ths)

-> And if i try to switch the extension with a ItemAxe , the i can't break redstone ores and obsidean !

Some help please !!

And sorry for my bad English :/

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.