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

Active 3 years ago
Joined Oct 2021
Points:
538

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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
Active 1 year ago
Joined Oct 2020
Points:
1621

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
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)

Active 3 years ago
Joined Oct 2021
Points:
538

User statistics:

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

Thanks !!