Quad9363

Set score of player holding item with Lore in hotbar

Jul 28th, 2014
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. /scoreboard objectives add FrostEnchantment dummy
  2. /give @p golden_sword 1 0 {ench:[],display:{Lore:[Frost I]}}
  3. (Paste in command block with comparator)
  4. scoreboard players set @p FrostEnchantment 1 {SelectedItemSlot:0,Inventory:[{Slot:0b,tag:{ench:[],display:{Lore:[Frost I]}}}]}
  5. (put sword in first slot and power command block)
Advertisement
Add Comment
Please, Sign In to add comment