I'm trying to summon a wither skeleton on top of an arrow by the time it lands in the ground. It can be summoned in-flight or upon arrival, I don't really care. Every method I've tried so far involves assigning the arrow an objective, but it has not taken any of the objectives, so the skeleton cannot be summoned.
Shadow_Mage
is the team of the player shooting the arrow
Sarrow
is the objective I'm trying to assign; it's typedummy
Running in an always-active unconditional repeating block:
execute @a[team=Shadow_mage] ~ ~ ~ scoreboard players set @e[type=Arrow,r=3] Sarrow 1 {inGround:1b}
Running in an another always-active unconditional repeating block:
execute @e[type=Arrow,score_Sarrow_min=1,score_Sarrow=1] ~ ~ ~ (valid summon command here)
After that I'm going to execute
@
the skeleton tokill
the nearestarrow
.
When I run testfor @e[r=5,type=Arrow,score_Sarrow_min=1]
I get no responses - even though I am of the team Shadow_mage
and the arrow is within 5
meters.
Is my command setup wrong, so the arrow isn't being assigned the objective?
Is the objective being set, but I'm interacting with it wrong?
Is there a better way to reach the right end result?
Shadow_Mage
is not capitalised correctly in your execute command. also, this will summon a skeleton at every arrow that is in a 3 block range of the mage in the ground, is that what you wanted it to do?