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.

Edska

Members
  • Joined

  • Last visited

Everything posted by Edska

  1. But I don't want to get enchanted item. I wan't to get that book with enchant, that can by placed in Anvil as enchant.
  2. Hello. I created my custom enchantment. It appears in "Combat tab" as enchanted book and can enchant weapon. Unfortunately I can't find any way to create crafting table recipe for that book. I declarate enchant like this. lifeSteal = new LifeSteal(config.enchLifeStealID, 1, EnumEnchantmentType.weapon); MinecraftForge.EVENT_BUS.register(lifeSteal);
  3. Hello. I can't find the way how can I leave player all his experience after death. Any one knows how can I do this?
  4. Hello. How can I get all my server players? Corrently logged in and offline players. This line return an array of the usernames of all the connected players: MinecraftServer.getServer().getAllUsernames(); I need to get all players from my server not only connected at that time.
  5. But how can I call that ItemStack in my constructor or apply my created ItemStack to my item? I tried this in my constructor: ItemStack itemstack = new ItemStack(par1, 1, 500); and when I check this: getItemDamageFromStack(itemstack) I get that it is 500 damaged, but nothing changes on my items.
  6. Hello, I am trying to write my first mod. Everything goes fine, but I have one problem. How can I set item damage on item when it is found or created? Now I have this code: public BrokenItem(int par1) { super(par1); setMaxStackSize(1); setMaxDamage(1000); } I would like to create broken items. For example with 500 durability when they are found.

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.