Making a mob go around and break blocks

Started by modmakermuffan on

Topic category: Advanced modding

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Making a mob go around and break blocks

I need my custom mob to go around and break oak wood, right now it scans for oak in a 20x20x20 radius then paths to it. It also destroys any oak in a 6x6x6 area around it. Only problem is that it gets stuck trying to path to an oak log right above itself. How can I tell if it is able to path to the block?  

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is no combination of…
Fri, 09/05/2025 - 13:33

There is no combination of procedure to check if the path is valid. In the plugin I am developing (Gun Maker Plugin) it is likely that in the next versions I will add a custom procedure block to do this too. If you don't want to wait then look for examples of how (with java coding) to check if there is a valid path to reach a certain position or if it is null.