attacking with fist [SOLVED]

Started by Granknight on

Topic category: User side tutorials

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
attacking with fist [SOLVED]
Fri, 08/16/2024 - 09:05 (edited)

so what i need is when I have a certain potion effect,and if i attack something it will give that entity instant damage (i use the block coding)

Edited by Granknight on Fri, 08/16/2024 - 09:05
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Just use the global trigger …
Fri, 09/18/2020 - 16:53

Just use the global trigger "when entity attacked", then you check if the sourceentity has your potion effect, and if it has it, then you apply instant damage to event/target entity

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ive been trying it for so…
Fri, 09/18/2020 - 23:51

ive been trying it for so long, but i never used source entity ive always been using attack target of entity