LogicUsing Events
Player Kill
Triggers when a player gets a kill.
This event fires when a player is the direct cause of another entity's death.
Action Values
Player: The player who got the kill.Entity: The entity that was killed (can be another player or a mob).
Event Configuration
This event has no special configuration options, as it's a result of a death that has already occurred.
Use Cases
- The primary event for score-based games like Team Deathmatch or FFA.
- Rewarding a player with currency or items for killing a specific mob.
- Announcing killstreaks.
Example: Incrementing a Kill Counter
- Property: Create a
Player Numberproperty namedKills. - Region: Select your main gameplay region.
- Event: Add a
Player Killevent. - Actions:
Change Property: Target thePlayer, select theKillsproperty, and Add1.Send Action Bar: To thePlayer, with the message&aYou got a kill! Total: %p_Kills_player%.