1

Can a block teleport to an entity?

Veritas025's Avatar Veritas02511/17/14 8:57 pm
1 emeralds 629 6
11/18/2014 3:15 pm
BenDragonsword's Avatar BenDragonsword
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?
Posted by Veritas025's Avatar
Veritas025
Level 55 : Grandmaster Engineer
37

Create an account or sign in to comment.

6

1
11/18/2014 2:35 pm
Level 15 : Journeyman Engineer
_Creeperface_
_Creeperface_'s Avatar
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
1
11/18/2014 3:15 pm
Level 49 : Master Baconator
BenDragonsword
BenDragonsword's Avatar
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
11/18/2014 3:09 pm
Level 55 : Grandmaster Engineer
Veritas025
Veritas025's Avatar
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
1
11/18/2014 2:29 pm
Level 55 : Grandmaster Dragon
Skitto493
Skitto493's Avatar
Well, you can make a clock summoning fallingSand at the arrow with a fire ID
1
11/18/2014 1:30 pm
Level 55 : Grandmaster Engineer
Veritas025
Veritas025's Avatar
Because I need to do it the cool way
1
11/17/2014 9:18 pm
Level 26 : Expert Artist
sippiboy
sippiboy's Avatar
why not put flame on a bow
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome