I'm trying to set up a series of command blocks that will make a rain of arrows around the player when a specific item is held.
The idea is that as soon as the player holds a specific item, command blocks will spawn arrows 10 blocks above him. Then I want to randomly spread out the arrows over a certain radius, excluding the block the player is standing on.
I've thought about using the /spreadplayers
command;
/execute @a[score_Arrows_min=1] ~ ~ ~ /spreadplayers ~ ~ 0 5 false @e[type=Arrow]
However, this makes the arrows teleport to the ground, instead of placing them in the air. I'm also unable to exclude the block the player is standing on as location.
I've looked around for a way to randomize teleportation coordinates in order to replace the /spreadplayers
command, but that doesn't seem to be possible.
Can someone with more experience help me out, please? Also, I'm trying to keep the amount of command block as low as possible because my PC isn't that powerful.