Find nearest entity procedure

Started by Goldy on

Topic category: Help with modding (Java Edition)

Last seen on 15:06, 13. Mar 2023
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Find nearest entity procedure

Can You create a mcreator procedure that finds nearest entity that which fulfills a conditions? 

Last seen on 01:35, 18. Apr 2024
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes, there are some blocks…
Wed, 01/11/2023 - 17:59

Yes, there are some blocks specifically for that: 

Last seen on 01:35, 18. Apr 2024
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This for an example adds…
Wed, 01/11/2023 - 18:02

This for an example adds regeneration to all pigs in a cubic 4 block radius around the exaction point: 

Make sure you change the entity to "Entity iterator" to make sure you grab all entities the "For each entity as: " block checks.