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

Started by Bendoo on

Topic category: Help with modding (Java Edition)

Last seen on 10:36, 15. Oct 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?

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 20:18, 12. Mar 2024
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.

Last seen on 10:36, 15. Oct 2023
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I didn't even think of that,…
Sun, 10/15/2023 - 09:46

I didn't even think of that, great idea! I'll try to figure out how it could work, if I can't come up with code myself you can send me yours. Thanks! (Also sorry for the late reply :-/ )