Enemy manipulation

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:
Enemy manipulation

Hello,

Anyone know how i can make a "gun" that brings the enemy hit, to the player?

Last seen on 11:05, 20. Sep 2024
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You mean teleport the entity…
Mon, 03/28/2022 - 11:23

You mean teleport the entity that got hit to the player?

If so, then it's simple. In the gun procedure when it hits entity, you could do teleport the target entity to the source entity.