I want to damage a hostile mob if they are in an area 6 blocks from the player on item use.

Started by TheEpikDude67 on

Topic category: Help with modding (Java Edition)

Last seen on 21:04, 23. Nov 2019
Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I want to damage a hostile mob if they are in an area 6 blocks from the player on item use.

I was looking around the entity procedures and I can't seem to find a solution for this.  Can anyone help me with this?

Last seen on 22:56, 26. Jan 2020
Joined Nov 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Why not just have your…
Mon, 10/14/2019 - 01:29

Why not just have your procedure execute a command?

I know there will be better workarounds but this is a simple option since you can still choose the damage amount if you know a bit about potion effects, and distance is an option when using commands..

Last seen on 21:04, 23. Nov 2019
Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How would I go about using…
Mon, 10/14/2019 - 18:20

How would I go about using cooldowns?

Last seen on 05:14, 23. Feb 2020
Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I believe they are going to…
Sun, 10/27/2019 - 20:37

I believe they are going to add a range option in the next version.