How to Make a Procedure , When a player hit a mob from behind it run a program

Started by Mc. FlameA6 on

Topic category: Help with MCreator software

Last seen on 09:53, 28. Oct 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to Make a Procedure , When a player hit a mob from behind it run a program
Mon, 10/18/2021 - 19:12 (edited)

I am working on a mod name Holy: Enchantment 

so what i want to make is that when the holy enchantment is on sword  .

when the player hit the mob from behind it run a program can anyone help ??

-- if i am bad at english or any spellings wrong pls forgive me ;D

Edited by Mc. FlameA6 on Mon, 10/18/2021 - 19:12
Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
by Entity is hurt if source…
Mon, 10/18/2021 - 19:43

by Entity is hurt

if source entity is type: player

do if (get direction of event target entity with procedure blocks)

AND item in main hand of Source Entity has enchantment of type: Holy

 do (whatever you want to do)

Last seen on 09:53, 28. Oct 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks !!
Tue, 10/19/2021 - 06:38

Thanks !!