PilzAdam wrote:And this is not possible with the current API?
MasterGollum wrote:PilzAdam wrote:And this is not possible with the current API?
Maybe it is but I did not find the way :(
The register craft provided by the default is not versatile, it gives an error as I reported the last time. It's really a shame, because it is restricted only to the standard craft types and it doesn't allow to create new craft types.
PilzAdam wrote:MasterGollum wrote:PilzAdam wrote:And this is not possible with the current API?
Maybe it is but I did not find the way :(
The register craft provided by the default is not versatile, it gives an error as I reported the last time. It's really a shame, because it is restricted only to the standard craft types and it doesn't allow to create new craft types.
Can you rewrite your code into c++ and pull request it to the engine repo?
rubenwardy wrote:This would be usefull on my mod if i did cookers and frying pans etc... food_realcraft here we come...
Mito551 wrote:this. is. just. great. i like it very much.
InfinityProject wrote:Could you put up an example of what you could do?
-- In the list of definitions
crafter.register_craft({
type = 'pottery',
output = 'potter:awasome_jar',
recipe = {
{'default:clay_lump','default:clay_lump'},
{'default:clay_lump','default:clay_lump'},
}
})
-- Inside your the abm of your crafter node
local shape = inv:get_list("shape")
crafter.get_craft_result({method = "pottery", width = 4, items = shape})
InfinityProject wrote:Sweet man! This will add much more creativity to minetest.
Users browsing this forum: No registered users and 25 guests