2021-11-14 12:39:48 -08:00
|
|
|
i3.new_tab("test1", {
|
2021-01-21 10:28:54 -08:00
|
|
|
description = "Test 1 Test 1",
|
2021-01-15 16:46:26 -08:00
|
|
|
image = "i3_heart.png",
|
|
|
|
|
|
|
|
formspec = function(player, data, fs)
|
|
|
|
fs("label[3,1;Test 1]")
|
|
|
|
end,
|
2021-11-14 12:39:48 -08:00
|
|
|
})
|
2021-01-15 16:46:26 -08:00
|
|
|
|
2021-11-14 12:39:48 -08:00
|
|
|
i3.new_tab("test2", {
|
2021-01-15 16:46:26 -08:00
|
|
|
description = "Test 2",
|
|
|
|
image = "i3_mesepick.png",
|
|
|
|
|
|
|
|
formspec = function(player, data, fs)
|
|
|
|
fs("label[3,1;Test 2]")
|
|
|
|
end,
|
2021-11-14 12:39:48 -08:00
|
|
|
})
|
2021-01-15 16:46:26 -08:00
|
|
|
|
2022-03-20 16:06:51 -07:00
|
|
|
i3.new_tab("test_creative", {
|
|
|
|
description = "Test creative",
|
2021-01-15 16:46:26 -08:00
|
|
|
|
|
|
|
access = function(player, data)
|
|
|
|
local name = player:get_player_name()
|
2022-03-20 16:06:51 -07:00
|
|
|
return core.is_creative_enabled(name)
|
2021-01-15 16:46:26 -08:00
|
|
|
end,
|
|
|
|
|
|
|
|
formspec = function(player, data, fs)
|
2022-03-20 16:06:51 -07:00
|
|
|
fs("label[3,1;Creative enabled]")
|
2021-01-15 16:46:26 -08:00
|
|
|
end,
|
|
|
|
|
2022-03-20 16:06:51 -07:00
|
|
|
fields = i3.set_fs,
|
2021-11-14 12:39:48 -08:00
|
|
|
})
|
2021-01-28 12:00:08 -08:00
|
|
|
|