Guest User

Replace & Destroy

a guest
May 10th, 2014
19,976
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. /scoreboard objectives add <OBJECTIVE> dummy
  2. ===================================================
  3. Commands in order of execution:
  4. /fill <X1> <Y1> <Z1> <X2> <Y2> <Z2> double_plant 0 replace <YOUR BLOCK>
  5. /scoreboard players set @e[type=Item] <OBJECTIVE> 1 {Age:0s,Item:{id:minecraft:double_plant}}
  6. /execute @e[score_<OBJECTIVE>_min=1] ~ ~ ~ setblock ~ ~ ~ <YOUR BLOCK>
  7. /execute @e[score_<OBJECTIVE>_min=1] ~ ~ ~ setblock ~ ~ ~ air 0 destroy
  8. /kill @e[score_<OBJECTIVE>_min=1]
  9. /scoreboard players reset * <OBJECTIVE>
  10. ====================================================
Advertisement
Add Comment
Please, Sign In to add comment