Minecraft Wiki
Advertisement

このモジュールは、{{brewing}} を実装しています。

依存関係[]

関連項目[]

[閲覧 | 編集 | 履歴 | キャッシュ破棄]上記の解説は、モジュール:Brewing/docから参照されています。
local p = {}

local i18n = {
	categoryUpcoming = 'カテゴリ:開発中',
	defaultBasePotion = '奇妙なポーション',
	moduleArgs = [[モジュール:ProcessArgs]],
	moduleRecipe = [[モジュール:Recipe table]],
	type = '醸造',
}
p.i18n = i18n

local recipeTable = require( i18n.moduleRecipe ).table

function p.table( f )
	local args = f
	if f == mw.getCurrentFrame() then
		args = require( i18n.moduleArgs ).merge( true )
	else
		f = mw.getCurrentFrame()
	end
	
	args.Input = args[1]
	
	if not args.base then
		args.base = i18n.defaultBasePotion
	end
	
	if args.showbase then
		args.Output1 = args.base2
		args.Output2 = args.base
		args.Output3 = args.base3
	else
		args.Output1 = args[3]
		args.Output2 = args[2]
		args.Output3 = args[4]
	end
	
	local out = recipeTable( args, {
		uiFunc = 'brewingStand',
		type = i18n.type,
		ingredientArgs = { 'Input', 'base' },
		outputArgs = { 'Output1', 'Output2', 'Output3' },
	} )
	
	local title = mw.title.getCurrentTitle()
	local category
	if args.upcoming and args.nocat ~= '1' and title.namespace == 0 and not title.isSubpage then
		category = '[[' .. i18n.categoryUpcoming .. ']]'
	end
	
	return out, category
end

return p
Advertisement