Dash only damages the user (player)

Started by Delangel on

Topic category: Help with modding (Java Edition)

Last seen on 09:04, 9. Jan 2024
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Dash only damages the user (player)

Hi, i just create a dash , but i want to deal damage to a mob or a player when i dash, the problem is that i'm get the damage and not the mob, what should i use?

Last seen on 23:26, 27. Jun 2024
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In situations like this I…
Wed, 08/30/2023 - 06:31

In situations like this I always like to use this block: (You may need to set a timer/repeat block or something on it so it doesn't just execute at the starting point)

prodecure

This block will execute code on any nearby entity. An "entity iterator" is any entity targeted by the main block so make sure you change the one on the damage block out for one of those. (You can find the block under the highlighted tab on the left in the image as you can't for some reason just copy it from the main block)