Jump to content

ginghisken

Members
  • Posts

    2
  • Joined

  • Last visited

ginghisken's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Thanks for the help - I was able to get it going with your advice. In case any fellow 1.16.5 users see this, the following method was the replacement. PlayerEntity.startUsingItem(); I really appreciate the kind response, despite the version no longer being supported!
  2. Hello, I have been working on making an item for a mod in Forge. Most of the resources I could find use PlayerEntity.setActiveHand, but that no longer seems to exist, and I can't seem to find an equivalent method in PlayerEntity. My code is below in case it helps, though it's not particularly specific. @Override public ActionResult<ItemStack> use(World worldIn, PlayerEntity playerIn, Hand hand) { ItemStack mainHandItem = playerIn.getMainHandItem(); // cannot resolve method playerIn.SetActiveHand(hand); return new ActionResult<ItemStack>(ActionResultType.SUCCESS, mainHandItem);
×
×
  • Create New...

Important Information

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