View difference between Paste ID: BQwPafPb and 89S4CPP7
SHOW: | | - or go back to the newest paste.
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>_min=1] ~ ~ ~ setblock ~ ~ ~ <YOUR BLOCK>
6+
/execute @e[score_<OBJECTIVE>=] ~ ~ ~ setblock ~ ~ ~ <YOUR BLOCK>
7-
/execute @e[score_<OBJECTIVE>_min=1] ~ ~ ~ setblock ~ ~ ~ air 0 destroy
7+
/execute @e[score_<OBJECTIVE>=] ~ ~ ~ setblock ~ ~ ~ air 0 destroy
8-
/kill @e[score_<OBJECTIVE>_min=1]
8+
/kill @e[score_<OBJECTIVE>=]
9-
/scoreboard players reset * <OBJECTIVE>
9+
/scoreboard objectives remove <OBJECTIVE>
10
====================================================