Recipes are now added to the recipe book when a tree tap is used.
This commit is contained in:
parent
5536a6cd94
commit
aa615f86bd
23 changed files with 124 additions and 36 deletions
|
@ -26,6 +26,7 @@ package techreborn.items.tools;
|
|||
|
||||
import net.minecraft.item.ItemSpade;
|
||||
import techreborn.client.TechRebornCreativeTabMisc;
|
||||
import techreborn.events.TRRecipeHandler;
|
||||
|
||||
public class ItemTRSpade extends ItemSpade {
|
||||
private ToolMaterial material = ToolMaterial.WOOD;
|
||||
|
@ -35,5 +36,6 @@ public class ItemTRSpade extends ItemSpade {
|
|||
setUnlocalizedName(material.name().toLowerCase() + "Spade");
|
||||
setCreativeTab(TechRebornCreativeTabMisc.instance);
|
||||
this.material = material;
|
||||
TRRecipeHandler.hideEntry(this);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue