Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

I have some problems with "creation of tools" !

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

Spoiler

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) {
        super(material);
        setUnlocalizedName(Reference.ws20Items.DRILL.getUnlocalizedName());
        setRegistryName(Reference.ws20Items.DRILL.getRegistryName());
        setCreativeTab(ws20t.CREATIVE_TAB);
        this.attackSpeed = 0.9F;
    }

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

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

    @Override
    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 :/

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.

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.