Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Iron hoes
- scoreboard players set @a resetItems 0
- stats entity @a set AffectedItems @p resetItems
- execute @a ~ ~ ~ clear @p iron_hoe -1 0
- # Clear their inventory first if they have too many iron hoes (2 or more)
- clear @a[score_resetItems_min=2] iron_hoe
- # Golden hoes
- stats entity @a set AffectedItems @p resetItems
- execute @a ~ ~ ~ clear @p golden_hoe -1 0
- # Clear their inventory first if they have too many golden hoes (2 or more)
- clear @a[score_resetItems_min=2] golden_hoe
Advertisement
Add Comment
Please, Sign In to add comment