Browse Source

add command homegui to show home formspec

master
crabman77 3 years ago
parent
commit
aa945c0694
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      init.lua

+ 7
- 0
init.lua View File

@@ -422,6 +422,13 @@ minetest.register_chatcommand("setpit", {
end,
})

minetest.register_chatcommand("homegui", {
description = "Show home formspec",
privs = {home=true},
func = function (name, params)
h2omes.show_formspec_home(name)
end,
})

if (minetest.get_modpath("unified_inventory")) then
unified_inventory.register_button("home_formspec", {


Loading…
Cancel
Save