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. All of the methods you have indicated no longer take integer x y z parameters but a single BlockPos object, which is a wrapper around integer x y z.
  2. Gradle has a replace method/option. I use it for my mod versions, but I can't get at my code atm to provide an example.
  3. Partial ticks is what happens when you take "1.73489 ticks elapsed" (13ms left until next tick) and express it as "1 tick" (plus a little bit). So you add, not multiply.
  4. Reflection's setAccessible(true); would have done that too.
  5. You really need to go learn programming before modding. What you are trying to do is really quite straight forward. This won't solve your problem, but it will show you how I handled something similar. @Override public IIcon getIcon(ItemStack stack, int pass) { IIcon i = itemIcon; if(pass == 0) { if(stack.stackTagCompound == null) { return itemIcon; } i = (IIcon) ArtifactsAPI.itemicons.icons.get(stack.stackTagCompound.getString("icon").toLowerCase()); if(i == null) { i = itemIcon; } } else { if(stack.stackTagCompound == null) { return (IIcon) ArtifactsAPI.itemicons.icons.get("overlay_artifact1"); } i = (IIcon) ArtifactsAPI.itemicons.icons.get("overlay_"+stack.stackTagCompound.getString("icon").toLowerCase()); if(i == null) { i = (IIcon) ArtifactsAPI.itemicons.icons.get("overlay_artifact1"); } } return i; }
  6. What part of "read the NBT inside getIconIndex" have you not understood?
  7. You compare it to the date stored in the NBT!
  8. You can't override a static method
  9. If anyone doesn't get that this is a joke... then I don't even know. Roughly equal to a Euro, calling them equal is good enough for forum work. It's really about 8 cents weak on the dollar side ($1.08 = 1€)
  10. Your getIconIndex method hasn't changed.
  11. $25? That's far too low. I'm getting $35 contract right now, I wouldn't take less than $75/hr freelance.
  12. I'm sure it would help if writeSettingsToNBT and readSettingsFromNBT was actually being called somewhere.
  13. This is kiiiiiind of a big deal with the regeneration effect. Because regeneration heals you when the ticks remaining % 10 == 0. If it's always 400 ticks left, then it's always %10==0, ergo it heals every tick.
  14. Due note that the tradeoff here is more memory required to maintain the TE. Many things are a trade between CPU and RAM.
  15. Did you override canApply(ItemStack) ?
  16. 3000 nanos is NOTHING. A TE will have more overhead than that.
  17. I bet the value returned by getDeviceWashTime() is only calculated server side and synced south detectAndSemdChanges()
  18. Nope. You need to return an existing icon. Setting the texture string does jack shit after the texture map has been finalized.
  19. You want to do the same thing as that function, see, it extracts ItemStacks, and compare THAT.
  20. Everything you could ever want https://github.com/Draco18s/Artifacts/blob/master/main/java/com/draco18s/artifacts/components/ComponentHealth.java
  21. You see that "read from nbt" method? That looks kind of important and related to what you're doing.
  22. If your item stores another item inside it, that item is stored in the nbt data of the item stack passed to that function.

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.