1
Hey, I have problem with blocks
If I will write this:
or
etc.
I have errors like this:
Any1 will tell me why?
(Become so after recompile mod)
If I will write this:
this.setBlockName("Ruby Ore");
or
this.setHardness(4f);
etc.
I have errors like this:
The method setBlockName(String) is undefined for BlockRubyOre
Any1 will tell me why?
(Become so after recompile mod)
Create an account or sign in to comment.
8
Ehh...
replace your blockfloortile with ruby ore, i edited a example quickly. this is 1.7.10
public static Block RubyOre = new BlockFloortile1(Material.rock).setBlockName("rubyore").setHardness(8.0F).setStepSound(Block.soundTypeStone).setResistance(6.0F).setCreativeTab(yourtabname);;
package yourpackagenamehere;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
public class rubyore extends Block {
public rubyore(Material material) {
super(material);
this.setCreativeTab(CreativeTabs.tabYOURCTABNAMEHERE);
}
public void registerBlockIcons(IIconRegister iconRegister) {
blockIcon = iconRegister.registerIcon("yourmodname:rubyore");
}
}
whats are you making here?
a forge mod block? or another mod launcher?
a forge mod block? or another mod launcher?
I am making a forge mod block
Use this instead:
public RubyOre()
{
setBlockName("RubyOre");
}
Don't work
Are you using mods?
Never mind I think I see you are making a mod...
Never mind I think I see you are making a mod...