Merge https://git.tchncs.de/Illuna-Minetest/illuna into HEAD
This commit is contained in:
commit
a81f3fb9a6
@ -17,5 +17,6 @@ mobs_better_rat ?
|
||||
mobs_slimes ?
|
||||
mobs_sandworm ?
|
||||
pkarcs?
|
||||
unified_inventory?
|
||||
wiki
|
||||
unifieddyes
|
||||
|
3
init.lua
3
init.lua
@ -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
|
||||
|
12
unified_inventory.lua
Normal file
12
unified_inventory.lua
Normal file
@ -0,0 +1,12 @@
|
||||
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
|
||||
})
|
Loading…
x
Reference in New Issue
Block a user