Kill the entity that the player is looking at

Started by Superkota on

Topic category: Help with modding (Java Edition)

Last seen on 22:43, 11. Jun 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 13:50, 23. Jul 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 ;)