How can you run a procedure when a player hits a entity without an item. is it posible?

Started by TiHi2c8 on

Topic category: Help with MCreator software

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can you run a procedure when a player hits a entity without an item. is it posible?

Hey Fellow MCreators I am trying to make a mod when you punch an entity that Entity will attack you I couldnt find any tutorial online so i am trying to find help here.

I want to do it with an allready existing Mob.

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When entity attacked:If …
Sun, 10/09/2022 - 18:55

When entity attacked:

If [event / target entity] is (sub) type of
   if main hand of [source entity] = [air] 
      {your code}

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks for The Help :)  
Sun, 10/09/2022 - 19:26

Thanks for The Help :)