How to make an entity use a different ranged attack based on what item it is holding in its main hand?

Started by JohnMcMichael on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make an entity use a different ranged attack based on what item it is holding in its main hand?

Title. Ranged attacks aren't based on procedure blocks like other AI tasks, so I can't use condition procedures here. I could prolly either set the attack to be done by a procedure or set some condition for ranged attacks by editing the code.