Jump to content
  • Home
  • Files
  • Docs
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • finley243

finley243

Members
 View Profile  See their activity
  • Content Count

    3
  • Joined

    May 9, 2019
  • Last visited

    November 30, 2020

Community Reputation

0 Neutral

About finley243

  • Rank
    Tree Puncher
  1. finley243

    [1.12.2] Preventing block breaking on left click with item

    finley243 replied to finley243's topic in Modder Support

    Thanks for the quick reply! I'll check out that method as soon as possible.
    • December 4, 2019
    • 3 replies
  2. finley243 started following [1.8] Detecting when player releases item (for gun mod) and [1.12.2] Preventing block breaking on left click with item December 4, 2019
  3. finley243

    [1.12.2] Preventing block breaking on left click with item

    finley243 posted a topic in Modder Support

    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!
    • December 4, 2019
    • 3 replies
  4. finley243

    [1.8] Detecting when player releases item (for gun mod)

    finley243 posted a topic in Modder Support

    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 during the time limit of "getMaxItemUseDuration". Basically, does anyone know of a way to either set the value of "this.getMaxItemUseDuration" to infinity (so that the item can be "used" forever without finishing a cycle) or a way to detect the player releasing the mouse button even after that duration has ended? (I'm also very open to suggestions if anyone knows of a better way that I should be doing this.)
    • May 9, 2019
    • 1 reply
  • All Activity
  • Home
  • finley243
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community