drmrlego
-
Posts
14 -
Joined
-
Last visited
Posts posted by drmrlego
-
-
Change your registers to:
GameRegistry.registerBlock(snowstormBlock, "snowstormBlock"); LanguageRegistry.addName(snowstormBlock, "Blanket");
You should also give the block a unlocalized name
public BlockSnowstormBlock(int id, Material mat) { super(id, mat); this.setCreativeTab(CreativeTabs.tabBlock); this.setUnlocalizedName("snowtormBlock"); }
Yeah, that should work... But if it doesn't, then idk the problem.
-
Lets see... you do have a problem here...
public void registerIcons(IconRegister icon);{
Remove the ";"
And if THAT doesn't work, then I think I know why. I am familiar with forge 916, which is what I use, but you are using 953.
EDIT: Almost forgot,
public static final String modid = "Snowstorm";
Put that in your main mod file. Also in your main mod file,
Block snowstormBlock;
Should be
public static Block snowstormBlock;
But once again, we are using different forge versions, so I am unsure
-
I figured it out(I hope)! Change this...
public BlockSnowstormBlock(int id, int texture, Material mat) { super(id, texture, Material.cloth); this.setCreativeTab(CreativeTabs.tabBlock);
To this!
public BlockSnowstormBlock(int id, int texture, Material mat) { super(id, texture, mat); this.setCreativeTab(CreativeTabs.tabBlock);
That should fix it...
EDIT: Wait, you should remove the "int texture" and the "texture" inside the "super(id, texture, mat);"
Should be like
public BlockSnowstormBlock(int id, Material mat) { super(id, mat); this.setCreativeTab(CreativeTabs.tabBlock);
You can register textures like
@SideOnly(Side.CLIENT) public void registerIcons(IconRegister icon){ this.blockIcon = icon.registerIcon(YourModHere.modid + ":" + "YourBlocksTextureFileNameHere"); }
-
That is weird. I'm sorry for asking for so much, but could I see your current code? Sorry if I'm being a pain, and thanks for your patience.
-
I'm confused, what "Side tabs"?
-
Looks cool! Good job on it.
-
Good mod. Definitely downloading right now.
-
You could try looking at the QuartzOre or the minecraft worldgen class. I'll look at it now.
EDIT: Couldn't find where in the code Quartz gets generated in... Maybe you could have better luck than me, though!
-
This is for 1.6.4? Then, first off...
public void gameRegisters(){ GameRegistry.registerBlock(snowstormBlock);} public void LanguageRegistry(){ LanguageRegistry.addName(snowstormBlock, "Blanket"); }
First, get rid of the "public void LanguageRegistry", "public void gameRegistry", "gameRegisters();", and the "languageRegisters();" but keep the "LanguageRegistry.addName(snowstormBlock, "Blanket");" and the
"GameRegistry.registerBlock(snowstormBlock);" there. Second, also in your main class file, "@Init" should be "@EventHandler" And third...
public BlockSnowstormBlock(int id, int texture, Material mat) { super(texture, Material.cloth); this.setCreativeTab(CreativeTabs.tabBlock);
Change that to...
public BlockSnowstormBlock(int id, int texture, Material mat) { super(id, texture, Material.cloth); this.setCreativeTab(CreativeTabs.tabBlock);
Hope I helped
-
Don't know exactly, but I believe that there is something like onBlockRightClick or something like that I believe?
-
public class BlockCompressedCobblestone extends Block{ public BlockCompressedCobblestone(int id, Material par2Material) { super(id, par2Material); this.setCreativeTab(furniturecraft.FCTab); } @SideOnly(Side.CLIENT) public void registerIcons(IconRegister icon){ this.blockIcon = icon.registerIcon(furniturecraft.modid + ":" + "CompressedCobblestone"); } }
That is my block code for my mod, and it is 1.6.4, and...
public Block setBlockName(String string) { // TODO Auto-generated method stub return null; }
...indeed, it should not be there.
-
Can I see your code please?
Custom Mob that Picks up Blocks like Endermen [Solved]
in Modder Support
Posted
Try looking at the endermens class.