Whenentityhitsanotherentity procedure

Started by Averagemcreato… on

Topic category: Feature requests and ideas for MCreator

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Whenentityhitsanotherentity procedure

Self explanatory, I think entities needs a procedure for when they hit another one. I've tried to do it with items that have a procedure, but apparently theses items on hit procedures doesn't affect non player entities.

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is one... Just make a…
Thu, 02/10/2022 - 13:34

There is one... Just make a global trigger "Before entity is hurt"

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
no, I need a trigger that…
Thu, 02/10/2022 - 19:05

no, I need a trigger that makes it so when (source) attacks (target) the source entity executes a procedure on itself

 

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Before entity is hurt also…
Thu, 02/10/2022 - 19:13

sdafasdeBefore entity is hurt also gives you sourceentity though.. What are you trying to do?

 

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
And how do I make the code…
Thu, 02/10/2022 - 19:19

And how do I make the code detect if the entity involved in the procedure is a specific entity?

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
something like if entity =…
Thu, 02/10/2022 - 19:20

something like if entity = zombie then execute the rest of the procedure