local utils = load_file("util_misc") blockgame.register_globalstep(function(delta_time) for _, player in pairs(minetest.get_connected_players()) do utils.handle_player(player, function (_, data) data.properties.stepheight = data.control.sneak and 0.01 or 1.05 end) end end)