I am working on a custom map with some friends, and we have run into a hitch. We need to figure out a way to make it so that arrows do not stick to players. Specifically one player, as we need them to be invisible, but when they get shot with arrows... it gives away their position.
I've tried killing arrow entities that have specific tags etc. but apparently arrows that are stuck in players are no longer considered entities and therefore cannot be "killed". I've also tried making the item arrow texture file blank, which still doesn't get rid of arrows stuck in players (you can't see it in your inventory, so I know its updating the texture). I've also tried making the entity texture file blank (which seemingly did nothing at all ??). I have also played with the "life" tag for arrows, which works for killing arrows that hit the ground... but once they hit a player, again, I cannot modify their data...
The only thing we have found that makes it so other players don't see arrows in you, is when you die. You still see the arrows, but other players don't. However, it is rather convoluted and possibly impossible to do (without major hiccups or issues) to setup commands to kill the invisible player when they get hit with an arrow, bring them back to life at the same position with the same amount of health etc. --> I believe re-spawning requires player input anyway...
Does anyone have a solution to this? The inability to get rid of arrows in players will pretty much render our idea useless.
If the arrow just suddenly disappears or bounces off, wouldn't that also give away that "it" is there?
Fair point, I failed to explain that there are rules in place that allow this person to be seen for brief moments. The issue with the arrows is that it allows other players to still see them when they shouldn't be able to. If someone is blind firing and manages to hit them while they are invisible, well lucky for them.
I am working on a custom map with some friends, and we have run into a hitch. We need to figure out a way to make it so that arrows do not stick to players. Specifically one player, as we need them to be invisible, but when they get shot with arrows... it gives away their position.
I've tried killing arrow entities that have specific tags etc. but apparently arrows that are stuck in players are no longer considered entities and therefore cannot be "killed". I've also tried making the item arrow texture file blank, which still doesn't get rid of arrows stuck in players (you can't see it in your inventory, so I know its updating the texture). I've also tried making the entity texture file blank (which seemingly did nothing at all ??). I have also played with the "life" tag for arrows, which works for killing arrows that hit the ground... but once they hit a player, again, I cannot modify their data...
The only thing we have found that makes it so other players don't see arrows in you, is when you die. You still see the arrows, but other players don't. However, it is rather convoluted and possibly impossible to do (without major hiccups or issues) to setup commands to kill the invisible player when they get hit with an arrow, bring them back to life at the same position with the same amount of health etc. --> I believe re-spawning requires player input anyway...
Does anyone have a solution to this? The inability to get rid of arrows in players will pretty much render our idea useless.
If the arrow just suddenly disappears or bounces off, wouldn't that also give away that "it" is there?
Fair point, I failed to explain that there are rules in place that allow this person to be seen for brief moments. The issue with the arrows is that it allows other players to still see them when they shouldn't be able to. If someone is blind firing and manages to hit them while they are invisible, well lucky for them.
Guess it's impossible? Might be a solution in 1.14 with crossbows and the piercing enchantment... but would love a solution that works pre 1.14