From 3eb6dc0f947221641a60c1146f5ec86e31570fe8 Mon Sep 17 00:00:00 2001 From: trans_soup <> Date: Fri, 13 Oct 2023 08:59:51 +0200 Subject: [PATCH] change miscellaneous player properties. --- mods/bg_player/init.lua | 2 ++ mods/bg_player/misc.lua | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 mods/bg_player/misc.lua diff --git a/mods/bg_player/init.lua b/mods/bg_player/init.lua index de66f03..2d90b8f 100644 --- a/mods/bg_player/init.lua +++ b/mods/bg_player/init.lua @@ -1,3 +1,5 @@ load_file("hand") + load_file("run") load_file("step_height") +load_file("misc") diff --git a/mods/bg_player/misc.lua b/mods/bg_player/misc.lua new file mode 100644 index 0000000..251abce --- /dev/null +++ b/mods/bg_player/misc.lua @@ -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)