Cannot make entity immune to pushing

Started by ivanwafles67 on Thu, 06/10/2021 - 00:17

Topic category: Help with modding (Java Edition)

Last seen on 23:16, 31. Jul 2021
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 14:29, 28. Jul 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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}