This is what I have now
The problem is to make a variable of the creeper with the player name inside the variable or something that wend the creeper blows up someone or some player gives you the kill and the points. How I do that ?
Code:
command /test:
trigger:
if {creeper::play%player%} is true:
delete {creeper::play%player%}
else:
set {creeper::play%player%} to true
on place of a emerald ore:
if {creeper::play%player%} is true:
add 1 to {c::num.%player%}
spawn a creeper at the event-location
set the name of the spawned creeper to "&9%player%"
set {creeper::%spawned creeper%} to true
add player to {creeper::%spawned creeper%.%{c::num.%player%}%}
set event-block to air
remove 1 emerald ore from the player
on death:
if attacker is a creeper:
if {creeper::%attacker%} is set:
message "Your creeper kill %victim% +2 points" to {creeper::*}
broadcast "%{creeper::%spawned creeper%.%{c::num.%player%}%}% creeper blow up %victim%"