new player-based event triggers

Published by mensreamc on Mon, 03/23/2020 - 08:04
Issue description

I'd like to request a "player kills entity" and "player attacks entity" event triggers. "entity attacks entity" might make sense too. Thanks and god bless!

Issue comments

There is a trigger "Entity attacked" that does (will do) this.

Entity attacked currently provides the attack target but will provide the source in the future too and by checking the source and target type using "is entity subtype" procedure block you will be able to achieve this (check if the source or the target was player).

For killing, not attacking, there is an "Entity killed by entity" trigger with a similar planned future.

Deeply related ticket:

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.