0220ab8483 | ||
---|---|---|
deps | ||
doc | ||
mods | ||
test | ||
textures | ||
.gitmodules | ||
LICENSE | ||
Makefile | ||
README | ||
README.md |
README.md
minetest-australopithecus-artisanry
A replacement for the builtin crafting system of Minetest, with the main goal to support multiple identical receipts with different output.
Features
- 5x5 crafting grid (instead of 3x3)
- Support for identical receipts with different output
- Support for groups
- Custom inventory screen (optional)
Planned Features
- Support for multiple outputs of one receipt (f.e. explode a pickaxe)
- Custom size of the crafting grid
- Support for inventories of nodes (f.e. chest/furnace)
- Chaining/Inheriting of multiple Artisanry objects
Dependencies
The currently only dependency is the minetest-australopithecus-utils mod.
Usage
-- Instanciate a new Artinsary object.
local artisanry = Artisanry:new()
-- Activate the inventory replacement.
artisanryui.activate(artisanry)
-- You can register crafts like this.
-- As input is a 2D table expected.
artinsary:register("My Group", "yourmod:output", {
{ "yourmod:input" }
})
artinsary:register("My Group", "yourmod:output", {
{ "yourmod:different_input" }
})
-- And here is the complete input.
artinsary:register("My Group", "yourmod:output", {
{ "", "", "yourmod:different_input", "", "" },
{ "", "", "", "", "" },
{ "", "", "", "", "" },
{ "", "", "", "", "" },
{ "", "", "", "", "" }
})