Kill the entity that the player is looking at

Started by Superkota on

Topic category: Help with modding (Java Edition)

Last seen on 19:15, 25. Feb 2024
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Kill the entity that the player is looking at

I want to make an item that when right clicked on any entity it kills it, how do I do this?

Last seen on 06:36, 25. Feb 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
this should work but i let…
Mon, 02/05/2024 - 22:01

this should work but i let you place this procedure on your item "when right click"

https://imgur.com/a/SFRH5SN

For building the rest, see related topic : https://mcreator.net/forum/103087/how-can-i-create-scp-096-minecraft-1182

Hope it work ;)