-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Improve crafting recipe documentation #12806
Conversation
Update! I have clarified some stuff about the crafting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some suggestions to shorten the text while keeping the important information.
I have accepted and applied most of these changes (new commit), except:
This is wrong or misleading, the output can NOT be specified as an ItemStack because ItemStack is an object. I changed it to "item stack" that term doesn't imply an object.
The fact that it's a table still should be mentioned explicitly.
Fuel recipes never have an output. I changed the text anyway because this was confusing.
I now explained this is more detail in a new bullet point.
I intentionally want to keep a long explanation for the first example. That's the point of having examples. |
More reactions because I overlooked these:
Since this is the parameter list, I think it is OK to repeat it once. Also, ItemStack is misleading as it must not be an actual ItemStack object.
Replacing documentation by examples is exactly what documentation should NOT be doing. This was a direct reaction from a complaint in the issue this PR is reacting to. Also, examples are already provided. I consider this to be irreducible complexity. |
Interesting. ItemStacks are not accepted but any item string works, including tool wear - likely even with metadata. Weird but not related to PR :)
I did not mean to replace the documentation, but to integrate it into a generic example to comprehend what's going on while seeing the table format. I wouldn't read the text and head on to the examples, but other people might act different. Fair enough. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks about right.
Unfortunately 2x2 recipes are broken |
Could you open an issue? |
Yep |
Fixes #12796.
This adds missing documentation for the crafting recipe definition in
lua_api.txt
. Currently, the "documentation" was mostly just examples, not a proper definition. So I have written the missing definition, and parameter specification, and stuff.Just read the diff for details. :P