How to make entity hurt other entities on contact?

Started by nojustgavin on

Topic category: Help with modding (Java Edition)

Last seen on 00:18, 14. Mar 2023
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make entity hurt other entities on contact?

Is there any way to make it so that an entity will do contact damage to any entity that touches it?

Last seen on 06:06, 22. Apr 2024
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
See at Combat tasks in AI…
Sat, 02/12/2022 - 23:16

See at Combat tasks in AI and goals

For automatic attack: "Attack (nearby only check) entities of type (and the entity)"

Or for other entity attacks: "Do melee/contact attack with speed .." and maybe u need a condition to check the entity that u want to attack and get its position close idk about conditions maybe someone that know more about this than me can help in the replies