So, I am working on a PVP thing in my server and I am trying to figure out how to make it so that when you kill someone, you get an emerald that you can use for shops. I can't figure out how to make the emerald thing work though.
This is what I tried:
1st I did
/scoreboard objectives add KillScore playerKillCount
2nd, I put these two commands on a redstone clock:
give @a[score_KillScore_min=1] minecraft:emerald
scoreboard players remove @a[score_KillScore_min=1] KillScore 1
3rd I activated the redstone clock, but when I kill another player, it does nothing.