Mob breaking blocks to reach target

Started by gork07 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Mob breaking blocks to reach target

I have an entity that should actively "mine" toward the player if there are no available paths to the player via door or no obstruction.

Currently, I have an 

"if 'is entity looking at block with raytrace distance 2, fluid mode n/a, block mode outline
do remove block at x, y, z and spawn break particles

else"

This is put in the ontick mechanism, but he won't even break any blocks regardless.

I am new to this, so I apologize if it's a dumb mistake lol.

Joined Jan 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Closed, got it to work
Tue, 01/27/2026 - 21:08

Closed, got it to work