-
getColorFromItemStack not working in ItemBlock
I found the solution!!! i was missing this: @SideOnly(Side.CLIENT) public int getRenderColor(int meta) { return Integer.parseInt(Colors.fromNumber[meta], 16); } from my block class.
-
getColorFromItemStack not working in ItemBlock
After over a week of testing and trying things, i still have not fixed this problem. Please help
-
issues are fun eh?
re-download the latest forge and take everything from that folder and put in in your mods folder. Then start a command window in that directory and type: gradlew clean gradlew setupDecompWorkspace gradlew eclipse thats what i type when i start and it works fine.
-
getColorFromItemStack not working in ItemBlock
I am trying to make colored planks for my mod. I have the planks colored right when placed on the ground but when they are in the inventory they are all white. Here is the ColoredPlanksItemBlock class: public class ColoredPlanksItemBlock extends ItemBlock { private Block block; public ColoredPlanksItemBlock(Block block) { super(block); this.block = block; this.setUnlocalizedName(Names.Blocks.COLORED_PLANKS); this.setHasSubtypes(true); } @Override public int getMetadata(int meta) { return meta; } @Override public String getUnlocalizedName(ItemStack itemStack) { return String.format("item.%s%s.%s", Textures.PREFIX, Names.Blocks.COLORED_PLANKS, Names.Colors.COLOR[itemStack.getItemDamage()]); } @Override @SideOnly(Side.CLIENT) public int getColorFromItemStack(ItemStack itemStack, int pass) { return Integer.parseInt(Colors.fromNumber[itemStack.getItemDamage()], 16); } } I know that the getColorFromItemStack method is being called (I added a check for it) however the item is not getting colored. I am very confused as to why this is not working as vanilla does it the same way with leaves. Any help is greatly appreciated. Thanks!
-
minecraft forge opens and then on launch closes
It is not possible to help you. You have provided no log files or anything so we have no idea whats going wrong, there for we cant help fix it....
-
My Forge Mod Loader Isn't Work please Help Me
This shouldn't be in modder support... The modder support fourm is for people who are developing mods for with Forge, which you clearly aren't. Please move this the the Support and Bug Reports fourm and provide them with the log files.
-
[1.7.10] Item icon only renders in hand
Not that I know of. I know I did it for my blocks, but I haven't done that for items.
-
[1.7.10] Item icon only renders in hand
After some further testing, I discovered that the getIcon() method is only being called when the player is holding the item.
-
[1.7.10] [Solved] Unable to play sounds
I should also warn you that your mod is a client only mod. It will not run on a server
-
[1.7.10] [Solved] Unable to play sounds
If you only want the player to hear the sound and not every player around that player then this works fine: mc.thePlayer.playSound("random.levelup", 1.0F, 1.0F); However if you want every player near the player that sent the message to hear the sound this won't work.
-
my mod works on eclipse but not in minecraft! [SOLVED]
What is the name of your mod and can we get the full crash log please
-
[1.7.10] [Solved] Unable to play sounds
What is the class doing?
-
[1.7.10] [Solved] Unable to play sounds
Is the method that you are trying to use it in an Overide of another method? If so which one? and does the class you are trying to use it in extend anything? If you give me these two pieces of information I might be able to help you
-
[1.7.10] [Solved] Unable to play sounds
That method doesn't help. We need to see the everything in the same method that your trying to make it work in. For example, I have no idea what the "mc" variable is and where you define it. without that I can't help you.
-
[1.7.10] Item icon only renders in hand
Log:
IPS spam blocked by CleanTalk.