Ok, this may be a dumb question, but do your textures appear in game?
What I mean is, I get those same error messages in my log, but then after Forge Mod Loader loads the mods, it reloads the Resource Manager and all of my icons get registered correctly at that point.
If your textures are NOT appearing in game, you'll have to double-check your file locations and post some code.
I have triple checked it and here is an example of my code:
public static Item PowerUnit = new PlatinumItem(1563, false, "A low energy power unit", MainColor).setCreativeTab(CreativeTabs.tabTools).setUnlocalizedName("PowerUnit").setCreativeTab(tabPlatinum).func_111206_d("platinum:PowerUnit");
It is either that or...
public void registerIcons(IconRegister IR)
{
itemIcon = IR.registerIcon("platinum:PlatinumBoat");
}
If that didn't work for you, how are you registering the textures in your code? If you follow the above suggestion, you would register an item like so:
Hi,
i have tried and tried but i cant seem to figure this one out...
package manofpanda.Platinum;
import java.awt.List;
import java.util.Random;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
public class blockPlatinumBell extends PlatinumBlock{
public blockPlatinumBell(int par1) {super(par1, Material.iron);}
public void onBlockAdded(World world, int x, int y, int z){check(world, x, y, z);}
public void onNeighborBlockChange(World world, int x, int y, int z, int par5, int par6){check(world, x, y, z);}
public int idDropped(int par1, Random par2Random, int par3){return PlatinumMain.PlatinumBell.blockID;}
@SideOnly(Side.CLIENT)
public int idPicked(World par1World, int par2, int par3, int par4){return PlatinumMain.PlatinumBell.blockID;}
public void check(World world, int x, int y, int z){
if (!world.isRemote){
if (world.isBlockIndirectlyGettingPowered(x, y, z))
{
System.out.println("Platinum: Ringing Bell");
world.playSoundEffect((double)x + 0.5D, (double)y + 0.5D, (double)z + 0.5D, "note.harp", 100000.0F, /*world.rand.nextFloat() * 0.1F + 0.9F*/0.5F);
}
}
}
}
I can not figure out why it doesn't play the sound and print the text when I apply redstone signal.
0
Am an idiot.
assets/Platinum
not,
assets/platinum
I am deeply ashamed in myself
0
I have triple checked it and here is an example of my code:
It is either that or...
And no they do not appear ingame
0
that is how I did it
0
Still does not work
0
The files are in forge/mcp/src/minecraft/assets/manofpanda/platinum/textures in either blocks, entity, gui, or items.
0
0
How does this make sence?
0
No i mean that in the inventory screen it makes the block not have a 3d texture. Kind of like beds
0
0
0
How do you give a block a item texture(not a model of the block)?
-- ManOfPanda
Sorry that I accidentally made this post twice. Is there a way to delete one?
0
As I said in the description this is Probably a noobish question.
I am wondering in my forge mod how to make a block have an item texture.
0
0
0
i have tried and tried but i cant seem to figure this one out...
I can not figure out why it doesn't play the sound and print the text when I apply redstone signal.
Help Would Be Much Appriciated...
-- ManOfPanda