1

[FIXED] Kill Rewards Command Block?

34486SCI 3/3/18 11:14 pm
3.2k
3/4/2018 2:18 pm
Alright, So a couple of questions, the main one..
How can I reward a player with an item AND heal them after they get a PLAYER kill?
I have tried systems, but it is only for a certain number, so I thought I would add something to reset the kills so it would do it again after another kill, no luck.

How can I do this? I might need a video, not sure. Could somebody tell me exact steps how to make it so when ANY player kills ANY OTHER player, the killer gets their reward and gets full health. How can this be done?! I really need help please! I don't wish to use any plugins for this.


Thanks!
Posted by
34486SCI
Level 3 : Apprentice Farmer
1

  Have something to say?

JoinSign in

5

BartTheBart
03/04/2018 7:21 am
Level 9 : Apprentice System
T means type this once in chat
R means place a repeating command block with the following command
C means place a repeating command block with the following command

T: /scoreboard objectives add Kill playerKillCount

R: /effect @a[score_Kill_min=1] minecraft:instant_health 1 10
C: /give @a[score_Kill_min=1] minecraft:stone
C: /scoreboard players reset @a[score_Kill_min=1] Kill

(The command blocks should be on always active and the 1st one should face into the 2nd one and the 2nd one should face into the 3rd one)
2
34486SCI
03/04/2018 1:20 pm
Level 3 : Apprentice Farmer
Worked! Thank you very much! :)
1
BartTheBart
03/04/2018 2:18 pm
Level 9 : Apprentice System
np, if you ever need help, just ask :3
1
Isz
03/04/2018 5:21 am
Level 48 : Master Architect
If it was me, I'd try using the kill count scoreboard. When it equals one it triggers a chain of command blocks which heal and give and item then resets the count to zero all in a single tick
2
DukkiStuff
03/04/2018 12:25 am
Level 9 : Apprentice Birb
i don't know but if your running a bukkit/spigot server i 100% gaurentee you there would be a plugin somewhere out there
1

Welcome