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

Last seen on 22:20, 26. Mar 2024
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.

Last seen on 09:03, 5. May 2024
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}

Last seen on 22:20, 26. Mar 2024
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 :)