Mobs that become hostile if they are above a certain level

Started by GODzilla manNEO on

Topic category: Advanced modding

Joined Jul 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Mobs that become hostile if they are above a certain level

Currently, as the title suggests, I am trying to create a task that involves attacking mob AI and goal players with a macreator, which is more than a certain number of mobs, which will become hostile to the player if there are more than a certain number of them as the same mobs as me, but I just can't come up with a plan. If there are any experts please let me know.

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
make peaceful and hostile…
Sat, 07/05/2025 - 04:42

make peaceful and hostile versions of your mob

make a procedure

count the number of mob A in the area

count the number of mob B in the area

if A > B and A > X

kill all peaceful A

spawn the same number of hostile A as there were peaceful A

 

Joined Jul 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't know how to count…
Sat, 07/05/2025 - 10:58

I don't know how to count the mobs in that range.