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

Started by Yutaken on

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:
  • MCreator plugins:
  • Comments:
how do you make a procedure run when any entity touches another entity

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

Last seen on 15:05, 6. Oct 2023
Joined Jan 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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.