how do you make a procedure run when any entity touches another entity

Started by Yutaken on Sat, 05/29/2021 - 15:22

Topic category: Help with modding (Java Edition)

Last seen on 23:51, 22. Jun 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
how do you make a procedure run when any entity touches another entity
Sat, 05/29/2021 - 15:22

I'm making a virus thing and I want it to spread by entity contact

Last seen on 15:52, 26. Jul 2021
Joined Jan 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You can't, but you can check…
Wed, 06/30/2021 - 18:59

You can't, but you can check permanently if there are mobs near each other, by doing the "On living entity tick" and using the Block "For each entity in square cube of [1]" it affects all Mobs on the same Block in the Code in that Block.