change miscellaneous player properties.

This commit is contained in:
trans_soup 2023-10-13 08:59:51 +02:00
parent 1aecdeb752
commit 3eb6dc0f94
2 changed files with 11 additions and 0 deletions

View File

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

9
mods/bg_player/misc.lua Normal file
View File

@ -0,0 +1,9 @@
local utils = load_file("util_misc")
minetest.register_on_joinplayer(function(player)
utils.handle_player(player, function (_, data)
data.properties.pointable = false
data.properties.zoom_fov = 15
data.properties.eye_height = 1.7
end)
end)