I am currently trying to create a bow from which the arrows fired from it have a flame particle effect on them. I have already succeeded in that much, but the command will target all players if the player with the bow has the bow in their inventory. Since I want it to seem that only the singular bow will create the particle effects, is there a way to have the command only applied to the player or within a certain radius of them?
What I have so far:
1st Dark blue command block(I don't know official name): /testfor Castary {Inventory:[{id:"minecraft:bow",tag:{display:{Name:"Ignis"}}}]}
Comparator inbetween command blocks
2nd Dark blue command block: /execute @e[type=Arrow] ~ ~ ~ /particle flame ~ ~ ~ .25 .25 .25 0 10
I unfortunately don't have Java so I am not sure on the specific tag. But couldnt you name the bow?
Or you just want one person to be able to use it. You could use it? Do you mind if it is just removed from their inventory? Also is this guy in a specific area that no one will stand? There is a couple ways to do this.
Let me re-word what i'm asking. With the current commands i'm running, all arrows will have a particle effect on them as long as a bow named Ignis is in the inventory of player Castary. This includes arrows fired from dispensers and other players. Im hoping to prevent arrows fired from other players and dispensers from having the particle effect. I want only arrows fired from the bow named Ignis to have the particle effect. Is there a way to do this?
Just curious. Couldn't you cast the particle effect on the Arrow within a certain radius of a player with the bow? Or does it lose the particle effect when it leaves that area?
/effect @e[tag=Ignis,r=1] particle
This in an execute command could work.
Ill throw a command together for you in a hour. Also you should get rid of your decimals in your execute
You could possibly execute your player and then execute that command on all arrows within a certain radius of the player like /execute Castary ~ ~ ~ execute @e[type=Arrow,r=RADIUS] ~ ~ ~ /particle flame ~ ~ ~ .25 .25 .25 0 10
There is no need to tag the bow, but the arrow itself.
Let me show you:
first, you need to test if the player is holding the correct bow and if he is, tag him.
/scoreboard players tag @a add isHoldingBow {SelectedItem:{id:"minecraft:bow",tag:{display:{Name:"Ignis"}}}}
(if you wish to change the required bow name, you can just change {Name:"Ignis"} to what ever name you want)
then you need to execute from that player and tag the arrow
Note that all repeating (dark blue) command block are Always active and the other greenish command blocks are Conditional and Always active.
I included an image of the command block layout.
As for dispensers and other players, their arrows will not have particles as long as the player holding the "Ignis" bow is min 2 blocks away from them upon firing the arrow.
Thank you everyone for their great help and especially Megacrafter107! Thanks to you guys I was able to fix my problem and I appreciate it greatly! Once again I can't thank you all enough!
I am currently trying to create a bow from which the arrows fired from it have a flame particle effect on them. I have already succeeded in that much, but the command will target all players if the player with the bow has the bow in their inventory. Since I want it to seem that only the singular bow will create the particle effects, is there a way to have the command only applied to the player or within a certain radius of them?
What I have so far:
1st Dark blue command block(I don't know official name): /testfor Castary {Inventory:[{id:"minecraft:bow",tag:{display:{Name:"Ignis"}}}]}
Comparator inbetween command blocks
2nd Dark blue command block: /execute @e[type=Arrow] ~ ~ ~ /particle flame ~ ~ ~ .25 .25 .25 0 10
Any help is much appreciated!
I unfortunately don't have Java so I am not sure on the specific tag. But couldnt you name the bow?
Or you just want one person to be able to use it. You could use it? Do you mind if it is just removed from their inventory? Also is this guy in a specific area that no one will stand? There is a couple ways to do this.
Let me re-word what i'm asking. With the current commands i'm running, all arrows will have a particle effect on them as long as a bow named Ignis is in the inventory of player Castary. This includes arrows fired from dispensers and other players. Im hoping to prevent arrows fired from other players and dispensers from having the particle effect. I want only arrows fired from the bow named Ignis to have the particle effect. Is there a way to do this?
Just curious. Couldn't you cast the particle effect on the Arrow within a certain radius of a player with the bow? Or does it lose the particle effect when it leaves that area?
/effect @e[tag=Ignis,r=1] particle
This in an execute command could work.
Ill throw a command together for you in a hour. Also you should get rid of your decimals in your execute
You could possibly execute your player and then execute that command on all arrows within a certain radius of the player like /execute Castary ~ ~ ~ execute @e[type=Arrow,r=RADIUS] ~ ~ ~ /particle flame ~ ~ ~ .25 .25 .25 0 10
Austin Long
Or if you can tag the bow you can do
/execute @e[tag=Ignis] ~ ~ ~ execute @e[type=Arrow,r=Radius] ~ ~ ~ /particle flame ~ ~ ~ .25 .25 .25 0 10
Or maybe try
/execute @e[tag=Ignis,r=Radius] ~ ~ ~ execute @e[type=Arrow] ~ ~ ~ /particle flame ~ ~ ~ .25 .25 .25 0 10
Im not sure what the command would look like for tagging the bow "Ignis", could you give an example?
There is no need to tag the bow, but the arrow itself.
Let me show you:
first, you need to test if the player is holding the correct bow and if he is, tag him.
then you need to execute from that player and tag the arrow
remove the tag from the player
and finally, add particles to the arrow
Note that all repeating (dark blue) command block are Always active and the other greenish command blocks are Conditional and Always active.
I included an image of the command block layout.
As for dispensers and other players, their arrows will not have particles as long as the player holding the "Ignis" bow is min 2 blocks away from them upon firing the arrow.
Hope I helped.
Command block engineer // Developer // #TeamTrees
Thank you everyone for their great help and especially Megacrafter107! Thanks to you guys I was able to fix my problem and I appreciate it greatly! Once again I can't thank you all enough!
God I wish I had /scoreboard