Arqade Asked on March 22, 2021
I want to be able to detect a player that has died 20 times and then teleport that player only to an off-site area. I need to know how to detect that player but leave the others alone. I have tried to use /testfor commands but this is all I got so far.
/scoreboard objectives add Deaths deathCount
/scoreboard objectives setdisplay sidebar Deaths
/testfor @a [score_Deaths_min=20]
Could I possibly set a command to /tp @a x,y,z =min_20
?
First of all, are you sure you're getting the target selector right? Using scores is now different in the newest version of Minecraft Bedrock Edition.
Instead of:
@a[score_DEATHS_min=20]
Try:
@a[scores={DEATHS=20..}]
And to solve your original problem, I directly targeted players to teleport in the /tp
command.
/tp @a[scores={DEATHS=20..}] 10 20 30
Explanation: Teleport everyone with 20 deaths or more to coordinates (10, 20, 30).
Correct answer by ExpertCoder14 on March 22, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP