how to make my entity affect other entities EXCEPT the entity/player that spawned it

Started by KaMiLoz_ on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to make my entity affect other entities EXCEPT the entity/player that spawned it

how to make my custom entity, for example, affect other entities EXCEPT the entity/player that spawned this entity (if you spawn it through the entity spawn procedure). for example, I made a mob a circular saw, and in fact it should in the radius of 2 blocks to cause damage to other entities, except for me, if I spawned it through some kind of key. Tell me how to make it so that the mob affects others, except for its summoner

You could store entity that…
Sun, 04/12/2026 - 13:46

You could store entity that spawned it as UUID or ID in synced data and use this data in e.g. AI conditions