I'm about to program a Forge Mod and would like to indirectly use some ideas from older mods again. At that time it was still common practice that one took less damage with a right-click with a sword and meanwhile also an animation appeared.
With the custom swords I would like to use this function again. On the one hand, how can I change the position of the sword, and how do I best store whether a player is holding down a right-click with his sword? Per onItemRightClick () I can at least determine if it was just clicked…
Thank you for your help, a research has unfortunately not revealed much.
What's the best way to remember if a player is holding down his right-click with his sword? By
OnItemRightClick () I can at least determine if it was just clicked…
I'm not sure, was not there something about isBlocking or something like that?