1

TP items after death command broken

RageLokiCat's Avatar RageLokiCat7/25/14 1:24 pm
1 emeralds 335 1
7/25/2014 3:30 pm
Skylinerw's Avatar Skylinerw
/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
Posted by RageLokiCat's Avatar
RageLokiCat
Level 21 : Expert Pony
20

Create an account or sign in to comment.

1

1
07/25/2014 3:30 pm
Level 16 : Journeyman Engineer
Skylinerw
Skylinerw's Avatar
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]
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome