Jump to content

Recommended Posts

Posted

Hello, I just made my first block (ore) in forge and I am trying to make it to generate in world (underground, like iron, coal, diamond ores etc), I am very confused on how to make it, maybe someone can provide very basic example? or just give me link to latest and most easiest/reliable guide/tutorial/manual? Sorry if I posted in wrong section.

 

Also, since I opened this thread - off topic question, am I only one or this site (and wiki too) is taking 12-15 seconds to load? (my internet is fine and every other pages loads much faster)

 

Thanks for attention :)

Posted

And as for taking 15 seconds to load, I think you are the only one. If your internet is fine then it could be your computer's processing power, that can slow load times down. I'm fine with load times at the moment...

Posted

Well, my problem with tutorials or guides is that they all use different styles and do different things, and when I switch from one author to another, I get very confused, well, I had a lot of errors and I had to remove "private" off variables, but I still get one error, heres code:

 

 

package nika10.craftfortress.blocks;import net.minecraft.block.Block;import net.minecraft.block.material.Material;import net.minecraft.creativetab.CreativeTabs;import net.minecraft.item.Item;public class NativeCopperOreBlock extends Block {  public NativeCopperOreBlock(Material materialIn) {	super(materialIn);	Item drop;	int meta;	int least_quantity;	int most_quantity;	this.setHarvestLevel("pickaxe", 1);        this.setHardness(10.0f);        this.setResistance(15.0f);        this.setUnlocalizedName(unlocalizedName); //This line is giving me error.        this.setCreativeTab(CreativeTabs.tabBlock);}}

 

 

error is "The field Block.unlocalizedName is not visible. and I commented on line that error is being thrown. unlocalizedName IS private when I checked, I don't know what to do.

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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