How to make an entity go through walls?

Started by Hero_Holmes360 on

Topic category: Help with modding (Java Edition)

Last seen on 14:06, 23. Jan 2024
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make an entity go through walls?

How do i make an entity go through walls?

Last seen on 00:59, 19. Oct 2022
Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
"disable collision box but…
Sun, 05/02/2021 - 18:47

"disable collision box
but it will fall through the blocks on the ground as well.
that's why it is better that the entity is flying.

Last seen on 14:06, 23. Jan 2024
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks  
Wed, 11/10/2021 - 19:25

Thanks

 

Last seen on 12:03, 19. Apr 2023
Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i want to do this too but im…
Sat, 04/08/2023 - 22:38

i want to do this too but im afraid i wont be able to check for collisions anymore because the collision boxes are gone. is there any other way to do this?

 

Last seen on 00:55, 28. Mar 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Lock the code and add this…
Mon, 03/25/2024 - 03:45

Lock the code and add this somewhere in the mix:

public void tick() {
      this.noPhysics = true;
      super.tick();
      this.noPhysics = false;
      this.setNoGravity(true);
   }