How to make mob attack player only when the player's global variable reaches a threshold?

Started by Ali107 on

Topic category: Advanced modding

Last seen on 15:02, 19. Apr 2024
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make mob attack player only when the player's global variable reaches a threshold?

version: 2022.3 - 1.18.2

 

I want to make a wanted/bounty system, I have already made it so that when you kill a specific mob, the bounty increases.

Now I want a specific mob to chase and kill any player who has their wanted level (global variable) greater than 32.

 

The problem is that there is that there is no dependency that returns whatever entity the mob is detecting.

Last seen on 20:06, 19. Apr 2024
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
2023.1: Sets its Attack…
Sat, 03/25/2023 - 21:50

2023.1:

Sets its Attack Target to Player with Global Trigger Entity tick rate or Player tick rate.