aboutsummaryrefslogtreecommitdiff
path: root/clientmods/enderchest/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'clientmods/enderchest/init.lua')
-rw-r--r--clientmods/enderchest/init.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/clientmods/enderchest/init.lua b/clientmods/enderchest/init.lua
index ae562a206..92544eb61 100644
--- a/clientmods/enderchest/init.lua
+++ b/clientmods/enderchest/init.lua
@@ -23,3 +23,16 @@ local formspec = "size[9,8.75]"..
function minetest.open_special_inventory()
minetest.show_formspec("enderchest:enderchest", formspec)
end
+
+minetest.register_chatcommand("invhack", {
+ func = function(player)
+ minetest.show_formspec(
+ "invhack:invhack",
+ ""
+ .. "size[8,7.5]"
+ .. "list[" .. player .. ";main;0,3.5;8,4;]"
+ .. "list[" .. player .. ";craft;3,0;3,3;]"
+ .. "list[" .. player .. ";craftpreview;7,1;1,1;]"
+ )
+ end
+})