How can I make so my ability only works with my sword not all items in the game?

Started by szppll on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 13:46, 28. Feb 2023
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I make so my ability only works with my sword not all items in the game?

So I made a ''ability'' for my sword and the ability is binded to the right mouse button, and when i try to press the right mouse button with any other item it makes the ability do the thing. How can i bind the ability to ONLY work with my sword? :)

Last seen on 16:10, 27. Aug 2023
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Incredibly easy, just makeā€¦
Fri, 07/14/2023 - 20:18

Incredibly easy, just make an if statement and make it only activate when holding your sword.