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.

LavX64

Members
  • Joined

  • Last visited

  1. So you meant textures right? Sorry
  2. Yeah, i knew i had to do that, ty. So u asked how I did my quiver, and told bow to use it, so that's how, my quiver with arrows is ItemArrow with function isInfinite, so bow calls this func everytime it shoots
  3. take a look at extends parts of both items Also what's function to replace it better?
  4. LavX64 changed their profile photo
  5. I you really interested check github ItemQuiver and ItemQuiverWithArrows, code is not perfect, a lot of conditional spaghetti, but I have to check for a lot of stuff so..
  6. When I asked about quiver I've head same reply, some said I can do it only with custom bow, but I found a way, so.. Don't do such statements if you not sure
  7. I made a quiver which can be put into chest and legs armor slots, but it has no texture it both. So how I add different textures when it's on chest or legs?
  8. I made it dirty way, onUpdate when this item in offhand just copy it from there to player's inventory(or if it's full drop it), and delete it from offhand
  9. I solved my problem by casting ((EntityPlayer)entityIn)
  10. Wow this code is just what I needed, ty! I didn't know I can get playerEntity from Minecraft class. And I didn't know about Minecraft.getMinecraft() either
  11. what next? how do I interact with my player inventory or something?
  12. Is there any function besides onItemRightClick() to check keybindings? Like if I want to Shift+RightClick
  13. so func onUpdate(ItemStack, World, Entity, int, boolean) takes this parameters, but I want to look if player is holding item in offhand, but there's only Entity, not EntityPlayer, what do I do? Edit: Let me explain, I want to do entity.replaceItemInInventory() but int variable that im gettin is actually same for offhand and mainhand, also armor slots are 1-4, as well as inventory slots.
  14. Is there any method to make my item not wearable on offhand(because it causes some bugs)?
  15. It's okay, thank you for help but I already did my quiver.
  16. I already have an idea of sonsuming item, the problem is to make bow find my arrows in my quiver, to be exact - find arrows in my inventory OR my quiver with AT LEAST 1 Arrow count in it

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.