Tho actually you could create a procedure that activates every tick and checks if player is moving in x or z axis, if so check if they are riding something, if not then check if they are in flowing water or lava, and if not then then set stamina to get stamina - (whatever you want to decrease it by)
Tho actually you could create a procedure that activates every tick and checks if player is moving in x or z axis, if so check if they are riding something, if not then check if they are in flowing water or lava, and if not then then set stamina to get stamina - (whatever you want to decrease it by)
Honestly i should do that for my mod but i am too tired right now