increase player step height.

This commit is contained in:
trans_soup 2023-10-13 08:30:16 +02:00
parent 48a51a77ce
commit 3c25192944
2 changed files with 9 additions and 0 deletions

View file

@ -1,2 +1,3 @@
load_file("hand")
load_file("run")
load_file("step_height")

View file

@ -0,0 +1,8 @@
minetest.register_globalstep(function(delta_time)
for _, player in pairs(minetest.get_connected_players()) do
local control = player:get_player_control()
local properties = player:get_properties()
properties.stepheight = control.sneak and 0.01 or 1.05
player:set_properties(properties)
end
end)