Tutorial:Advanced Recipes

From MineTweaker 3
Revision as of 22: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...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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);