Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

finley243

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About finley243

  • Rank
    Tree Puncher
  1. Thanks for the quick reply! I'll check out that method as soon as possible.
  2. Hello there, I am trying to replicate the functionality of sword items in that left clicks while holding the item don't destroy blocks in creative. I dug around a bit in the Item.Sword class but don't see anything that would cause this functionality. (My guess is it's handled somewhere else, but I don't know where.) If anyone knows how to implement this for a new item type (or where the code that does this for swords is located), please respond. Thank you!
  3. Hello, I'm working on a mod that implements guns by extending the ItemBow class. I am currently using onItemRightClick as the trigger to fire the gun. In an attempt to make semi-automatic weapons (i.e. clicking mouse fires once, and won't fire again until the mouse is released), I call setItemInUse each time it is triggered, and then set a boolean "hasReleased" that prevents this method from running again until onPlayerStoppedUsing is called. However, onPlayerStoppedUsing does not usually trigger. If I'm correct, this i because it will only trigger if the player releases the mouse button durin
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.