From 5a8610c2f41e44c827912246b4f9437051d11621 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Sat, 18 Jul 2020 20:01:17 +0200 Subject: Added customizable keybindings, improved freecam, added special inventory keybind (by default ender inventory) --- clientmods/commands/init.lua | 8 ++++---- clientmods/enderchest/init.lua | 2 +- clientmods/mapbot/mod.conf | 2 +- clientmods/mods.conf | 9 +++++++++ clientmods/respawn/init.lua | 3 ++- 5 files changed, 17 insertions(+), 7 deletions(-) create mode 100644 clientmods/mods.conf (limited to 'clientmods') diff --git a/clientmods/commands/init.lua b/clientmods/commands/init.lua index 4ea8d04f6..71328e9ed 100644 --- a/clientmods/commands/init.lua +++ b/clientmods/commands/init.lua @@ -8,12 +8,12 @@ minetest.register_chatcommand("say", { minetest.register_chatcommand("teleport", { params = ",,", - description = "Teleport to position. " .. (core.anticheat_protection and "Only works for short distances." or ""), + description = "Teleport to relative coordinates. " .. (core.anticheat_protection and "Only works for short distances." or ""), func = function(param) - local success, pos = core.parse_pos(param) + local success, pos = minetest.parse_relative_pos(param) if success then - core.localplayer:set_pos(pos) - return true, "Teleporting to " .. core.pos_to_string(pos) + minetest.localplayer:set_pos(pos) + return true, "Teleporting to " .. minetest.pos_to_string(pos) end return false, pos end, diff --git a/clientmods/enderchest/init.lua b/clientmods/enderchest/init.lua index 458854d05..ae562a206 100644 --- a/clientmods/enderchest/init.lua +++ b/clientmods/enderchest/init.lua @@ -20,6 +20,6 @@ local formspec = "size[9,8.75]".. "listring[current_player;enderchest]".. "listring[current_player;main]" -function minetest.show_extra_inventory() +function minetest.open_special_inventory() minetest.show_formspec("enderchest:enderchest", formspec) end diff --git a/clientmods/mapbot/mod.conf b/clientmods/mapbot/mod.conf index 63c81f480..89eea839e 100644 --- a/clientmods/mapbot/mod.conf +++ b/clientmods/mapbot/mod.conf @@ -1,3 +1,3 @@ -name = misc +name = mapbot author = Fleckenstein description = An API to create simple bots, optimized for map interaction diff --git a/clientmods/mods.conf b/clientmods/mods.conf new file mode 100644 index 000000000..224fcb31d --- /dev/null +++ b/clientmods/mods.conf @@ -0,0 +1,9 @@ +load_mod_warp = true +load_mod_respawn = true +load_mod_colorchat = true +load_mod_commands = true +load_mod_maputil = true +load_mod_enderchest = true +load_mod_cheat_hud = false +load_mod_misc = true +load_mod_mapbot = false diff --git a/clientmods/respawn/init.lua b/clientmods/respawn/init.lua index 2a3566684..96bfe7acc 100644 --- a/clientmods/respawn/init.lua +++ b/clientmods/respawn/init.lua @@ -18,7 +18,8 @@ minetest.register_on_death(function() if minetest.settings:get_bool("autorespawn") then minetest.send_respawn() else - minetest.show_formspec("respawn:death", formspec) + minetest.show_formspec("respawn:death", formspec) + end end) minetest.register_on_formspec_input(function(formname, fields) -- cgit v1.2.3