MrGarretto

God Kit at 35 deaths

Mar 9th, 2015
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. INIT:/scoreboard objectives add Deaths deathCount
  2. INIT:/scoreboard objectives add GodKitGiven dummy
  3. # This will make GodKitGiven have a default value of 0, instead of 'null':
  4. /scoreboard players add @a GodKitGiven 0
  5. # The 'score_GodKitGiven=0' selector in the following 'give' commands only allows it to give the items to players who have not yet received the god kit.
  6. /give @a[score_Deaths_min=35,score_Deaths=35,score_GodKitGiven=0] diamond_chestplate
  7. /give @a[score_Deaths_min=35,score_Deaths=35,score_GodKitGiven=0] diamond_leggings
  8. /give @a[score_Deaths_min=35,score_Deaths=35,score_GodKitGiven=0] diamond_boots
  9. /give @a[score_Deaths_min=35,score_Deaths=35,score_GodKitGiven=0] diamond_pickaxe
  10. /give @a[score_Deaths_min=35,score_Deaths=35,score_GodKitGiven=0] diamond_shovel
  11. /give @a[score_Deaths_min=35,score_Deaths=35,score_GodKitGiven=0] diamond_axe
  12. # I made this into a tellraw command, so it could be colored:
  13. /tellraw @a[score_Deaths_min=35,score_Deaths=35,score_GodKitGiven=0] {color:"gold",text:"You have been given the GOD KIT"}
  14. # Once each player has been given the god kit, their GodKitGiven score will become '1'.
  15. /scoreboard players set @a[score_Deaths_min=35,score_GodKitGiven=0] GodKitGiven 1
Advertisement
Add Comment
Please, Sign In to add comment