Minecraft Wiki
Register
(Undo revision 1052974 by Maethoredhel (talk))
(Undo revision 1052980 by 161.73.255.129 (talk) Hhmph)
Line 3: Line 3:
 
== durability when breaking "instant break" blocks with tools ==
 
== durability when breaking "instant break" blocks with tools ==
   
MINECRAFT STOPS WORKING WHEN I SPANK MY MONKEY AND JIZZ ON THE SCREEN--[[User:Andrybak|Andrybak]] ([[User talk:Andrybak|talk]]) 20:05, 16 January 2015 (UTC)
+
Does pickaxes lose durability when used to break instant-break blocks, such as torches, flowers and tall grass? --[[User:Andrybak|Andrybak]] ([[User talk:Andrybak|talk]]) 20:05, 16 January 2015 (UTC)
   
 
: Refer to [[Tools#Item durability]]. <span class=nowrap>–'''[[User:KnightMiner|<span style=color:#088>KnightMiner</span>]]''' <sup>([[User talk:KnightMiner|t]]·[[Special:Contributions/KnightMiner|c]])</sup> 20:49, 16 January 2015 (UTC)</span>
 
: Refer to [[Tools#Item durability]]. <span class=nowrap>–'''[[User:KnightMiner|<span style=color:#088>KnightMiner</span>]]''' <sup>([[User talk:KnightMiner|t]]·[[Special:Contributions/KnightMiner|c]])</sup> 20:49, 16 January 2015 (UTC)</span>

Revision as of 23:54, 5 January 2017

Archives

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#Item durability. 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.
{{#dpl:categorymatch=%recipe
|include={Crafting}:1:2:3:4:5:6:7:8:9:A1:B1:C1:A2:B2:C2:A3:B3:C3:Output
|mode = userformat
|secseparators = ====
|multisecseparators = ====
}}
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. MajrTalk
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! MajrTalk
Contribs
11:40, 6 April 2016 (UTC)