Disallowing player to move minecart

medveed

New member
Nov 9, 2024
1
0
1
I am trying to create a some kind of train system. A train is basically just a minecart with some additional NBT.

I want to make player unable to control the minecart or push it, so the player just sits in it, but the minecart should be able to move as it usually does.

I think that onVehicleMove event is what I need, but I don't know how to check if a minecart movement was made by player.