*** Recipe Updates *** - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html) +--- Forum: Development (https://forum.cuberite.org/forum-13.html) +--- Thread: *** Recipe Updates *** (/thread-423.html) |
RE: *** Recipe Updates *** - xoft - 06-04-2012 I know that she's smart, that's why she's mine And that's why I let her decide some things for me. Alright, format 5 it is, then. RE: *** Recipe Updates *** - xoft - 06-04-2012 Alright, Rev 549 has the new parser. It reads recipes from the file "crafting.txt". An example file has been included. So start writing those recipes In order to test your recipe, you need to add it to crafting.txt and if it is in recipes.txt, delete it from there (as MCS uses both of these currently). The crafting.txt file has all the instructions needed for the recipes - it has the proper grammar, crafting grid coordinates, multiple-items guide and parser limitations. Feel free to add your own observations. IF you've just screamed "I want to write recipes", let's make it organized - write a note to this thread, saying "i'll do recipes for wool" or "i'll do recipes for items #300 - #350"; then no two people will do the same work needlessly. After you finish, post your results here. Only post the added / changed part of the crafting.txt file, and if you needed to add anything to items.ini, then the entire items.ini file. Also please note how readable the file is, let's try keep it that way. RE: *** Recipe Updates *** - xoft - 06-05-2012 To be honest, I expected a bit more enthusiastic response RE: *** Recipe Updates *** - Taugeshtu - 06-05-2012 I'll do "Utilities" section from recipe.txt. Probably a bit more I'm wondering if MCS support mirrored recipes? Because it's actually quite easy to make (if your parcer sort of "converts" recipe note to a crafting grid somehow and then compare current crafting grid with recipe one - just flip one coord and you're done). RE: *** Recipe Updates *** - xoft - 06-05-2012 It doesn't do it, because the grammar doesn't allow mirroring specification. Are there that many recipes that would benefit from mirrorring that it's worth implementing? RE: *** Recipe Updates *** - Taugeshtu - 06-05-2012 Quote:Are there that many recipes that would benefit from mirrorring that it's worth implementing?No, there aren't... Since MCS crafting check is somewhat different than I thought (I used to make similar system once) Utilities section: Code: #******************************************************# Now I'm going to do Travel Utilities and Control Utilities Here we go, Travel Utilities and Control Utilities: Code: #******************************************************# Now, "Material Blocks", "Special Blocks" and "Block To Ingot"! RE: *** Recipe Updates *** - Taugeshtu - 06-05-2012 Well, recipes.txt isn't needed anymore! I accidently finished all recipies Nicely formatted as in minecraftwiki, including different kinds of slabs and all other stuff. I also changed a bit items.ini (because, well, I don't like "slimeorb", I prefer "slimeball" instead, and it didn't had all slabs) here they are, items.ini (renamed to items.txt for uploading) and crafting.txt RE: *** Recipe Updates *** - xoft - 06-05-2012 See, how easy it is to have accidents with MCServer? I accidentally implemented a feature, you accidentally finished all recipes... I see you even caught my typo in the recipe grammar example. Nice catch. I've committed your changes as Rev 556, though I've reformatted the file to retain the vertical space layout. RE: *** Recipe Updates *** - xoft - 06-06-2012 You haven't even tried running MCS after writing those recipes! :-O If you had, you'd have noticed that several were mis-formatted and one item was still missing - the new parser does warn about bad recipes. Fixed in Rev 557 RE: *** Recipe Updates *** - Taugeshtu - 06-06-2012 Quote:You haven't even tried running MCS after writing those recipes! :-OYou're spelling it like it's somewhat bad Yes, I've already found all "bugs" (comma in "swords" section + StoneBrick instead of StoneBricks... Hell, why "Bricks"? I've added "StoneBrick" to items.ini locally, hope you'll do the same) |