Tutorial:Advanced Recipes
From MineTweaker3 Wiki
Revision as of 16:03, 21 June 2014 by Stan (Talk) (Created page with "So far we have learned about how to add or remove simple recipes. But what if the inputs and outputs also involve damage values or NBT tags? It is possible to define both dam...")
So far we have learned about how to add or remove simple recipes. But what if the inputs and outputs also involve damage values or NBT tags?
It is possible to define both damage or an NBT tag as output. Let's take a pickaxe as our toy for this tutorial:
val stick = <minecraft:stick>; val pick = <minecraft:stone_pickaxe>; val damagedPick = pick.withDamage(10);
recipes.addShaped(damagedPick, pick, stick);