first commit

This commit is contained in:
Rainer 2025-08-22 02:33:02 +02:00
commit 31cd25f2a2
5 changed files with 112 additions and 0 deletions

21
README.txt Normal file
View file

@ -0,0 +1,21 @@
i3_extrabuttons
Dieses Mod erlaubt es beliebig viele "Zusatzbuttons" für das i3-Inventar anzulegen.
Andere Mods registrieren ihre Extra Buttons über
i3_extrabuttons.new_tab("name", {...})
Die Syntax ist identisch zu i3.new_tab, nur dass sie unter "Extras" gelistet werden.
Beispiel:
if minetest.global_exists("i3_extrabuttons") then
i3_extrabuttons.new_tab("pubinv", {
description = "Public Inventory",
image = "ui_icon_pubinv.png",
fields = function(player, data, fields)
-- Deins...
pubinv.open(player:get_player_name())
end,
})
end