Cannot make entity immune to pushing

Started by ivanwafles67 on

Topic category: Help with modding (Java Edition)

Last seen on 19:34, 22. Dec 2023
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Cannot make entity immune to pushing
Thu, 06/10/2021 - 00:21 (edited)

I am making a statue-sort of entity, and I want to it be immovable when spawned. To do this I tried checking the "disable collision box" box in the entity settings, however, the statue still is collide-able and "pushable". I also tried adding a custom code thing in the .java file (pictured), however, the statute still can be pushed. Is there another method or code I could use to get this to work? I want the statue to not be movable whatsoever by entities walking into it, even if that means they just walk through it.

screenshot

Edited by ivanwafles67 on Thu, 06/10/2021 - 00:21
Last seen on 10:02, 8. Aug 2023
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
living entities with nbt …
Fri, 06/11/2021 - 14:38

living entities with nbt {NoAI:1} immune to pushing, maybe cmd can help?

/data merge entity @s {NoAI:1}