Talk:Crafting

durability when breaking "instant break" blocks with tools
Does pickaxes lose durability when used to break instant-break blocks, such as torches, flowers and tall grass? --Andrybak (talk) 20:05, 16 January 2015 (UTC)


 * Refer to Tools. – KnightMiner  (t·c) 20:49, 16 January 2015 (UTC)

Wiki source of the recipes
I'm trying to get the wiki source of all the recipes. I think it has something to do with that script Module:Recipe_list. I'd like to get the wiki sources of all the recipes without downloading every individual item/block page wiki source, is that possible using that script or some other way ? --Rom1504 (talk) 09:06, 23 March 2015 (UTC)

Ok, so I found out some things. Let's answer myself :
 * this script is written in lua (see https://www.mediawiki.org/wiki/Extension:Scribunto)
 * this is the general template for recipes Template:Grid
 * this is the general module for grid Module:Grid
 * most of the data is in the individual item/block pages : need to download that
 * some data is there Module:Grid/Aliases

For your information, this is what I want to use that data for https://github.com/andrewrk/mineflayer/issues/229.

--Rom1504 (talk) 09:50, 23 March 2015 (UTC)


 * The individual recipes within the "obtaining" section are stored on each individual page, while the "usage" recipes are loaded from other pages obtaining. The script here loads recipes using DPL, which would be helpful if you are loading the recipe data on the wiki, although it obtains the recipes from the other pages, meaning the data is in no way stored here.
 * Your options would be:
 * Taking the source text of all the pages that use the template for crafting. In this case, in order to process the data you would need to read a few of the modules you mentioned, and one you missed, Module:Crafting. (this could in theory be done on wiki using DPL, where you output the text rather than the displayed recipes, though it would be complicated to get the data into a format that is useful.)
 * Attempting to converting the html source for your purposes. – KnightMiner  t/c 14:26, 23 March 2015 (UTC)

Ok I think I will try that first option.

I actually already tried the second option, with some success (see https://github.com/andrewrk/mineflayer/blob/master/bin/transform1_recipes.js ) but it's imperfect and kind of ugly so I think it would be better to parse the source directly.

--Rom1504 (talk) 14:42, 23 March 2015 (UTC)


 * It's probably best to use an API query to run a DPL query to extract data.


 * in API form
 * for example, should return all recipes in a more digestible manner (if you're hitting a DPL limit, do each category in category:recipe types one-by-one), but you may wish to do more filtering to avoid invalid recipes, like filtering out userpages. You'll still need to read some other data, like Module:Grid/Aliases to translate stuff like "Any Wood", but lua tables are pretty similar to JSON, so they should be fairly easy to read. –Majr ᐸ Talk Contribs 15:04, 23 March 2015 (UTC)

Thanks KnightMiner and Majr ! I used all these info and managed to make scripts to extract blocks, items and recipes (there https://github.com/PrismarineJS/minecraft-data/tree/master/bin/wiki_extractor). --Rom1504 (talk) 14:31, 2 May 2015 (UTC)

Category/subcategory for Banners?
I can't be the only one who gets frustrated trying to find a recipe only to have to scroll through a ton of banner recipes in the decoration section. Maybe even just have the base banner, with a link to the banner page (and have that have all the individual banner style recipes if it doesn't already)? Lizardorb (talk) 17:39, 3 April 2016 (UTC)


 * Maybe a different section altogether for Banners? – Sealbudsman talk/contr 19:14, 3 April 2016 (UTC)


 * Sounds good to me! –Majr ᐸ Talk Contribs 11:40, 6 April 2016 (UTC)

Computer Edition
The introduction to this page is considerably longer than on most pages. It may be best to put PC into a section, the way PE and console editions are. The BlobsPaper.png 04:30, 28 February 2017 (UTC)