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.

Groghad

Members
  • Joined

  • Last visited

  1. I'm probably wasting your time here, but I'm new to modding and I don't quite get it that well yet. Could you explain what is what, and insert the right code maybe ?
  2. So I'm making a custom workbench and I've come across a problem. I have no clue how to make it so that "world.getBlockState" wouldn't come up as an error because it wants a BlockPos and inserting just x y z doesn't work. How do I fix this and is there an easier way of doing this? Obviously I'm also getting an error on "new ContainerWorkingStation(player.inventory, world, BlockPos)" this block pos but i need it to be block pos ... @Override public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { TileEntity entity = world.getTileEntity(new BlockPos(x, y, z)); if(ID == GrogsmodsBlocks.guiIDworkingStation){ return ID == GrogsmodsBlocks.guiIDworkingStation && world.getBlockState(??) == GrogsmodsBlocks.guiIDworkingStation ? new ContainerWorkingStation(player.inventory, world, BlockPos) : null; } }

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.