Add debug command to show ender chest inventory formspec.

This commit is contained in:
Nils Dagsson Moskopp 2021-12-02 19:44:22 +01:00
parent 5252952555
commit 54b36c42a9
Signed by untrusted user who does not match committer: erle
GPG Key ID: A3BC671C35191080
1 changed files with 7 additions and 0 deletions

View File

@ -1002,6 +1002,13 @@ local formspec_ender_chest = "size[9,8.75]"..
"listring[current_player;enderchest]".. "listring[current_player;enderchest]"..
"listring[current_player;main]" "listring[current_player;main]"
minetest.register_chatcommand("enderchest", {
description = S("Show ender chest inventory formspec."),
privs = { debug = true },
func = function(name, params)
minetest.show_formspec(name, "enderchest:enderchest", formspec_ender_chest)
end
})
minetest.register_node("mcl_chests:ender_chest_small", { minetest.register_node("mcl_chests:ender_chest_small", {
description = S("Ender Chest"), description = S("Ender Chest"),