Guest User

Untitled

a guest
Aug 21st, 2019
167
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /scoreboard objectives add craftedDiamondSword stat.craftItem.276
  2. /scoreboard objectives add usedDiamondSword stat.useItem.276
  3.  
  4. clear @a[score_usedDiamondSword_min=1] 276
  5.  
  6. tell @a[score_usedDiamondSword_min=1] Don't use diamond swords!
  7. scoreboard players set @a[score_usedDiamondSword_min=1] usedDiamondSword 0
  8.  
  9. /scoreboard objectives add hasDiamondSword dummy
  10.  
  11. scoreboard players add @a hasDiamondSword 1 {Inventory:[{id:"minecraft:diamond_sword"}]}
  12. clear @a[score_hasDiamondSword_min=1] minecraft:diamond_sword
  13.  
  14. tell @a[score_hasDiamondSword_min=1] Don't use diamond swords!
  15. scoreboard players set @a[score_hasDiamondSword_min=1] hasDiamondSword 0
  16.  
  17. tell @a {Inventory:[{id:"minecraft:diamond_sword"}]} Don't use diamond swords!
  18.  
  19. clear @a diamond_sword
RAW Paste Data