Posted February 27, 20214 yr Holding right-click with a bow in thirdperson will make the bow aim at whereever you are looking at (i.e. follows the player's head rotation). I want my items to be able to do the same but I have no idea. What should I do? Edited February 28, 20214 yr by NorthWestWind Looks like nobody is noticing :(
February 28, 20214 yr Hmmm the bow always aim at where the player is looking at, doesn't matter if it is first or third person view...do you want your item to have a similar behaviour to the bow when right clicked? You can override getUseAction in your item class and return UseAction.BOW Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port
February 28, 20214 yr Author Yes, I'm looking for such behaviour. However, I want my item to have such behaviour even without right-click.
February 28, 20214 yr Author I have been searching for solution for the last few hours and I came across IBakedModels. It seems very likely to be the solution, but I don't really know how to dynamically rotate an item.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.