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.

SirCaptainCaleb

Members
  • Joined

  • Last visited

Everything posted by SirCaptainCaleb

  1. Overwriting vanilla recipes is simple enough. Is there a way to overwrite all modified pickaxe items? If not, maybe items with the word pickaxe in the name?
  2. As strange as it may sound, I actually want to maximally damage all crafted pickaxes (modded or vanilla items which are classified as a PickAxeItem)
  3. Okay, thanks for responding. I guess I'll try to find a way to make it work with recipes
  4. I see. Is there some other way to conditionally modify a crafting result?
  5. When an Itemstack is shift clicked from the crafting table result slot, a copy of that itemstack is created and placed in the player's inventory, as opposed to the Itemstack stored in the ItemCraftedEvent. This causes changes to the itemstack to be ignored when the player shift clicks, but the changes are applied if the player simply left click. In the following example, any PickAxeItem crafted by the player will be maximally damaged when the player left clicks the item to pick it up. But if the player shift clicks the item, it is moved to the inventory without damaging it. I have been scratching my head for a while on how to get around this. Any ideas? @SubscribeEvent public void onPickaxeCraft(ItemCraftedEvent craftedEvent){ ItemStack craftedItemStack = craftedEvent.getCrafting().getStack(); if(craftedItemStack.isEmpty() || !(craftedItemStack.getItem() instanceof PickaxeItem)) return; craftedItemStack.setDamage(craftedItemStack.getMaxDamage()); }

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.