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.

Shreyas R

Members
  • Joined

  • Last visited

Everything posted by Shreyas R

  1. This is the version I'm using net.minecraftforge:forge:1.19-41.1.0 and it doesn't have the CreativeModeTabEvent$BuildContents class and the EnchantmentUtils class.
  2. So I had a question and I just got from India jet lack... So anyways If you have it to enchant on craft does that also mean that it would be enchanted in the creative menu?
  3. So what is the code for enchanting and where is the #accept?
  4. Hello, I've been trying to do this for the past 3 days with no luck😑 So what I'm trying to do is to add sharpness to a custom sword I made and this is my code👇 package com.shreyas.exmod.item.custom; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.SwordItem; import net.minecraft.world.item.Tier; import net.minecraft.world.item.enchantment.Enchantment; import net.minecraft.world.item.enchantment.Enchantments; public class DivineExcaliburItem extends SwordItem { public DivineExcaliburItem(Tier tier, int i, float v, Properties properties) { super(tier, i, v, properties); } @Override public boolean canApplyAtEnchantingTable(ItemStack stack, Enchantment enchantment) { return enchantment == Enchantments.SHARPNESS || super.canApplyAtEnchantingTable(stack, enchantment); } @Override public boolean isFoil(ItemStack ignored) { return false; // never looks enchanted } } And I have no idea how to add the echant to it. Thanks in advance!

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.