Everything posted by penguinsfan77
-
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:
-
[1.7.10] Item icon only renders in hand
Yeah I will when I get hone again
-
[1.7.10] Item icon only renders in hand
One of the items I created has the missing texture icon in the inventory however no missing texture reports appear in the log. Also, when you hold the item the texture renders properly. Example: Source code: www.github.com/penguinsfan77/RandomStuff
-
[1.7.10] [Solved] Unable to play sounds
i would need the whole method to do proper testing. This is because the .playSoundAtEntity() method probably works fine, its just the way your calling it.
-
[1.7.10]Registering Icons with ResourceLocation
getIcon() will still work fine. However, instead of using the unlocalized name for your item use: modid:texturename where modid is the mod id of the mod you want the texture from.
-
[1.7.10] [Solved] Unable to play sounds
Is your mod open source? If so I could look at the code and so some testing of my own.
-
[1.7.10] [Solved] Unable to play sounds
Can you post the whole method that line is in?
-
Console Output Message
I surprisingly just got the same message in my console. I found that the cause was the fact that the variable name and the String name used in the registry were different. If those are both the same then it works fine.
-
[SOLVED][1.7.10] Crash when processing ObjectHolder annotations
Thanks!
-
Console Output Message
Alright then I'm not sure. but if they work fine then its too big of an issue but maybe someone else knows how to solve fix it.
-
[SOLVED][1.7.10] Crash when processing ObjectHolder annotations
I don't think so. Here's my source code if you want to take a look: https://github.com/penguinsfan77/RandomStuff
IPS spam blocked by CleanTalk.