wait its saying it doesn't work this.setBlockTextureName() is undefined for type prisonwall
Remove the parameters in the "public fancywall" method, and change "super(materialln)" to "super(Material.rock)" - you can change rock to other materials.
Remove the parameters in the "public fancywall" method, and change "super(materialln)" to "super(Material.rock)" - you can change rock to other materials.
where is the public fancy wall method exactly
is it the public fancywall(int i, Material materialIn)?
Try putting this.setBlockTextureName above this.setCreativeTab. I've seen this to be an error for some people. Also make sure your texture is in the right location path wise.
Try putting this.setBlockTextureName above this.setCreativeTab. I've seen this to be an error for some people. Also make sure your texture is in the right location path wise.
public static Block PrisonWall = new PrisonWall(3000, Material.rock).setUnlocalizedName("PrisonWall").setBlockTextureName(Constants.Dishonored Mod:PrisonWall);
it wants me to import the things underlined in red and in bold. What do i import?
public static Block PrisonWall = new PrisonWall(3000, Material.rock).setUnlocalizedName("PrisonWall").setBlockTextureName(Constants.Dishonored Mod:PrisonWall);
it wants me to import the things underlined in red and in bold. What do i import?
main:
package dishonoredmod.common;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.registry.GameRegistry;
import dishonoredmod.block.fancywall;
@Mod(modid = "Dishonored Mod", name = "Dishonored Mod", version = "Alpha 1.0")
public class Dishonored {
@SidedProxy(clientSide = "dishonoredmod.common.ClientProxy", serverSide = "dishonoredmod.common.CommonProxy")
public static CommonProxy proxy;
public static Block fancywall = new fancywall(3000, Material.wood).setUnlocalizedName("fancywall").setBlockTextureName("Dishonored Mod:fancywall");
public Dishonored(){
GameRegistry.registerBlock(fancywall, "fancywall");
}
}
block files:
package dishonoredmod.block;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
public class fancywall extends Block {
public fancywall(int i, Material materialIn) {
super(materialIn);
this.setCreativeTab(CreativeTabs.tabBlock);
this.setHardness(3F);
this.setResistance(3.0F);
}
}
this.setBlockTextureName() is undefined for type prisonwall
Remove the parameters in the "public fancywall" method, and change "super(materialln)" to "super(Material.rock)" - you can change rock to other materials.
where is the public fancy wall method exactly
is it the public fancywall(int i, Material materialIn)?
package dishonoredmod.block;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
public class PrisonWall extends Block {
public PrisonWall() {
super(Material.rock);
this.setCreativeTab(CreativeTabs.tabBlock);
this.setHardness(7F);
this.setResistance(7.0F);
this.setBlockTextureName("dishonoredmod:prisonwall");
}
}
package dishonoredmod.block;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
public class PrisonWall extends Block {
public PrisonWall() {
super(Material.rock);
this.setBlockTextureName("dishonoredmod:prisonwall");
this.setCreativeTab(CreativeTabs.tabBlock);
this.setHardness(7F);
this.setResistance(7.0F);
}
}
still seems to have the same problem
eclipse wants me to create a method. Should i?
now i have an error in my main file
"The constructor fancywall(int i, Material) is undefined"
i didn't add the method
public PrisonWall(int i, Material materialIn) {
super(materialIn);
in my block class file and i fixed my main file error but i still have a setblocktexturename error
public static Block PrisonWall = new PrisonWall(3000, Material.rock).setUnlocalizedName("PrisonWall").setBlockTextureName(Constants.Dishonored Mod:PrisonWall);
it wants me to import the things underlined in red and in bold. What do i import?
What it is telling you too x.x
Seeing as you don't know the basics of Java and how to use an IDE, I suggest going back to 1.7.10. 1.8 is still unfinished and lacking in tutorials.