New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using "craft all" on recipes w/ replacements loses all the replacements. #6
Comments
I don t understand. Can you provide me a real example ?
Le mar. 24 déc. 2019 à 20:46, fluxionary <notifications@github.com> a
écrit :
… In truth, when the last craft is done, because the crafting grid is now
empty, a replacement will go there, but all the other replacements are just
ignored and lost.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#6>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE2RKJCFGLFFNNQHY3JLGGTQ2JRJNANCNFSM4J7AOTHQ>
.
|
documentation on recipe replacements: documentation on where replacements show up after get_craft_results: For an example of where this matters, lets use the recipe for ciabatta dough from Cucina Vegana. Note that Cucina Vegana has a bunch of other recipes w/ replacements, but some of those aren't specified sanely, so just use this one for reference. The recipe contains the following:
The recipe specifies that the soy milk will be replaced with a drinking glass, and the oil w/ a bottle. As you can see, if I craft one item, the replacements show up in the crafting grid: However, there are problems if I try to craft things in bulk using the From what I can understand, the replacement items are only automatically placed in the crafting grid, if nothing is left in the grid after crafting. Otherwise, the mod code has to manually handle doing something w/ the replacements. |
Also there's a bug in the game engine that's making it tricky for me to come up w/ a good resolution. See minetest/minetest#9250 |
ok now I understand. I have to take time to fully understand the concept
and I ll fix it.
Le mer. 25 déc. 2019 à 16:28, fluxionary <notifications@github.com> a
écrit :
… documentation on recipe replacements:
-
https://github.com/minetest/minetest/blob/44458896d9097c15c722c5bffb3d72e14962b7ce/doc/lua_api.txt#L6856
documentation on where replacements show up after get_craft_results:
-
https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L4785
For an example of where this matters, let use use the recipe for ciabatta
dough from Cucina Vegana
<https://forum.minetest.net/viewtopic.php?t=20001>.
[image: screenshot_20191225_151239]
<https://user-images.githubusercontent.com/25628292/71447682-764b2500-2729-11ea-9260-76a29f6c175c.png>
The recipe contains the following:
- Soy milk
- Sunflower seed oil
- Flour
- Rosemary
The recipe specifies
<https://github.com/acmgit/cucina_vegana/blob/3f3877598d1983effc6f1035d65470a5806a5355/recipes.lua#L37>
that the soy milk will be replaced with a drinking glass, and the oil w/ a
bottle. As you can see, if I craft one item, the replacements show up in
the crafting grid:
[image: screenshot_20191225_151253]
<https://user-images.githubusercontent.com/25628292/71447683-7b0fd900-2729-11ea-9891-77ff0bcfc655.png>
However, there are problems if I try to craft things in bulk using the all
button from this mod:
[image: screenshot_20191225_151028]
<https://user-images.githubusercontent.com/25628292/71447686-8105ba00-2729-11ea-9570-7c119f51444f.png>
[image: screenshot_20191225_151151]
<https://user-images.githubusercontent.com/25628292/71447690-87943180-2729-11ea-9408-96d9533198bf.png>
From what I can understand, the replacement items are only automatically
placed in the crafting grid, if nothing is left in the grid after crafting.
Otherwise, the mod code has to manually handle doing something w/ the
replacements.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#6>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE2RKJFCG4WP2NSDRAPYK2DQ2N3ZJANCNFSM4J7AOTHQ>
.
|
Is this related to the |
@Golutazem no, I think that's a separate issue for items w/ metadata |
Using "craft all" on recipes w/ replacements loses all the replacements. In truth, when the last craft is done, because the crafting grid is now empty, a replacement will go there, but all the other replacements are just ignored and lost.
The text was updated successfully, but these errors were encountered: