How can I test to see if a player is NOT in a boat? [duplicate]
![How can I test to see if a player is NOT in a boat? [duplicate] - From above of glasses for correcting bad eyesight placed on white mirrored surface How can I test to see if a player is NOT in a boat? [duplicate] - From above of glasses for correcting bad eyesight placed on white mirrored surface](/assets/images/how_can_i_test_to_see_if_a_player_is_not_in_a_boat_duplicate_0.jpeg)
MADEUP, but with a real account. I'm making a Mini game for my friends realm called IceBoat,which is pretty self explanatory, but there is an essential command that I can't find anywhere! I tried modifying a command to do what I want, and here is my modified command:
testfor @e {type!=RootVehicle:{Entity:{id:Boat}}}
and it gives me this error:
The entered UUID provided is in an invalid format.
With slight variations of this command, (I mean changing location of type and brackets) I get the same error. So, how can I create a testfor to see if anyone is NOT in a boat?
Best Answer
For players:
/scoreboard players tag @a add inboat {RootVehicle:{id:"Boat"}}
will add the "inboat" tag to all players in a boat.
You can then execute commands on players not in boats using the @a[tag=!inboat]
selector.
Pictures about "How can I test to see if a player is NOT in a boat? [duplicate]"
![How can I test to see if a player is NOT in a boat? [duplicate] - Student Getting A+ Mark in Her Exam How can I test to see if a player is NOT in a boat? [duplicate] - Student Getting A+ Mark in Her Exam](/assets/images/how_can_i_test_to_see_if_a_player_is_not_in_a_boat_duplicate_1.jpeg)
![How can I test to see if a player is NOT in a boat? [duplicate] - Student Cheating During an Exam How can I test to see if a player is NOT in a boat? [duplicate] - Student Cheating During an Exam](/assets/images/how_can_i_test_to_see_if_a_player_is_not_in_a_boat_duplicate_2.jpeg)
![How can I test to see if a player is NOT in a boat? [duplicate] - Student Cheating During an Exam How can I test to see if a player is NOT in a boat? [duplicate] - Student Cheating During an Exam](/assets/images/how_can_i_test_to_see_if_a_player_is_not_in_a_boat_duplicate_3.jpeg)
Why Sudo Is The Best Command in Minecraft
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Harrison Haines, RODNAE Productions, RODNAE Productions, RODNAE Productions