mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-23 03:13:44 +01:00
Add sfinv_buttons support
This commit is contained in:
parent
9510ed7daa
commit
a6214a3f1c
1
depends.txt
Normal file
1
depends.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
sfinv_buttons?
|
11
init.lua
11
init.lua
@ -474,4 +474,15 @@ mt.register_craft({
|
|||||||
burntime = 10
|
burntime = 10
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if mt.get_modpath("sfinv_buttons") then
|
||||||
|
sfinv_buttons.register_button("craftguide", {
|
||||||
|
title = "Crafting guide",
|
||||||
|
tooltip = "Shows a list of available crafting recipes, cooking recipes and fuels",
|
||||||
|
action = function(player)
|
||||||
|
craftguide:on_use(nil, player)
|
||||||
|
end,
|
||||||
|
image = "craftguide_book.png",
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
mt.register_alias("xdecor:crafting_guide", "craftguide:book")
|
mt.register_alias("xdecor:crafting_guide", "craftguide:book")
|
||||||
|
Loading…
Reference in New Issue
Block a user