I'm trying to prevent players from getting in boats. I'm thinking of a /testfor
command attached with a clock that triggers a kill command. The thing is that I don't know how to write that /testfor
command. I have searched google, but nothing relevant appears. Help me please!
Minecraft – How to /testfor if a player is sitting in a boat
minecraft-commandsminecraft-java-edition
Related Topic
- Minecraft Java Edition Minecraft Commands – Using Title Command with Execute Command in Minecraft
- Minecraft – How to detect if a player is looking at an entity
- Minecraft scoreboards: how to track how many times a player kills another specific player
- Minecraft – Run Command If Player Is Not Within Radius
Best Answer
try this command:
/testfor @p {Riding:{id:Boat}}