Jump to content

how do i set block harvest leve?


Recommended Posts

i've tried setting the ore harvest level. but it's still instantly breakable by anything.

here's the code for the blocks.

package com.kami.blocks;


import com.kami.creativetabs.MCreativeTabs;

import com.kami.lib.RefStrings;


import cpw.mods.fml.common.registry.GameRegistry;

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraftforge.common.MinecraftForge;

import scala.collection.immutable.Set;


public class MBlocks {

public static void mainRegistry() {





public static Block WickOre;

public static Block Wickblock;

public static Block negative;


public static void initializeBlock(){

WickOre = new WickOre (Material.ground).setBlockName("WickOre").setCreativeTab(MCreativeTabs.tabBlock).setBlockTextureName(RefStrings.MODID + ":Wickore");WickOre.setHarvestLevel("pickaxe", 2);

Wickblock = new wickblock (Material.ground).setBlockName("wickblock").setCreativeTab(MCreativeTabs.tabBlock).setBlockTextureName(RefStrings.MODID + ":Wickblock");Wickblock.setHarvestLevel("pickaxe", 2);

negative = new negative (Material.ground).setBlockName("negative").setCreativeTab(MCreativeTabs.tabBlock);




public static void registerItem(){

GameRegistry.registerBlock(WickOre, WickOre.getUnlocalizedName());

GameRegistry.registerBlock(Wickblock, Wickblock.getUnlocalizedName());

GameRegistry.registerBlock(negative, negative.getUnlocalizedName());




i'm not really a "coder". all i did was watch mchewy tutorials. i have a very small understanding of coding.

Link to comment
Share on other sites

Do you know Java at all? Because if not then please go learn Java and then come back, because mods are literally coding. If you're not a coder, than become one, because otherwise you will not be able to create anything "cool" or such. Java is extremely helpful, seeing as mods and Minecraft is coded in Java. PLEASE learn Java.

Who are you? Why have you brought me here? And why are there so many PewDiePie fanboys surrounding meeeeeeeee....... *falls into pit and dies*.


Also this. Check it out.

width=700 height=200http://i.imgur.com/J4rrGt6.png[/img]

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.