How can i make a procedure that pulls nearest mob to Player?

Started by viecha on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can i make a procedure that pulls nearest mob to Player?

So, im making this sword and i wanted to make a right click in air procedure for it that finds nearest mob and pulls it towards the player. Im using the 1.12.2 generator, so get entity in block range procedure doesnt work... Any other solutions?

Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In 1.12.2 is it not possible…
Sun, 01/01/2023 - 09:25

In 1.12.2 is it not possible because you cannot target every Entity in Radius.

In 2020.5 there was a new Procedure Block added called 'For each entity as Entity Iterator at x y z in square cube with size'