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.

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. Nope. You need to return an existing icon. Setting the texture string does jack shit after the texture map has been finalized.
  2. You want to do the same thing as that function, see, it extracts ItemStacks, and compare THAT.
  3. Everything you could ever want https://github.com/Draco18s/Artifacts/blob/master/main/java/com/draco18s/artifacts/components/ComponentHealth.java
  4. You see that "read from nbt" method? That looks kind of important and related to what you're doing.
  5. If your item stores another item inside it, that item is stored in the nbt data of the item stack passed to that function.
  6. Oh, I've been bit by that method at least twice.
  7. Guis are client side. If you want this info present on the server, you need packets
  8. Be careful with that one. I don't recall if it is that method or one that is named very similarly, but one of them is client-side-only.
  9. I asked because the way you posted it, you posted an abstract method, which has different rules.
  10. Most sections are still relevant. Most of what changed is on the rendering side (how blockstates/metadata work, icons, etc). If you're looking for an event list, try this page: http://www.minecraftforge.net/wiki/Event_Reference
  11. Have you included only method stubs here, or are you actually defining them as methods with { } (optionally with code in between)?
  12. As much as I know that programming is freaking magic, it does not operate on faith.
  13. Items are singletons, if you want to drop an item you need to pass a reference to the same Item you registered. @Override public Item getItemDropped(int metadata, Random random, int fortune) { return MyMainModClass.myCoolItem; }
  14. Succinctly, you don't. As you have things set up is the way to go: find the event, cancel it, do something else instead. Your "something else" would be a replacement class that does the same thing as, but with different results than, the original vanilla caves.
  15. Is that static init function ever called?
  16. Ok, why the duck are you encoding the values into a string? Just write them all to the bytebuffer.
  17. Check out this item of mine. All of its material values come from NBT https://github.com/Draco18s/Artifacts/blob/master/main/java/com/draco18s/artifacts/item/ItemArtifact.java
  18. And use spoiler tags
  19. Finite is for fluids that don't have source blocks, only quanta.
  20. Absolutely. What did you think the FMLPostInitializationEvent was
  21. Re random chest contents: Go look at ChestGenHooks
  22. Option 1: Wait until post-init Option 2: There's an event fired when something is registered with the OreDictionary, you can set up an event handler for that event and do whatever you need to. Also: "oreCOPPER" is wrong. No one should be registering their ores under this string.
  23. Your recipe needs to subtract 1 from the item stacks, then if the stack size is zero, set the slot to null.
  24. Just as an FYI: If you plan on charging money for those features, in any way, it's illegal by Minecraft's EULA.

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.