Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

penguinsfan77

Forge Modder
  • Joined

  • Last visited

  1. 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.
  2. After over a week of testing and trying things, i still have not fixed this problem. Please help
  3. 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.
  4. 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!
  5. 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....
  6. 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.
  7. Not that I know of. I know I did it for my blocks, but I haven't done that for items.
  8. After some further testing, I discovered that the getIcon() method is only being called when the player is holding the item.
  9. I should also warn you that your mod is a client only mod. It will not run on a server
  10. 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.
  11. What is the name of your mod and can we get the full crash log please
  12. 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
  13. 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.

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.