Test for a kill made by an entity
//ads -- adsterra.com -- native banner
?>
I am making a map based on spellcasting. There are 5 unique classes, and there can be only 1 player per class. The spells are retextured invisible snowball with particle effects that carry the launcher "class" score:
/execute @e[type=Snowball,score_Lifetime=1] ~ ~ ~ /scoreboard players operation @e[type=Snowball,c=1] class = @p class
I want to check and add a point in the "kills" scoreboard for a player that kills another player with a snowball power, for example the 1st class summons a creeper where the snowball lands.
Pictures about "Test for a kill made by an entity"
How to test if an entity dies in minecraft?
One way to do this involves summoning mobs with armor stands riding them. When the armor stand can no longer detect the mob (because it is dead), then it is tagged. You can do whatever you want by executing all armor stands with that tag and then kill.How do you detect if a player hits an entity?
/execute executes another command but allows changing the executor, changing the position and angle it is executed at, adding preconditions, and storing its result.Testing Scary Minecraft Myths That Actually Work
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Pixabay, Jill Burrow, Chokniti Khongchum, MART PRODUCTION