Advertisement
staffehn

Replace & Destroy

May 11th, 2014
4,944
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ===================================================
  2. Commands in order of execution:
  3. /scoreboard objectives add <OBJECTIVE> dummy
  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>=] ~ ~ ~ setblock ~ ~ ~ <YOUR BLOCK>
  7. /execute @e[score_<OBJECTIVE>=] ~ ~ ~ setblock ~ ~ ~ air 0 destroy
  8. /kill @e[score_<OBJECTIVE>=]
  9. /scoreboard objectives remove <OBJECTIVE>
  10. ====================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement