how to make a mob attack the player if they break and specific block

Started by The_Mysterious… on Sun, 04/24/2022 - 15:47

Topic category: Help with modding (Java Edition)

Last seen on 12:30, 2. May 2022
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
how to make a mob attack the player if they break and specific block
Sun, 04/24/2022 - 15:47

I'm Making A Forest Guardian Mob And I Want Them To Only Attack The Player IF they break a log block of any type,how to do that

Last seen on 15:37, 4. May 2022
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
First you need to make 2…
Tue, 04/26/2022 - 14:06

First you need to make 2 mobs a forest guardian being pasibe (like sheeps) an one being hostile (like zombies) then you have to search or create a tag for logs, I think there is a minecraft tag called logs and its to detect well... logs, then you need to make a procesure saying if a block is broken and that block is tagged as logs (wich means is a log obviusly) despawn passive forest guardian and spawn agressive forest guardian