Trying to detect left click with a diamond sword

Started by LaFougere on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Trying to detect left click with a diamond sword

Hi, im trying to detect when the player left click with a diamond sword to increment a score.

Im new to MCreator and i dont know how i can do this with procedures or other...

 

Please help me,

Thanks :]

Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Add a new procedure and…
Sat, 02/08/2025 - 18:15

Add a new procedure and change the trigger to "When player uses item", "When player left clicks on block", or "When player left click on air" and add a check for if the item in main hand of Current Ectity is a diamond sword. (:

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks :]
Fri, 03/21/2025 - 16:41

Thanks :]

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh apparently it doesnt work…
Fri, 03/21/2025 - 16:46

Oh apparently it doesnt work when i try to left click on a block in adventure mode.

How i can fix that ?