MrGarretto

Untitled

Apr 10th, 2016
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. # Iron hoes
  2. scoreboard players set @a resetItems 0
  3. stats entity @a set AffectedItems @p resetItems
  4. execute @a ~ ~ ~ clear @p iron_hoe -1 0
  5. # Clear their inventory first if they have too many iron hoes (2 or more)
  6. clear @a[score_resetItems_min=2] iron_hoe
  7.  
  8. # Golden hoes
  9. stats entity @a set AffectedItems @p resetItems
  10. execute @a ~ ~ ~ clear @p golden_hoe -1 0
  11. # Clear their inventory first if they have too many golden hoes (2 or more)
  12. clear @a[score_resetItems_min=2] golden_hoe
Advertisement
Add Comment
Please, Sign In to add comment