What is your MODID? It should be ExternalMod, capitalization matters.
Rollback Post to RevisionRollBack
If your thread has been resolved and you're satisfied with your results then go to: Tools > Edit Thread and add [SOLVED] to the title. Also if your results are satisfying or someone greatly helped you, don't forget to give them a like on their post.
You're not giving us much to work with. All I can see wrong here is that your constructor for icoblock is protected. That needs be public, so that Minecraft can actually work with the code in that class.
Rollback Post to RevisionRollBack
If your thread has been resolved and you're satisfied with your results then go to: Tools > Edit Thread and add [SOLVED] to the title. Also if your results are satisfying or someone greatly helped you, don't forget to give them a like on their post.
EDIT: I was looking at the console and spotted this fly by
[01:29:55] [Client thread/ERROR]: Using missing texture, unable to load ExternalMod:textures/blocks/ico16.png
java.io.FileNotFoundException: ExternalMod:textures/blocks/ico16.png
Just for a basis, it's best that you include an error log, if there are even any errors, and provide anything anything that could relate to the issue. Also about your localization, it should be in the assets folder. So it would be src/main/resources/assets/ExternalMod/lang/en_US.lang instead of src/main/resources/ExternalMod/lang/en_US.lang
The only thing you should ever find outside your assets folder is things that would relate to your mcmod.info file, or the mcmod.info file itself.
If your thread has been resolved and you're satisfied with your results then go to: Tools > Edit Thread and add [SOLVED] to the title. Also if your results are satisfying or someone greatly helped you, don't forget to give them a like on their post.
I changed the name of the ExternalMod folder in assets now it would be
src/main/resources/assets/externalmod/textures/blocks/ico16.png
with that the texture works but the name still wont come up in game its still
title.ico.name
in the en_US.lang its
title.ico.name=ico
EDIT: there isn't any more errors in the console after i fixed that capitalization.
Texture file location
src/main/resources/assets/ExternalMod/textures/block/ico16.png
lang location
src/main/resources/ExternalMod/lang/en_US.lang
Block.java
import cpw.mods.fml.common.registry.GameRegistry;
import ExternalMod.lib.Strings;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
public class blocks {
public static void mainRegistry() {
initialiseBlock();
registerBlock();
}
public static Block icoblock;
public static void initialiseBlock() {
icoblock = new icoblock(Material.ground).setBlockName("ico").setCreativeTab(CreativeTabs.tabCombat).setBlockTextureName(Strings.MODID + ":ico16");
}
public static void registerBlock() {
GameRegistry.registerBlock(icoblock, icoblock.getUnlocalizedName());
}
}
icoblock.java
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
public class icoblock extends Block {
protected icoblock(Material p_i45394_1_) {
super(p_i45394_1_);
}
}
EDIT: I was looking at the console and spotted this fly by
[01:29:55] [Client thread/ERROR]: Using missing texture, unable to load ExternalMod:textures/blocks/ico16.png
java.io.FileNotFoundException: ExternalMod:textures/blocks/ico16.png
The only thing you should ever find outside your assets folder is things that would relate to your mcmod.info file, or the mcmod.info file itself.
src/main/resources/assets/externalmod/textures/blocks/ico16.png
with that the texture works but the name still wont come up in game its still
title.ico.name
in the en_US.lang its
title.ico.name=ico
EDIT: there isn't any more errors in the console after i fixed that capitalization.
Art by me: MrPancakeWolfie@DeviantArt
worked thx xD