Started by
The_CAT_9801
on
Topic category: Help with Minecraft modding (Java Edition)
I am making a mod with a spear in it that you can dash into enemies with when pressing C, but I can't figure out how to make it so that it only works when I have the spear in my MAIN HAND.
This is how I want the keybind to work:
- Key is pressed
- Player dashes forward
- Enemy player dashed at takes damage
- Player stops dashing
If anybody could help that would be great!
Thanks!
Edited by The_CAT_9801 on Tue, 07/16/2024 - 14:12
There are 2 blocks that refer to the Main-Hand specifically (there also exists the same blocks for the off-hand if wanted)