Find nearest entity procedure

Started by Goldy on

Topic category: Help with Minecraft modding (Java Edition)

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? 

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: 

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.