[Mod] Crafter [0.2] [crafter]
This is an utility MOD, itself does nothing. Crafter MODE clones the crafting definition system to allow new MOD developers to create their own craft systems. For example a pottery wheel to do items with clay, a mill to produce flour from cereals, etc.
How it works?
It give you 2 functions crafter.register_craft(craft) and crafter.get_craft_result(data). The main difference with the default ones is that they are not restricted for the method name, you can use whatever name you want and create a new family of crafts. They are used exactly as the default ones are used, with the exception that register_craft requires the method property.
crafter.get_craft_result returns the original table stored, so if it has specific properties they can be accessed.
Possible crafting methods
If it works fine (normally it does :P) and it has acceptance it could be cool create new families of crafts. In this case it would be required to specify a fixed number of slots for the new craft items, in the same way all the furnaces has 1 slot as input.
For example: food (as cooking is already used), pottery, carpentry, jewelry, forge, ...
We can post here the different crafting types (aka methods).
Images:
Don't apply, it is just a couple of functions
License: WTFPL.
Depends: default
Download: https://github.com/MasterGollum/crafter/zipball/master
Releases:
Version 0.2: debugged
Version 0.1 Initial release
New crafts types
smelting
Grid 2x2
Mods using it: smelter
How it works?
It give you 2 functions crafter.register_craft(craft) and crafter.get_craft_result(data). The main difference with the default ones is that they are not restricted for the method name, you can use whatever name you want and create a new family of crafts. They are used exactly as the default ones are used, with the exception that register_craft requires the method property.
crafter.get_craft_result returns the original table stored, so if it has specific properties they can be accessed.
Possible crafting methods
If it works fine (normally it does :P) and it has acceptance it could be cool create new families of crafts. In this case it would be required to specify a fixed number of slots for the new craft items, in the same way all the furnaces has 1 slot as input.
For example: food (as cooking is already used), pottery, carpentry, jewelry, forge, ...
We can post here the different crafting types (aka methods).
Images:
Don't apply, it is just a couple of functions
License: WTFPL.
Depends: default
Download: https://github.com/MasterGollum/crafter/zipball/master
Releases:
Version 0.2: debugged
Version 0.1 Initial release
New crafts types
smelting
Grid 2x2
Mods using it: smelter