Jump to content

[1.7.2] setHarvestLevel


Recommended Posts

I wanted to make my Ore only minable with an Iron Pickaxe but it seems like setHarvestLevel isn't working correctly cause I can mine my block with every pickaxe




package Lord_of_Block.blocks;


import Lord_of_Block.base.main;

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.client.renderer.texture.IIconRegister;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.entity.Entity;

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.world.World;

import cpw.mods.fml.common.network.internal.FMLNetworkHandler;

import cpw.mods.fml.relauncher.Side;

import cpw.mods.fml.relauncher.SideOnly;


public class NividiumBlock extends Block{


protected NividiumBlock(Material mat) {



setBlockName("Nividium Block");


setHarvestLevel("ItemPickaxe", 3);



public boolean canEntityDestroy(World world, int x, int y, int z, Entity entity) {

return false;








Link to comment
Share on other sites

afaik setHarvestLevel: when u get a item from the block != if its possible to mine with tool xy


**  Always remember you are unique,  **

**  just like everyone else                   **     


Was my post helpful? Say thanks and

press the thank you button, on my post!!

God, damn it!

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.