Jump to content

Crystal deaths skript


Code44

Recommended Posts

Hey, ever had the issue that crystal kills are not registered to players?
here's a simple solution:
 

Quote

 

on damage:
  if victim is "ender crystal" parsed as entity type:
    set {crystalX} to attacker

on death of player:
    if attacker is set:
        attacker is "ender crystal" parsed as entity type
        message "&c%victim% &7was crystaled to death by &c%{crystalX}%" to all players
        wait 1 tick
        delete {crystalX}

 


I hope this helped you,
I personally could'nt find anything like that online so I tried for hours myself.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...