Creating a custom mob with two different attacks

Made a post a couple of days ago, but just reposting as an update since I left it too long.

MC version 1.21.5

Here's a new version i've just made today, trying to fix some of the commands here. Hopefully folders have been fixed from last time.

In game here's what has happened:

  • I have summoned a mob with the tag PharaohBoss with my datapack loaded with /function pharaohs_curse:load
  • the functions should occur automatically based on a timer but nothing really happens without me running /function
  • the spawn_scarabs works when ran manually
  • shoot doesn't seem to do anything
  • projectilehit seems to summon an area effect cloud where the mob was, I want to make it move and appear as if the husk shot it

The objective is to have a working custom mob which shoots a damaging projectile and spawns scarabs based on timers.

Continue to help post