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.

christopher7332

Members
  • Joined

  • Last visited

  1. I'm trying to create a item that when you click on a certain block, it will change into a different block that you can collect. Here is my code so far: public boolean onItemUse(ItemStack itemstack, EntityPlayer entityplayer, World world, int par4, int par5, int par6, int par7) { if(world.getBlockId(par4, par5, par6) == ModpackExtras.minedawnoreblock.blockID) { itemstack.damageItem(1, entityplayer); entityplayer.inventory.addItemStackToInventory(new ItemStack(ModpackExtras.glowshardblock)); return true; } else { return false; } } I set it to give you it instead of changing into the block for testing purposes. I went to try it, but it did not activate or do anything. I tried taking out the if statement to see if it was getting caught up on checking the block, but it did not work. Please help.

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.