Skip 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.

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. Have you overriden getItemEnchantability in your Item? The base value is 0, which means not enchantable.
  2. Try overriding canApplyAtEnchantingTable in your enchantment too.
  3. I think that's supposed to be Enchantment#canApplyAtEnchantingTable Edit: return stack.getItem() == ItemList.ENCHANT_CRAFTING_ITEM ? true:false; There is no reason to do this. You can simply do this: return stack.getItem() == ItemList.ENCHANT_CRAFTING_ITEM; Second, make your max enchantibility a larger number. As is, you've said "this is only valid at exactly 3 levels." Too high and it'll get skipped.
  4. Does the death event actually fire client-side? (for non-this-client-player entities, that is) I'm not sure it does.
  5. Well, yes. The dedicated server has no idea what a JFrame is.
  6. MinecraftForge.EVENT_BUS.register(new EventKill(frame)); Hmm, what's this frame object, looking up... JFrame frame; Oh, it's null. Got it.
  7. Why have you uploaded the compiled class files in raw format rather than using any text pasting service like PasteBin or Gist?
  8. And the ore dictionary for recipes.
  9. That is a pointer to an array of floats. You need to cast it to the object type returned by inventoryHandsDropChances that you can see in the code (either float[] or List<float>, I'm not looking at it right now), then you can use it.
  10. .....er, sorry, I misread something twice. Not all awake. Ignore that.
  11. Compiling outputs multiple files (on obfuscated, one non), are you sure you grabbed the right one?
  12. Note that localization only works on the client side. You cannot translate on the server.
  13. If the data your TE is storing can fit within 4 bits, then absolutely you can compress that into metadata. You'll be having to create a BlockState for it anyway.
  14. Read your god damn crash report. Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated object at line 5 column 4
  15. EntityJoinedWorldEvent is probably the best
  16. Just because they're not null when you open up a save game and toss them around doesn't mean they aren't null when you initialize your creative tab. Item myItem; Tab myTab; preInit() { myTab = new Tab(myItem); myItem = new Item(); } In the above (heavily simplified) code, myTab is initialized with a null item. Why because it hasn't been created yet even though the item itself exists later and you can pick it up and toss it, the tab's item is still null.
  17. Where are you running your code? Client or server?
  18. So. This is what vectors are for. The player has a vector that is their "front" called "LookVec" (Search the EntityPlayer class). Take that vector, multiply by 0.5 (or 0.2 or whatever), add their current position, and voila. You have the spot a half-block in front of them.
  19. That is both the only way AND the correct solution, as you have discovered.
  20. You can't just do this in an arbitrary function. You have to do this during a render event.
  21. Or use the logger that Forge gives you during the event lifecycle....
  22. The error is not in the JSON or the PNG or the registration: See:
  23. Two, actually: isFullCube and BlockRenderLayer.

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

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.