Started by
Mecho
on
Topic category: Help with Minecraft modding (Java Edition)
im making a mod that need to detect when you left click (attack) with a weapon, for the most time 'on player swing item' was sufficient until it was activating when interacting with things like buttons, crafting tables and item frames. can anyone help me?
I think if you search well enough in the trigger list when you create a procedure, there is a "on player left click" or something like that.
Then you just have to check if the player is holding the right item in his main hand. If you need more information just tell me
You can also use a keybind, but it's probably a bit over the top.
i can only find "left clicks on block" but i need just left clicks for in air