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

Started by The_Mysterious… on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to make a mob attack the player if they break and specific block

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

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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