make a vanilla mob agressive when punched

Started by SoldierIV on

Topic category: Help with modding (Java Edition)

Last seen on 18:15, 8. Apr 2022
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
make a vanilla mob agressive when punched
Sat, 04/02/2022 - 12:33 (edited)

im creating a mod to troll my friends, and i think there gonna punch a chicken at some point but i cannot for the life of me figure out how to make the chicken become aggressive. thanks.

Edited by SoldierIV on Sat, 04/02/2022 - 12:33
Last seen on 23:35, 30. Oct 2023
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make the chicken agresive is…
Tue, 04/05/2022 - 12:24

Make the chicken agresive is imposible without custom coding

Despite of that, you can make it with procedures

Step 1: create a new mob that looks like a chicken (or similar) and make it hostile, don't make it spawn

Step 2: Create a procedures with the global condition "entity attacked"

And do this

If get event entity Target is of subtype: chicken

Do: 

Summon hostile chicken (new mob)

Despawn event entity Target

 

This Will replace the chicken with the hostile one

Hope I help