VOOZH about

URL: https://minecraft.wiki/w/Module:Block_value

⇱ Module:Block value – Minecraft Wiki


Module:Block value

From Minecraft Wiki
Jump to navigation Jump to search
Documentation[view] [edit] [history] [purge]Jump to code ↴

This module implements {{hardness values}} and {{blast resistance values}}.

Dependencies

[view] [edit] [history] [purge]The above documentation is transcluded from Module:Block value/doc.
localp={}
functionp.value(f)
localargs=f
iff==mw.getCurrentFrame()then
args=require('Module:ProcessArgs').merge(true)
end
localblock=mw.text.trim(args[1]or''):lower()
localargType=args.type
localvalues=mw.loadData('Module:'..argType..' values')
localvalue=values[block]
localcategory=''
ifnotvaluethen
value=values[block:gsub('s$','')]
ifnotvaluethen
value='[[Template:'..argType..' values#Missing value|?]]'
localtitle=mw.title.getCurrentTitle()
ifnotargs.nocatandtitle.namespace==0andnottitle.isSubpagethen
category='[[Category:Missing '..argType:lower()..']]'
end
end
end
returnvalue..category
end
returnp
Retrieved from "https://minecraft.wiki/w/Module:Block_value?oldid=2929074"

Navigation menu