How can I test to see if a player is NOT in a boat? [duplicate]
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]"
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