Really self explanatory.
Command:
1. /execute @e[type=snowball] ~ ~ ~ detect ~ ~ ~ air
2. /execute @e[type=snowball] ~-1 ~-1 ~-1 fill ~ ~ ~ ~1 ~ ~1 planks
Instructional Video
[video=youtube;IfKjAtRhYSA] https://www.youtube.com/watch?v=IfKjAtRhYSA [/video]
That's a cool idea! Very nice 🙂
Your commands, if the first is successful, the second will run for ALL snowballs. You should do:
/execute @e[type=snowball] ~ ~ ~ detect ~ ~ ~ air -1 /execute @s ~-1 ~-1 ~-1 fill ~ ~ ~ ~1 ~ ~1 planks
The -1 after the detect is so that it will detect any data value of air.
The fixed command is:
/execute @e[type=snowball] ~ ~ ~ detect ~ ~ ~ air -1 /execute @s ~-1 ~-1 ~-1 fill ~ ~ ~ ~1 ~ ~1 planks
Its supposed to execute on all snowballs that are a thrown entity.
execute @e[type=snowball] ~ ~ ~ testforblock ~ ~ ~ air
Because syntax for detect is
/execute
execute @e[type=snowball] ~ ~ ~ testforblock ~ ~ ~ air
Because syntax for detect is
/execute
Was just about to correct him but I saw you already had. Nice to see someone else who knows the proper efficient way to use command blocks. You can tell OP doesn't as he tried disputing that it is meant to execute for all snowballs despite the fact that if that was the case then the first command wouldn't be there to begin with.
Was just about to correct him but I saw you already had. Nice to see someone else who knows the proper efficient way to use command blocks. You can tell OP doesn't as he tried disputing that it is meant to execute for all snowballs despite the fact that if that was the case then the first command wouldn't be there to begin with.
My knowledge of commands has come quite a far way since i posted this.