1
TP items after death command broken
/execute @a[score_Health=0] ~ ~2 ~ /tp @e[type=Item,r=10] @p[score_Health=0]
I get an output that says:
Failed to execute '/tp @e[type=Item,r=10] @p[score_Health=0]' as creeptoid
Any ideas why? I'm using creeptoid ingame, so that's not the issue.
Thanks,
RageLokiCat
I get an output that says:
Failed to execute '/tp @e[type=Item,r=10] @p[score_Health=0]' as creeptoid
Any ideas why? I'm using creeptoid ingame, so that's not the issue.
Thanks,
RageLokiCat
Create an account or sign in to comment.
1
1
RageLokiCat/execute @a[score_Health=0] ~ ~2 ~ /tp @e[type=Item,r=10] @p[score_Health=0]
I get an output that says:
Failed to execute '/tp @e[type=Item,r=10] @p[score_Health=0]' as creeptoid
Any ideas why? I'm using creeptoid ingame, so that's not the issue.
Thanks,
RageLokiCat
Only the @a selector can target dead players. If you need to select only the nearest, you can use the "count" parameter and set it to 1, and it will act as the @p selector with the ability to target dead players:
/execute @a[score_Health=0] ~ ~2 ~ /tp @e[type=Item,r=10] @a[score_Health=0,c=1]