mirror of
https://github.com/minetest-mods/i3.git
synced 2025-07-05 10:00:21 +02:00
Add more API funcs
This commit is contained in:
@ -45,3 +45,17 @@ i3.new_tab {
|
||||
i3.set_fs(player)
|
||||
end,
|
||||
}
|
||||
|
||||
i3.override_tab("test2", {
|
||||
name = "test2",
|
||||
description = "Test override",
|
||||
image = "i3_mesepick.png",
|
||||
|
||||
formspec = function(player, data, fs)
|
||||
fs("label[3,1;Override!]")
|
||||
end,
|
||||
|
||||
fields = function(player, data, fields)
|
||||
i3.set_fs(player)
|
||||
end,
|
||||
})
|
||||
|
Reference in New Issue
Block a user