I am trying to make a sentinel NPC be able to use trident PvP properly. I have been having trouble getting denizen to let the npc swap weapons and I would like it to use a loyalty and imping trident to fight with and then swap to a sword when the player is at 10 health.
The main problem I have been having is getting the npc to check when the player is 12 blocks away, I want it to use the riptide trident to dash toward it. I’m doing this for a YouTube series and I could really use a expert to help me figure out how to program it