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.

GravityBurger

Forge Modder
  • Joined

  • Last visited

Everything posted by GravityBurger

  1. Sorry about that. I changed a few things and now it needs to be activated by a shift-right click.
  2. I'm trying to make a strobe light block that changes the block (like a furnace). I need it to start flashing when you shift-right click The first change works, but it doesn't continue. public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9){ if (!world.isRemote){ while(world.getBlock(x,y,z) == StrobeLights.StrobeLightBlue || world.getBlock(x,y,z) == StrobeLights.StrobeLightBlueOn){ if(world.getBlock(x, y, z) == StrobeLights.StrobeLightBlue){ world.setBlock(x,y,z, StrobeLights.StrobeLightBlueOn); }else if(world.getBlock(x, y, z) == StrobeLights.StrobeLightBlueOn){ world.setBlock(x, y, z, StrobeLights.StrobeLightBlue); return true; } return false; } return false; } return false; Any suggestions?
  3. I would like to be able for the player to use an anvil to repair their armor. How would I do that? Pretty much, how would I add an anvil recipe? Thanks
  4. Sorry, I'm really stupid... I forgot to register the block with GameRegistry.regsiterBlock Sorry...
  5. Sorry, I'm not using the shouldRefresh() method. I mostly copied the vanilla code. I do have the updateEntity() in tile entity and a updateBlockState() method on the block class.
  6. Wow, my Fryer has lots of bugs Disappears when I put the valid things in it. The block is destroyed with no item. BTW it's kinda urgent. The deadline is Wednesday... Main Class http://pastebin.com/qk4MD45s TileEntitySmallFryer http://pastebin.com/NTnmbRKj Small Fryer Block Class http://pastebin.com/Ev0LXpTN
  7. For some reason, my Fryer GUI's texture is not showing up. I checked the location and lower cased all the letters. Main Class: http://pastebin.com/qk4MD45s GUI Class: http://pastebin.com/8TSHNdp5
  8. Thanks, I don't know how I didn't think of that earlier
  9. Title says it all Code http://pastebin.com/xzLDVUct
  10. When I want to test my mod, it crashes in a second http://pastebin.com/ziyakxpC
  11. I've had this problem for a while. Is there a way to rearranging items in my creative tab? Here's the main class, the minecraft log, and a screenshot. Main Class http://pastebin.com/BHEnkiUJ Minecraft log http://pastebin.com/reY7tqKq Minecraft ScreenShot
  12. I just noticed this, because anything in my creative tab was kinda messy. So I tried to change the ID's, but Minecraft wasn't obeying it. Here's my base class and the error it gave me. Base Class: http://pastebin.com/4zXj92WE Errorr it gave me: http://pastebin.com/vqR8crQ8 Thank you -GravityBurger
  13. I need a bit of help for adding a potion effect to some armor. I used to be able to use the TickRegistry and TickHandler, but it looks like they removed it or I'm just doing something wrong. Thanks -GravityBurger

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.