Skip to content
Snippets Groups Projects
Commit a26ce76b authored by Milan's avatar Milan
Browse files

add travelcenter button to unified_inventory

parent e64b1211
No related branches found
No related tags found
No related merge requests found
......@@ -17,5 +17,6 @@ mobs_better_rat ?
mobs_slimes ?
mobs_sandworm ?
pkarcs?
unified_inventory?
wiki
unifieddyes
......@@ -18,3 +18,6 @@ end
if minetest.get_modpath("technic") then
dofile(minetest.get_modpath("illuna").."/technic.lua")
end
if minetest.get_modpath("unified_inventory") then
dofile(minetest.get_modpath("illuna").."/unified_inventory.lua")
end
unified_inventory.register_button("illuna_travelcenter", {
type = "image",
image = "travelnet_inv.png",
tooltip = "Teleport to the Travelcenter",
hide_lite = true,
action = function(player, param)
local player = minetest.get_player_by_name(name)
local travelcenterPos = minetest.setting_get("travelcenter_pos")
player:setpos(travelcenterPos)
--minetest.chat_send_player(name, core.colorize(color_success, "Alrighty, have fun exploring."))
end
})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment