damage within 5 blocks

Started by daringss on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
damage within 5 blocks

good afternoon, it is necessary that when holding an object in your hands, damage is done to all entities within a radius of 5 blocks, of course I know how to create a right-click and an object, I hope tell me how to cause damage to everyone in a certain radius (the explosion does not roll)

thanks in advance 

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
try doing "For each entity…
Thu, 03/24/2022 - 22:35

try doing

"For each entity as entity iterator in square cube of 10" (10 means 5 blocks)

and inside "Not Entity Iterator = Event/Target Entity"

Then just add your damage procedure

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
And be sure to replace any…
Thu, 03/24/2022 - 22:35

And be sure to replace any other "Event/Target Entity" blocks with "Entity Iterator" blocks