Execute command when player sits in lore?

ro
3

I want to build a freefall tower in Minecraft where the gondolas start up as soon as the player sits down. I play on 1.15.2.

/ execute if entity @p [x: ///, y: ///, x: ///] run say Hi

I've already tried, but it didn't work.

Maybe you can help me.

za

Try using

/ execute at @e [type = minecart] run execute if entity @e [type = player, distance = .0.5] run say Minecart!

ro

It worked, thank you.

ro

I have a second question. Can you trigger a command when a player touches water?