How do I make a mob that can walk through walls?

Started by Bendoo on Thu, 05/18/2023 - 07:35

Topic category: Help with modding (Java Edition)

Last seen on 12:37, 5. Jul 2023
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make a mob that can walk through walls?
Thu, 05/18/2023 - 07:35

Hiya! I'm trying to make a mob that can walk through walls, MCreator version 2023.1. Is there any way to do this?

Last seen on 23:30, 15. Sep 2023
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The problem with being ableā€¦
Thu, 06/29/2023 - 21:41

The problem with being able to go through blocks is that the ground is made of blocks, and your mob will fall to the bottom of the world.

I think that the best way to do this (probably) is to convert all nearby blocks to falling blocks without gravity, letting you go through the block, and then convert the blocks back once you're done. (I can send you a bunch of Java code if this is what you want to do.) Although this would probably confuse the AI. I have no idea how to teach the AI that it can go though walls.