I can shoot with any object.

Started by reick on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I can shoot with any object.

When I made the mod for the new sword, it was supposed to be able to fire a fireball every 25 seconds. I did it and it worked, but I can shoot with any object, not just a sword.

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Add a check for an item in…
Wed, 01/14/2026 - 17:47

Add a check for an item in main hand:

if <item in main hand of Entity> = <Item>:

<your procedure>