attacking with fist

Started by TZO_Ghoul on Fri, 09/18/2020 - 03:05

Topic category: User side tutorials

Last seen on 19:09, 26. Oct 2020
Joined Nov 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
attacking with fist
Fri, 09/18/2020 - 03:05

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)

Last seen on 23:09, 29. Oct 2020
Joined Jun 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 19:09, 26. Oct 2020
Joined Nov 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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