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

Started by Ali107 on

Topic category: Advanced modding

Active 1 week ago
Joined Jul 2020
Points:
1235

User statistics:

  • Modifications: 5
  • Forum topics: 90
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 233
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.

Active 6 days ago
Joined Feb 2018
Points:
2015

User statistics:

  • Modifications: 1
  • Forum topics: 166
  • Wiki pages: 0
  • MCreator plugins: 3
  • Comments: 795
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.