Jump to content

LavX64

Members
  • Posts

    30
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

LavX64's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  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. 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..
  5. 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
  6. 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?
  7. 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
  8. I solved my problem by casting ((EntityPlayer)entityIn)
  9. 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
  10. what next? how do I interact with my player inventory or something?
  11. Is there any function besides onItemRightClick() to check keybindings? Like if I want to Shift+RightClick
  12. 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.
  13. Is there any method to make my item not wearable on offhand(because it causes some bugs)?
  14. It's okay, thank you for help but I already did my quiver.
  15. 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
×
×
  • Create New...

Important Information

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