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

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
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)