1
Can a block teleport to an entity?
I want to make a command block where when an arrow has been in the ground (/testfor @e [type=Arrow]) it activates comparator to do /setblock minecraft:fire so is it possible to teleport that fire to the arrow so it looks like a flaming arrow?
Create an account or sign in to comment.
6
1
First you have to define an objective (We'll call it "firebow")
/scoreboard objectives add firebow dummy
Now we want to give arrows a specific value so that only arrows with the score of 1 will have fire around them.
/scoreboard players set @e[type=Arrow] firebow 1
After that, use this execute command:
/execute @e[type=Arrow,score_firebow_min=1,score_firebow=1] ~ ~ ~ /summon FallingSand ~ ~ ~ {TileID:51,Time:1}
The execute and testfor commands have to be connected to the clock separately. I didn't try to remove the FallingSand because I think it gives a cooler effect.
I'm not going to go into this further, but these are the basics of what you are trying to do. I haven't tried it out, but it should work.
Hope this helps
/scoreboard objectives add firebow dummy
Now we want to give arrows a specific value so that only arrows with the score of 1 will have fire around them.
/scoreboard players set @e[type=Arrow] firebow 1
After that, use this execute command:
/execute @e[type=Arrow,score_firebow_min=1,score_firebow=1] ~ ~ ~ /summon FallingSand ~ ~ ~ {TileID:51,Time:1}
The execute and testfor commands have to be connected to the clock separately. I didn't try to remove the FallingSand because I think it gives a cooler effect.
I'm not going to go into this further, but these are the basics of what you are trying to do. I haven't tried it out, but it should work.
Hope this helps
1
Sounds about right. However, why do you need to give the arrows a value of one? If you're setting ALL arrows to a firebow value of 1, why not just have the command target all arrows?
1
Thank you so much! Only If I could diamond or favorite posts
edit also it works better with a command block (/testfor @e[type=Arrow] {inGround:1b}) and comparator before the execute
edit also it works better with a command block (/testfor @e[type=Arrow] {inGround:1b}) and comparator before the execute
1
Well, you can make a clock summoning fallingSand at the arrow with a fire ID
1
Because I need to do it the cool way
1
why not put flame on a bow