Guest User

Untitled

a guest
Dec 18th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. execute as @a[nbt={Inventory:[{Slot:-106b,id:"minecraft:redstone"}]}] store result check1 run clear @s redstone 0
  2.  
  3. replaceitem entity @a[nbt={Inventory:[{Slot:-106b,id:"minecraft:redstone"}]}] weapon.offhand air
  4.  
  5. execute as @a[nbt={Inventory:[{Slot:-106b,id:"minecraft:redstone"}]}] store result check2 run clear @s redstone 0
  6.  
  7. scoreboard players remove @a[scores={check2=1..}] check1 1
  8. scoreboard players remove @a[scores={check2=1..}] check2 1
Add Comment
Please, Sign In to add comment