Find nearest entity procedure

Started by Goldy on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Feb 2022
Points:
493

User statistics:

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

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

Active 5 hours ago
Joined Jan 2020
Points:
1048

User statistics:

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

Yes, there are some blocks specifically for that: 

Active 5 hours ago
Joined Jan 2020
Points:
1048

User statistics:

  • Modifications: 0
  • Forum topics: 29
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 530
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.