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.

Centipede

Members
  • Joined

  • Last visited

Everything posted by Centipede

  1. the keep inventory is open source, i'd take a look at that. Can't find the link to give to you though, sorry.
  2. if your using a straight copy of arrow, make sure your changing the specific factors that relate to your mod. The advice i can offer ou is to compare yours to the arrow, and see where its going wrong. the problem may be arrow texture, or how the entity spawns (possibly behind the target) you can test if it is by shooting at a block to see where the arrow ends up
  3. or a redstone torch
  4. give me the code for the sword and the main file where the sword is declared, and i'll look at it
  5. Seems to be a problem with how you may have declared the obsidian as a material. then the enchant class isn't recognizing it as a material so it can't enchant to it
  6. i'd recommend not using a custom item material for now, and let it be treated as gold iron diamond etc. I honestly don't know how to add enchanting compatibility to custom blocks, it's probably something within the material file.
  7. ah, i see what your doing, you have a custom item type. hm..
  8. ^works too, but it's easier with the code i supplied. Basically, yes this can be enchanted. what can be enchanted onto it is already determined by the item type. either weapon or tool etc. Your doing work minecraft already does. (code supplied is tested) public int getItemEnchantability() { return 1; } in case you missed it from my spam
  9. plus, why don't you add the line and test it. if it works i'm right, if it doesn't, keep trouble shooting.
  10. no, i pulled that sample from the itemBow.java file. a vanilla item.
  11. public int getItemEnchantability() { return 1; } you'll need that. return 1; is basically saying yes it can be enchanted
  12. take a look at the class file named EnumEnchantmentType.java

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.