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.

shmcrae

Members
  • Joined

  • Last visited

Everything posted by shmcrae

  1. Alright, I tried this and the getIconIndex and nothing. readFromNBT: ElementStaff:
  2. I guess I'm getting totally confused. So I still need the getIconIndex method in my item class along with this in the readFromNBT. I'm not to sure what do put in the getIconIndex method, I know I return an icon but what do I compare what to to return an icon.
  3. Ok I tried this and still nothing.
  4. I tried this but it didn't work, not sure if I'm on the right path.
  5. Alright, I'm still unsure how to check my item in the slot. readFromNBT and do I check it in here or do i check it in my item class with getIconIndex?
  6. Alright, how would I check the NBT data and do i check it in the getIconIndex method? StaffInventory
  7. This is what i got so far, not sure if this is right.
  8. So I put it in my item class so it would look like this that's what's in the Item class. So i would put an if statement in there but how do i check my custom slot and what item is there
  9. Where do i put this method and also how do i check for an item in my custom gui slot.
  10. I'm wondering how to change the texture of the item (Staff) based on the item that is in the staff. I'm not sure how I can check if a certain item is in a slot. StaffInventory: StaffContainer:
  11. Thanks, do you know how I make it so you can shift click items in?
  12. I think the Gui is fine, it's just the slot positions are messed up and I followed a tutorial so I'm not sure how to fix it. I know it's probably in here but I'm not sure what numbers to use to fix it StaffContainer:
  13. Thanks I'll check it out and tell you if it works.
  14. I'm trying to make when you have my item and you press a key it opens the Gui, but it doesn't work. I also don't know how to make an item have a slot and can't find tutorials on it. Main: KeyHandler: PacketPipeline: AbstractPacket: OpenGuiPacket: GuiHandler: StaffGui: StaffContainer: ElementStaff: RefStrings: ClientProxy:
  15. How would i render it from positioning instead of from the entity
  16. Thank you it's rendering now but its rendering in short bursts not a constant beam Edit: ps i took the doRenderFlames part from the renderArrow in the RenderArrow class Render Class: http://pastebin.com/sa0BqA5q
  17. It crashed heres the report http://pastebin.com/1BjQ8W9W
  18. I already did that, if you look above i listed all of my classes. Flame Staff: http://pastebin.com/JjNSnmwr EntityFlames: http://pastebin.com/y0z8LHUa (I extended the entity by EntityArrow, don't know if thats wrong) RenderFlames: http://pastebin.com/rqtENPX7 MainClass: http://pastebin.com/54QiyPEe ClientProxy: http://pastebin.com/qY8FzLPx I already made the Render class and i already have the registry in the client proxy. But it still wont render the beam.
  19. ok so what would be the problem with the beam rendering?
  20. is it because of this if (!par2World.isRemote) { par2World.spawnEntityInWorld(new EntityFlames(par2World, 0.0, 0.0, 0.0)); } should i get rid of the if statement

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.