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.

ryancpexpert

Forge Modder
  • Joined

  • Last visited

Everything posted by ryancpexpert

  1. The if statement was a brain fart on my part, I meant to do a "or" statement (Idk why I made it how I did). Thank you for your help, but I am now having another problem, when I change it to e.entityPlayer I get and error under the "p.sendChatMessage(..)" line, it says to change it to addChatMessage, then when I do that it says to change it to addChatMessageComponent. Do you happen to know why this is happening?
  2. So, I am trying to create a mod (my knowledge of java at this point is very little), and I am trying to make a Interact Event that will do a bunch of things to a player. However, it does not seem to be working. I'm not sure if I have put the code in the wrong place, or I have just used a wrong function (the lines are currently in the item's class). If someone could help me out with this, I would appreciate it! Another problem I am having is with the textures of my blocks and items. I am fairly sure I have the code right, I think I have just placed the files in the wrong location, however, I cannot figure it out (C:\<forgedirectory>\src\main\resources\assets\themod\textures\<blocks/items>). [spoiler=Block] package me.ryancp.mod; 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.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.util.IIcon; public class BlockTest extends Block { @SideOnly(Side.CLIENT) protected IIcon blockIcon; protected IIcon blockIconTop; protected BlockTest() { super(Material.ground); this.setCreativeTab(TheMod.tabMod); } @SideOnly(Side.CLIENT) @Override public void registerBlockIcons(IIconRegister p_149651_1_) { blockIcon = p_149651_1_.registerIcon(TheMod.MODID + ":" + this.getUnlocalizedName().substring(5)); blockIconTop = p_149651_1_.registerIcon(TheMod.MODID + ":" + this.getUnlocalizedName().substring(5) + "Top"); } @SideOnly(Side.CLIENT) @Override public IIcon getIcon(int side, int metadata) { if (side == 1) { return blockIconTop; } else { return blockIcon; } } } If someone can help me with both of these problems, I would be most grateful!
  3. I realize I am not using the latest version in the log, but, I am still getting the error in the latest versions, that is what I meant. However, I think I am going to self-diagnose myself, based on what I have seen on the home page, and assume that it is due to having Java 8 installed after downloading Java jdk. Gonna uninstall it and install Java 7.
  4. I did read it, the version of forge isn't the problem, as I am using the latest version currently.
  5. I am currently having troubles with getting minecraft to launch, just started today, if anyone can help me, I would appreciate it. *NOTE: I am getting this same error in both 1.7.2 and 1.7.10.* Thanks!

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.