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.

6269329

Members
  • Joined

  • Last visited

Everything posted by 6269329

  1. I was wondering if anyone could give me some help with making a custom door. I have looked around and haven't really found anything that produced any results, so any help would be appreciated, Thanks!
  2. What was that mod supposed to be? Because 9minecraft is gross
  3. This is kind of a weird idea, but would it be possible to make a small biome that generates with a big wall around it?
  4. I am trying to add some recipes and other mechanics to thaumcraft and I am trying to figure out how to use thaumium in a custom recipe. I am using the API, but I don't know how to reference thaumium from it, if you even can. Thanks!
  5. nvm, I did the thing! public boolean onItemUse(ItemStack itemStack, EntityPlayer player, World world, int x, int y, int z, int par7, float par8, float par9, float par10) { if(player.getCurrentEquippedItem() != null) { ItemStack currentItem = player.getCurrentEquippedItem(); player.addPotionEffect((new PotionEffect(Potion.regeneration.getId(), 100, 1))); //4 seconds of Regen II if (currentItem.stackSize == 1) { player.inventory.decrStackSize(player.inventory.currentItem, 1); } else { ItemStack itm=player.inventory.getStackInSlot(player.inventory.currentItem); player.inventory.decrStackSize(player.inventory.currentItem, 1); player.inventory.setInventorySlotContents(player.inventory.currentItem,itm.copy()); } } return true; }
  6. Non-Existent Help is Non-Existent...Anyone?
  7. Thanks to Loon, I now have it working so that It will remove the item. However, for some reason it only works if the item is alone and not in an actual stack. Thanks for all the quick replies! public boolean onItemUse(ItemStack itemStack, EntityPlayer player, World world, int x, int y, int z, int par7, float par8, float par9, float par10) { if(player.getCurrentEquippedItem() != null) { ItemStack currentItem = player.getCurrentEquippedItem(); player.addPotionEffect((new PotionEffect(Potion.regeneration.getId(), 100, 1))); //4 seconds player.inventory.decrStackSize(player.inventory.currentItem, 1); } return true; }
  8. I am making a mod and I need the item to disappear when used. I have tried Durability and changing the stack size, but all the things I have found do nothing. Any help would be appreciated. public boolean onItemUse(ItemStack itemStack, EntityPlayer player, World world, int x, int y, int z, int par7, float par8, float par9, float par10) { if(player.getCurrentEquippedItem() != null) { ItemStack currentItem = player.getCurrentEquippedItem(); if(currentItem.getItem() == this) { player.addPotionEffect((new PotionEffect(Potion.regeneration.getId(), 100, 1))); //4 seconds int newStackSize = player.inventory.mainInventory[player.inventory.currentItem].stackSize - 1; //itemStack.stackSize-- doesn't work either currentItem.stackSize = currentItem.stackSize - 1; } } return true; }

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.