Add Guide Book crafting recipe

This commit is contained in:
Zenon Seth 2024-03-24 16:49:49 +00:00
parent 6cf649d8f3
commit 1fd39697c6
2 changed files with 11 additions and 1 deletions

View File

@ -7,10 +7,19 @@ local function show_guide(_, user, _)
end
end
minetest.register_craftitem("logistica:guide", {
minetest.register_tool("logistica:guide", {
description = S("Guide Book to Logistica machines and concepts"),
inventory_image = "logistica_guide_book_item.png",
stack_max = 1,
on_secondary_use = show_guide,
on_place = show_guide,
})
minetest.register_craft({
output = "logistica:guide",
recipe = {
{logistica.itemstrings.sand},
{logistica.itemstrings.paper},
{logistica.itemstrings.sand},
}
})

View File

@ -51,4 +51,5 @@ logistica.itemstrings = {
water_source = mcl and "mcl_core:water_source" or "default:water_source",
river_water_source = mcl and get_mcl_river_water_source() or "default:river_water_source",
lava_source = mcl and "mcl_core:lava_source" or "default:lava_source",
paper = mcl and "mcl_core:paper" or "default:paper"
}