Totally rework how bags work + other cool stuff

This commit is contained in:
Jean-Patrick Guerrero
2021-11-14 21:39:48 +01:00
parent 9cc8464111
commit 2e7dcd714d
15 changed files with 366 additions and 241 deletions

View File

@ -1,25 +1,22 @@
i3.new_tab {
name = "test1",
i3.new_tab("test1", {
description = "Test 1 Test 1",
image = "i3_heart.png",
formspec = function(player, data, fs)
fs("label[3,1;Test 1]")
end,
}
})
i3.new_tab {
name = "test2",
i3.new_tab("test2", {
description = "Test 2",
image = "i3_mesepick.png",
formspec = function(player, data, fs)
fs("label[3,1;Test 2]")
end,
}
})
i3.new_tab {
name = "test3",
i3.new_tab("test3", {
description = "Test 3",
access = function(player, data)
@ -36,10 +33,9 @@ i3.new_tab {
fields = function(player, data, fields)
i3.set_fs(player, "label[3,2;Test extra_fs]")
end,
}
})
i3.override_tab("test2", {
name = "test2",
description = "Test override",
image = "i3_mesepick.png",