aboutsummaryrefslogtreecommitdiff
path: root/clientmods
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2020-07-18 20:01:17 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2020-07-18 20:01:17 +0200
commit5a8610c2f41e44c827912246b4f9437051d11621 (patch)
tree04fa785120501182e83c5b05515527bb0428aa63 /clientmods
parent83f59484d3b03e8964f1c7886dd1a0afd96ddd8d (diff)
downloaddragonfireclient-5a8610c2f41e44c827912246b4f9437051d11621.tar.xz
Added customizable keybindings, improved freecam, added special inventory keybind (by default ender inventory)
Diffstat (limited to 'clientmods')
-rw-r--r--clientmods/commands/init.lua8
-rw-r--r--clientmods/enderchest/init.lua2
-rw-r--r--clientmods/mapbot/mod.conf2
-rw-r--r--clientmods/mods.conf9
-rw-r--r--clientmods/respawn/init.lua3
5 files changed, 17 insertions, 7 deletions
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 = "<X>,<Y>,<Z>",
- 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)