mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-26 05:08:34 +01:00
recipe for ancient sapling
This commit is contained in:
parent
663bff02f4
commit
fae8a72892
2 changed files with 11 additions and 1 deletions
|
@ -4,8 +4,10 @@ import de.ellpeck.naturesaura.Helper;
|
||||||
import de.ellpeck.naturesaura.blocks.tiles.TileEntityWoodStand;
|
import de.ellpeck.naturesaura.blocks.tiles.TileEntityWoodStand;
|
||||||
import net.minecraft.client.renderer.GlStateManager;
|
import net.minecraft.client.renderer.GlStateManager;
|
||||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||||
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemBlock;
|
import net.minecraft.item.ItemBlock;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.util.BlockRenderLayer;
|
||||||
|
|
||||||
public class RenderWoodStand extends TileEntitySpecialRenderer<TileEntityWoodStand> {
|
public class RenderWoodStand extends TileEntitySpecialRenderer<TileEntityWoodStand> {
|
||||||
@Override
|
@Override
|
||||||
|
@ -13,7 +15,8 @@ public class RenderWoodStand extends TileEntitySpecialRenderer<TileEntityWoodSta
|
||||||
ItemStack stack = tile.items.getStackInSlot(0);
|
ItemStack stack = tile.items.getStackInSlot(0);
|
||||||
if (!stack.isEmpty()) {
|
if (!stack.isEmpty()) {
|
||||||
GlStateManager.pushMatrix();
|
GlStateManager.pushMatrix();
|
||||||
if (stack.getItem() instanceof ItemBlock) {
|
Item item = stack.getItem();
|
||||||
|
if (item instanceof ItemBlock && ((ItemBlock) item).getBlock().getRenderLayer() == BlockRenderLayer.SOLID) {
|
||||||
GlStateManager.translate(x + 0.5F, y + 0.9735F, z + 0.5F);
|
GlStateManager.translate(x + 0.5F, y + 0.9735F, z + 0.5F);
|
||||||
float scale = 0.65F;
|
float scale = 0.65F;
|
||||||
GlStateManager.scale(scale, scale, scale);
|
GlStateManager.scale(scale, scale, scale);
|
||||||
|
|
|
@ -20,6 +20,13 @@ public final class ModRecipes {
|
||||||
new ItemStack(Blocks.STONE),
|
new ItemStack(Blocks.STONE),
|
||||||
new ItemStack(ModItems.GOLD_LEAF),
|
new ItemStack(ModItems.GOLD_LEAF),
|
||||||
new ItemStack(Items.DIAMOND)).add();
|
new ItemStack(Items.DIAMOND)).add();
|
||||||
|
new TreeRitualRecipe(new ItemStack(Blocks.SAPLING), new ItemStack(ModBlocks.ANCIENT_SAPLING), 200,
|
||||||
|
new ItemStack(Blocks.SAPLING),
|
||||||
|
new ItemStack(Blocks.YELLOW_FLOWER),
|
||||||
|
new ItemStack(Blocks.RED_FLOWER),
|
||||||
|
new ItemStack(Items.WHEAT_SEEDS),
|
||||||
|
new ItemStack(Items.REEDS),
|
||||||
|
new ItemStack(ModItems.GOLD_LEAF)).add();
|
||||||
|
|
||||||
new AltarRecipe(new ItemStack(Items.IRON_INGOT), new ItemStack(ModItems.INFUSED_IRON), 200, 30).add();
|
new AltarRecipe(new ItemStack(Items.IRON_INGOT), new ItemStack(ModItems.INFUSED_IRON), 200, 30).add();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue