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 Minecraft modding (Java Edition)

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?

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..

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?

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.