Adding ability to let mobs cause status effects on attack

Published by CR1MS4NE on Mon, 06/25/2018 - 13:25
Not applicable
Issue description

Can we have the ability to let mobs give players (or other entities they attack) status effects? I have this thing called a poison elemental, but I feel like it's kind of pointless because, s there is no option to allow status effects for mobs directly, he can't cause poison.

Issue comments

Now that I think about it, we could use procedures, but it would be simpler to have a built-in feature.

On second thought, how would we use procedures for that? There's no procedure call for 'When mob attacks player.'

You can use theĀ when this mob kills another one procedure. For existing mob,s you could use Entity attacked global trigger.

Regarding custom entity statuses, we have planned this for future updates, Most likely one of 2.x.x updates.

But how would we use the when mob kills another one procedure to cause its attacks to give effects? If you used that procedure, it wouldn't give the effect to you until you were dead already (or am I thinking about his wrong?).

Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.