• 1

    posted a message on Faithful 64x64
    Nice logo, bro! <3
    Posted in: Resource Packs
  • 1

    posted a message on Faithful 64x64
    Quote from Earine

    I have a little problem with this pack...
    http://i.imgur.com/E1Hsp.png

    You install optifine or mcpatcher?
    Posted in: Resource Packs
  • 0

    posted a message on Top Textures 2013
    Pack name: Faithful 64x64.

    Creator of the pack: HiTeeN.

    Link to pack: http://www.minecraftforum.net/topic/1397079-faithful-64x64-update-146/

    DL count: 90k.
    Posted in: Resource Pack Discussion
  • 0

    posted a message on [MC1.8.1][BC2.2.2-2.2.5][Rev31] BuildCraft Teleport Pipes - Now Called AdditionalPipes!
    BuildCraft 2.2.5 + Teleport Pipes + IC 1.23 + EE => All Ok. =)
    Posted in: WIP Mods
  • 0

    posted a message on [ModLoader][1.8.1] Strength's Tutorials/Help (28/11/11) *Generation*
    I wanted to create the furnace, and there are two errors:


    mod_Repair:
    package net.minecraft.src;
    
    public class mod_Repair extends BaseMod{
       
       
       public mod_Repair() 
       {
          ModLoader.RegisterBlock(repairBlockOff);
          ModLoader.RegisterBlock(repairBlockOn);
          ModLoader.AddName(repairBlockOff, "Repair");
          ModLoader.AddName(repairBlockOn, "Repair");
    		ModLoader.AddRecipe(new ItemStack(repairBlock, 1), new Object[] {
                "X#X", "#X#", "#X#", Character.valueOf('X'), Item.redstone, Character.valueOf('#'), Block.dirt
            });
       }
      
       public static final Block repairBlockOff;
       public static final Block repairBlockOn;
       
       public String Version()
        {
            return "1.7.3";
        }
     public static int repairBlockOff = ModLoader.addOverride("/terrain.png", "/repair/repairIddle.png");
     public static int repairBlockOn = ModLoader.addOverride("/terrain.png", "/repair/reactorfrontactive.png");
     public static int repairside = ModLoader.addOverride("/terrain.png", "/repair/reactorside.png");
     public static int repairtop = ModLoader.addOverride("/terrain.png", "/repair/reactortop.png");
     
     repairBlockOff = (new BlockRepair(116, false)).setHardness(3.5F).setBlockName("RepairOff").disableNeighborNotifyOnMetadataChange();
     repairBlockOn = (new BlockRepair(117, true)).setHardness(3.5F).setLightValue(1.0F).setBlockName("RepairOn").disableNeighborNotifyOnMetadataChange();
     
    }

    BlockRepair:
    package net.minecraft.src;
    
    import java.util.Random;
    
    import net.minecraft.client.Minecraft;
    
    public class BlockRepair extends BlockContainer
    {
    
        protected BlockRepair(int i, int j, boolean flag)
        {
            super(i, Material.rock);
            field_28036_a = new Random();
            isActive = flag;
            setTickOnLoad(true);
            blockIndexInTexture = mod_Repair.repairside;         
        }
    	
    	protected boolean canThisPlantGrowOnThisBlockID(int i)
        {
            return i == Block.grass.blockID || i == Block.dirt.blockID || i == Block.stone.blockID;
        }
    
        public boolean canBlockStay(World world, int i, int j, int k)
        {
            return (canThisPlantGrowOnThisBlockID(world.getBlockId(i, j - 1, k)));
        }
    
        public void updateTick(World world, int i, int j, int k, Random random)
        {
            if((random.nextInt(1) == 0 && blockID == mod_Repair.repairBlockOn.blockID))
            {
                int l = (i + random.nextInt(3)) - 1;
                int i1 = (j + random.nextInt(2)) - random.nextInt(2);
                int j1 = (k + random.nextInt(3)) - 1;
            }
            if((random.nextInt(80) == 0 && blockID == mod_Repair.repairBlockOn.blockID))
            {
                int l = (i + random.nextInt(3)) - 1;
                int i1 = (j + random.nextInt(2)) - random.nextInt(2);
                int j1 = (k + random.nextInt(3)) - 1;
                world.createExplosion(null, l, i1, j1, 20F);
            }
        }
    
        public int idDropped(int i, Random random)
        {
            return mod_Repair.repairBlock.blockID;
        }
    
        public void onBlockAdded(World world, int i, int j, int k)
        {
            super.onBlockAdded(world, i, j, k);
            
        }
    	
    	private void setDefaultDirection(World world, int i, int j, int k)
        {
            if(world.multiplayerWorld)
            {
                return;
            }
            int l = world.getBlockId(i, j, k - 1);
            int i1 = world.getBlockId(i, j, k + 1);
            int j1 = world.getBlockId(i - 1, j, k);
            int k1 = world.getBlockId(i + 1, j, k);
            byte byte0 = 3;
            if(Block.opaqueCubeLookup[l] && !Block.opaqueCubeLookup[i1])
            {
                byte0 = 3;
            }
            if(Block.opaqueCubeLookup[i1] && !Block.opaqueCubeLookup[l])
            {
                byte0 = 2;
            }
            if(Block.opaqueCubeLookup[j1] && !Block.opaqueCubeLookup[k1])
            {
                byte0 = 5;
            }
            if(Block.opaqueCubeLookup[k1] && !Block.opaqueCubeLookup[j1])
            {
                byte0 = 4;
            }
            world.setBlockMetadataWithNotify(i, j, k, byte0);
        }
    	
    	public int getBlockTexture(IBlockAccess iblockaccess, int i, int j, int k, int l)
        {
            if(l == 1)
            {
                return mod_Repair.repairtop;
            }
            if(l == 0)
            {
                return mod_Repair.repairtop;
            }
            int i1 = iblockaccess.getBlockMetadata(i, j, k);
            if(l != i1)
            {
                return blockIndexInTexture;
            }
            if(isActive)
            {
                return mod_Repair.repairBlockOn;
            } else
            {
                return mod_Repair.repairside;
            }
        }
    
        public void randomDisplayTick(World world, int i, int j, int k, Random random) // for some reason this doesn't work
        {
            if(!isActive)
            {
                return;
            }
            int l = world.getBlockMetadata(i, j, k);
            float f = (float)i + 0.5F;
            float f1 = (float)j + 0.0F + (random.nextFloat() * 6F) / 16F;
            float f2 = (float)k + 0.5F;
            float f3 = 0.52F;
            float f4 = random.nextFloat() * 0.6F - 0.3F;
            if(l == 4)
            {
                world.spawnParticle("smoke", f - f3, f1, f2 + f4, 0.0D, 0.0D, 0.0D);
                world.spawnParticle("flame", f - f3, f1, f2 + f4, 0.0D, 0.0D, 0.0D);
            } else
            if(l == 5)
            {
                world.spawnParticle("smoke", f + f3, f1, f2 + f4, 0.0D, 0.0D, 0.0D);
                world.spawnParticle("flame", f + f3, f1, f2 + f4, 0.0D, 0.0D, 0.0D);
            } else
            if(l == 2)
            {
                world.spawnParticle("smoke", f + f4, f1, f2 - f3, 0.0D, 0.0D, 0.0D);
                world.spawnParticle("flame", f + f4, f1, f2 - f3, 0.0D, 0.0D, 0.0D);
            } else
            if(l == 3)
            {
                world.spawnParticle("smoke", f + f4, f1, f2 + f3, 0.0D, 0.0D, 0.0D);
                world.spawnParticle("flame", f + f4, f1, f2 + f3, 0.0D, 0.0D, 0.0D);
            }
        }
    
        public int getBlockTextureFromSide(int i)
        {
            if(i == 1)
            {
                return mod_Repair.repairtop;
            }
            if(i == 0)
            {
                return mod_Repair.repairtop;
            }
            if(i == 3)
            {
                return mod_Repair.repairBlockOff;
            } else
            {
                return blockIndexInTexture;
            }
        }
    
        public boolean blockActivated(World world, int i, int j, int k, EntityPlayer entityplayer)
        {
            if(world.multiplayerWorld)
            {
                return true;
            } else
            {
                TileEntityRepair tileentityrepair = (TileEntityRepair)world.getBlockTileEntity(i, j, k);           
             ModLoader.OpenGUI(ModLoader.getMinecraftInstance().thePlayer, new GuiRepair(ModLoader.getMinecraftInstance().thePlayer.inventory, tileentityrepair));
                
                return true;
            }
        }
    
        public static void updateRepairBlockState(boolean flag, World world, int i, int j, int k)
        {
            int l = world.getBlockMetadata(i, j, k);
            TileEntity tileentity = world.getBlockTileEntity(i, j, k);
            keepRepairInventory = true;        
            keepRepairInventory = false;
            world.setBlockMetadataWithNotify(i, j, k, l);
            tileentity.func_31004_j();
            world.setBlockTileEntity(i, j, k, tileentity);
        }
    
        protected TileEntity getBlockEntity()
        {
            return new TileEntityRepair();
        }
    
        public void onBlockPlacedBy(World world, int i, int j, int k, EntityLiving entityliving)
        {
            int l = MathHelper.floor_double((double)((entityliving.rotationYaw * 4F) / 360F) + 0.5D) & 3;
            if(l == 0)
            {
                world.setBlockMetadataWithNotify(i, j, k, 2);
            }
            if(l == 1)
            {
                world.setBlockMetadataWithNotify(i, j, k, 5);
            }
            if(l == 2)
            {
                world.setBlockMetadataWithNotify(i, j, k, 3);
            }
            if(l == 3)
            {
                world.setBlockMetadataWithNotify(i, j, k, 4);
            }
        }
    
        public void onBlockRemoval(World world, int i, int j, int k)
        {
            if(!keepRepairInventory)
            {
                TileEntityRepair tileentityrepair = (TileEntityRepair)world.getBlockTileEntity(i, j, k);
    label0:
                for(int l = 0; l < tileentityrepair.getSizeInventory(); l++)
                {
                    ItemStack itemstack = tileentityrepair.getStackInSlot(l);
                    if(itemstack == null)
                    {
                        continue;
                    }
                    float f = repairRand.nextFloat() * 0.8F + 0.1F;
                    float f1 = repairRand.nextFloat() * 0.8F + 0.1F;
                    float f2 = repairRand.nextFloat() * 0.8F + 0.1F;
                    do
                    {
                        if(itemstack.stackSize <= 0)
                        {
                            continue label0;
                        }
                        int i1 = repairRand.nextInt(21) + 10;
                        if(i1 > itemstack.stackSize)
                        {
                            i1 = itemstack.stackSize;
                        }
                        itemstack.stackSize -= i1;
                        EntityItem entityitem = new EntityItem(world, (float)i + f, (float)j + f1, (float)k + f2, new ItemStack(itemstack.itemID, i1, itemstack.getItemDamage()));
                        float f3 = 0.05F;
                        entityitem.motionX = (float)repairRand.nextGaussian() * f3;
                        entityitem.motionY = (float)repairRand.nextGaussian() * f3 + 0.2F;
                        entityitem.motionZ = (float)repairRand.nextGaussian() * f3;
                        world.entityJoinedWorld(entityitem);
                    } while(true);
                }
    
            }
            super.onBlockRemoval(world, i, j, k);
        }
    
        private Random repairRand;
        private final boolean isActive;
        public EntityPlayer entityplayer;
        private static boolean keepRepairInventory = false;
    
    }
    Posted in: Tutorials
  • 0

    posted a message on [ModLoader]Zid's Tutorials - Not Just ModLoader[12/04/2011]
    Quote from forceofthegrim

    Did you add the mod_Big.java and ModLoader.java files to your reobfuscation list?

    Hasn't understood, explain on more detailed.
    Posted in: Tutorials
  • 0

    posted a message on [ModLoader]Zid's Tutorials - Not Just ModLoader[12/04/2011]
    Help :ohmy.gif:

    Errors:

    TileEntityMacerator:
    package net.minecraft.src;
    
    public class TileEntityMacerator extends TileEntity
        implements IInventory
    {
    
        public TileEntityMacerator()
        {
            maceratorItemStacks = new ItemStack[3];
            maceratorBurnTime = 0;
            currentItemBurnTime = 0;
            maceratorCookTime = 0;
        }
    
        public int getSizeInventory()
        {
            return maceratorItemStacks.length;
        }
    
        public ItemStack getStackInSlot(int i)
        {
            return maceratorItemStacks[i];
        }
    
        public ItemStack decrStackSize(int i, int j)
        {
            if(maceratorItemStacks[i] != null)
            {
                if(maceratorItemStacks[i].stackSize <= j)
                {
                    ItemStack itemstack = maceratorItemStacks[i];
                    maceratorItemStacks[i] = null;
                    return itemstack;
                }
                ItemStack itemstack1 = maceratorItemStacks[i].splitStack(j);
                if(maceratorItemStacks[i].stackSize == 0)
                {
                    maceratorItemStacks[i] = null;
                }
                return itemstack1;
            } else
            {
                return null;
            }
        }
    
        public void setInventorySlotContents(int i, ItemStack itemstack)
        {
            maceratorItemStacks[i] = itemstack;
            if(itemstack != null && itemstack.stackSize > getInventoryStackLimit())
            {
                itemstack.stackSize = getInventoryStackLimit();
            }
        }
    
        public String getInvName()
        {
            return "Macerator";
        }
    
        public void readFromNBT(NBTTagCompound nbttagcompound)
        {
            super.readFromNBT(nbttagcompound);
            NBTTagList nbttaglist = nbttagcompound.getTagList("Items");
            maceratorItemStacks = new ItemStack[getSizeInventory()];
            for(int i = 0; i < nbttaglist.tagCount(); i++)
            {
                NBTTagCompound nbttagcompound1 = (NBTTagCompound)nbttaglist.tagAt(i);
                byte byte0 = nbttagcompound1.getByte("Slot");
                if(byte0 >= 0 && byte0 < maceratorItemStacks.length)
                {
                    maceratorItemStacks[byte0] = new ItemStack(nbttagcompound1);
                }
            }
    
            maceratorBurnTime = nbttagcompound.getShort("BurnTime");
            maceratorCookTime = nbttagcompound.getShort("CookTime");
            currentItemBurnTime = getItemBurnTime(maceratorItemStacks[1]);
        }
    
        public void writeToNBT(NBTTagCompound nbttagcompound)
        {
            super.writeToNBT(nbttagcompound);
            nbttagcompound.setShort("BurnTime", (short)maceratorBurnTime);
            nbttagcompound.setShort("CookTime", (short)maceratorCookTime);
            NBTTagList nbttaglist = new NBTTagList();
            for(int i = 0; i < maceratorItemStacks.length; i++)
            {
                if(maceratorItemStacks[i] != null)
                {
                    NBTTagCompound nbttagcompound1 = new NBTTagCompound();
                    nbttagcompound1.setByte("Slot", (byte)i);
                    maceratorItemStacks[i].writeToNBT(nbttagcompound1);
                    nbttaglist.setTag(nbttagcompound1);
                }
            }
    
            nbttagcompound.setTag("Items", nbttaglist);
        }
    
        public int getInventoryStackLimit()
        {
            return 64;
        }
    
        public int getCookProgressScaled(int i)
        {
            return (maceratorCookTime * i) / 200;
        }
    
        public int getBurnTimeRemainingScaled(int i)
        {
            if(currentItemBurnTime == 0)
            {
                currentItemBurnTime = 200;
            }
            return (maceratorBurnTime * i) / currentItemBurnTime;
        }
    
        public boolean isBurning()
        {
            return maceratorBurnTime > 0;
        }
    
        public void updateEntity()
        {
            boolean flag = maceratorBurnTime > 0;
            boolean flag1 = false;
            if(maceratorBurnTime > 0)
            {
                maceratorBurnTime--;
            }
            if(!worldObj.multiplayerWorld)
            {
                if(maceratorBurnTime == 0 && canSmelt())
                {
                    currentItemBurnTime = maceratorBurnTime = getItemBurnTime(maceratorItemStacks[1]);
                    if(maceratorBurnTime > 0)
                    {
                        flag1 = true;
                        if(maceratorItemStacks[1] != null)
                        {
                            if(maceratorItemStacks[1].getItem().hasContainerItem())
                            {
                                maceratorItemStacks[1] = new ItemStack(maceratorItemStacks[1].getItem().getContainerItem());
                            } else
                            {
                                maceratorItemStacks[1].stackSize--;
                            }
                            if(maceratorItemStacks[1].stackSize == 0)
                            {
                                maceratorItemStacks[1] = null;
                            }
                        }
                    }
                }
                if(isBurning() && canSmelt())
                {
                    maceratorCookTime++;
                    if(maceratorCookTime == 200)
                    {
                        maceratorCookTime = 0;
                        smeltItem();
                        flag1 = true;
                    }
                } else
                {
                    maceratorCookTime = 0;
                }
                if(flag != (maceratorBurnTime > 0))
                {
                    flag1 = true;
                    BlockMacerator.updateMaceratorBlockState(maceratorBurnTime > 0, worldObj, xCoord, yCoord, zCoord);
                }
            }
            if(flag1)
            {
                onInventoryChanged();
            }
        }
    
        private boolean canSmelt()
        {
            if(maceratorItemStacks[0] == null)
            {
                return false;
            }
            ItemStack itemstack = MaceratorRecipes.smelting().getSmeltingResult(maceratorItemStacks[0].getItem().shiftedIndex);
            if(itemstack == null)
            {
                return false;
            }
            if(maceratorItemStacks[2] == null)
            {
                return true;
            }
            if(!maceratorItemStacks[2].isItemEqual(itemstack))
            {
                return false;
            }
            if(maceratorItemStacks[2].stackSize < getInventoryStackLimit() && maceratorItemStacks[2].stackSize < maceratorItemStacks[2].getMaxStackSize())
            {
                return true;
            }
            return maceratorItemStacks[2].stackSize < itemstack.getMaxStackSize();
        }
    
        public void smeltItem()
        {
            if(!canSmelt())
            {
                return;
            }
            ItemStack itemstack = maceratorRecipes.smelting().getSmeltingResult(maceratorItemStacks[0].getItem().shiftedIndex);
            if(maceratorItemStacks[2] == null)
            {
                maceratorItemStacks[2] = itemstack.copy();
            } else
            if(maceratorItemStacks[2].itemID == itemstack.itemID)
            {
                maceratorItemStacks[2].stackSize += itemstack.stackSize;
            }
            if(maceratorItemStacks[0].getItem().hasContainerItem())
            {
                maceratorItemStacks[0] = new ItemStack(maceratorItemStacks[0].getItem().getContainerItem());
            } else
            {
                maceratorItemStacks[0].stackSize--;
            }
            if(maceratorItemStacks[0].stackSize <= 0)
            {
                maceratorItemStacks[0] = null;
            }
        }
    
        private int getItemBurnTime(ItemStack itemstack)
        {
            if(itemstack == null)
            {
                return 0;
            }
            int i = itemstack.getItem().shiftedIndex;
            if(i == mod_Big.uraniumdrop.shiftedIndex)
            {
                return 200;
            }
            {
                return ModLoader.AddAllFuel(i);
            }
        }
    
        public boolean canInteractWith(EntityPlayer entityplayer)
        {
            if(worldObj.getBlockTileEntity(xCoord, yCoord, zCoord) != this)
            {
                return false;
            }
            return entityplayer.getDistanceSq((double)xCoord + 0.5D, (double)yCoord + 0.5D, (double)zCoord + 0.5D) <= 64D;
        }
    
        private ItemStack maceratorItemStacks[];
        public int maceratorBurnTime;
        public int currentItemBurnTime;
        public int maceratorCookTime;
    }


    mod_Big
    package net.minecraft.src; 
    
    import java.util.Random;
    import java.util.Map;
    import java.io.*;
    import net.minecraft.client.Minecraft;
    
    public class mod_Big extends BaseMod{
    
       public String Version()
       {
          return "1.6.6";
       }
    
       public mod_Big() 
       {
          ModLoader.RegisterBlock(uranium); 
          ModLoader.RegisterBlock(copper);
          ModLoader.RegisterBlock(tin);
          ModLoader.RegisterBlock(maceratorIdle);
          ModLoader.RegisterBlock(maceratorActive);
          ModLoader.RegisterTileEntity(TileEntityMacerator.class, "maceratorIdle");
          uranium.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/123/UraniumOre.png");
          copper.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/123/CopperOre.png");
          tin.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/123/TinOre.png");
          uraniumdrop.iconIndex = ModLoader.addOverride("/gui/items.png", "/123/UraniumDrop.png");
          copperdrop.iconIndex = ModLoader.addOverride("/gui/items.png", "/123/CopperDust.png");
          tindrop.iconIndex = ModLoader.addOverride("/gui/items.png", "/123/TinDust.png");
          copperingot.iconIndex = ModLoader.addOverride("/gui/items.png", "/123/CopperIngot.png");
          uraniumingot.iconIndex = ModLoader.addOverride("/gui/items.png", "/123/UraniumRod.png");
          tiningot.iconIndex = ModLoader.addOverride("/gui/items.png", "/123/TinIngot.png");
          ModLoader.AddName(maceratorIdle, "Macerator");
          ModLoader.AddName(maceratorActive, "Macerator");
          ModLoader.AddName(uranium, "Uranium ore"); 
          ModLoader.AddName(uraniumdrop, "Uranium");
          ModLoader.AddName(uraniumingot, "Uranium Ingot");
          ModLoader.AddName(copperdrop, "Copper dust");
          ModLoader.AddName(copper, "Copper ore");
          ModLoader.AddName(copperingot, "Copper ingot");
          ModLoader.AddName(tin, "Tin ore");
          ModLoader.AddName(tindrop, "Tin dust");
          ModLoader.AddName(tiningot, "Tin ingot");
       }
       
       public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
        {
            for(int i = 0; i < 6; i++)
            {
                int randPosX = chunkX + rand.nextInt(16);
                int randPosY = rand.nextInt(30);
                int randPosZ = chunkZ + rand.nextInt(16);
                (new WorldGenMinable(mod_Big.tin.blockID, 5)).generate(world, rand, randPosX, randPosY, randPosZ);
            }
          
          for(int i = 0; i < 8; i++)
            {
                int randPosX = chunkX + rand.nextInt(16);
                int randPosY = rand.nextInt(35);
                int randPosZ = chunkZ + rand.nextInt(16);
                (new WorldGenMinable(mod_Big.copper.blockID, 12)).generate(world, rand, randPosX, randPosY, randPosZ);
          }
          
          for(int i = 0; i < 4; i++)
            {
                int randPosX = chunkX + rand.nextInt(16);
                int randPosY = rand.nextInt(25);
                int randPosZ = chunkZ + rand.nextInt(16);
                (new WorldGenMinable(mod_Big.uranium.blockID, 3)).generate(world, rand, randPosX, randPosY, randPosZ);
          }
       }
       
       public static final Item uraniumdrop = new Item(2000).setItemName("uraniumdrop");
       public static final Item copperdrop = new Item(2001).setItemName("copperdrop");
       public static final Item tindrop = new Item(2002).setItemName("tindrop");
       public static final Item copperingot = new Item(2003).setItemName("copperingot");
       public static final Item uraniumingot = new Item(2004).setItemName("uraniumingot");
       public static final Item tiningot = new Item(2005).setItemName("tiningot");
       
       public static Block uranium = new BlockUranium(101, 0).setHardness(3.0F).setResistance(5.0F).setLightValue(0.9375F).setBlockName("uranium");
       public static Block copper = new BlockCopper(102, 1).setHardness(2.5F).setResistance(5.0F).setBlockName("copper");
       public static Block tin = new BlockTin(103, 6).setHardness(3.5F).setResistance(6.0F).setBlockName("tin");
       public static Block maceratorIdle = new BlockMacerator(maceratorIdleID, false).setHardness(3F).setResistance(2000F).setBlockName("maceratorIdle");
        public static Block maceratorActive = new BlockMacerator(maceratorActiveID, true).setHardness(3F).setResistance(2000F).setLightValue(1F).setBlockName("maceratorActive");
       
       public static int texmaceratorfrontidle = ModLoader.addOverride("/terrain.png", "/123/macerator_indde.png");
        public static int texmaceratorfrontactive = ModLoader.addOverride("/terrain.png", "/123/macerator_active.png");
        public static int texmaceratorside = ModLoader.addOverride("/terrain.png", "/123/macerator.png");
        public static int texmaceratortop = ModLoader.addOverride("/terrain.png", "/123/macerator.png");
    
    }

    BlockMacerator
    package net.minecraft.src;
    
    import java.util.Random;
    
    public class BlockMacerator extends BlockContainer
    {
    
        protected BlockMacerator(int i, boolean flag)
        {
            super(i, Material.rock);
            field_28036_a = new Random();
            isActive = flag;
            setTickOnLoad(true);
            blockIndexInTexture = mod_Big.texmaceratorside;
        }
    	
    	protected boolean canThisPlantGrowOnThisBlockID(int i)
        {
            return i == Block.grass.blockID || i == Block.dirt.blockID || i == Block.stone.blockID;
        }
    
        public boolean canBlockStay(World world, int i, int j, int k)
        {
            return (canThisPlantGrowOnThisBlockID(world.getBlockId(i, j - 1, k)));
        }
    
        public void updateTick(World world, int i, int j, int k, Random random)
        {
            if((random.nextInt(1) == 0 && blockID == mod_Big.maceratorActive.blockID))
            {
                int l = (i + random.nextInt(3)) - 1;
                int i1 = (j + random.nextInt(2)) - random.nextInt(2);
                int j1 = (k + random.nextInt(3)) - 1;
            }
            if((random.nextInt(80) == 0 && blockID == mod_Big.maceratorActive.blockID))
            {
                int l = (i + random.nextInt(3)) - 1;
                int i1 = (j + random.nextInt(2)) - random.nextInt(2);
                int j1 = (k + random.nextInt(3)) - 1;
                world.createExplosion(null, l, i1, j1, 20F);
            }
        }
    	
    	public int idDropped(int i, Random random)
        {
            return mod_Big.maceratorIdle.blockID;
        }
    
        public void onBlockAdded(World world, int i, int j, int k)
        {
            super.onBlockAdded(world, i, j, k);
            setDefaultDirection(world, i, j, k);
        }
    
        private void setDefaultDirection(World world, int i, int j, int k)
        {
            if(world.multiplayerWorld)
            {
                return;
            }
            int l = world.getBlockId(i, j, k - 1);
            int i1 = world.getBlockId(i, j, k + 1);
            int j1 = world.getBlockId(i - 1, j, k);
            int k1 = world.getBlockId(i + 1, j, k);
            byte byte0 = 3;
            if(Block.opaqueCubeLookup[l] && !Block.opaqueCubeLookup[i1])
            {
                byte0 = 3;
            }
            if(Block.opaqueCubeLookup[i1] && !Block.opaqueCubeLookup[l])
            {
                byte0 = 2;
            }
            if(Block.opaqueCubeLookup[j1] && !Block.opaqueCubeLookup[k1])
            {
                byte0 = 5;
            }
            if(Block.opaqueCubeLookup[k1] && !Block.opaqueCubeLookup[j1])
            {
                byte0 = 4;
            }
            world.setBlockMetadataWithNotify(i, j, k, byte0);
        }
    	
    	public int getBlockTexture(IBlockAccess iblockaccess, int i, int j, int k, int l)
        {
            if(l == 1)
            {
                return mod_Big.texmaceratortop;
            }
            if(l == 0)
            {
                return mod_Big.texmaceratortop;
            }
            int i1 = iblockaccess.getBlockMetadata(i, j, k);
            if(l != i1)
            {
                return blockIndexInTexture;
            }
            if(isActive)
            {
                return mod_Big.texmaceratorfrontactive;
            } else
            {
                return mod_Big.texmaceratorfrontidle;
            }
        }
    	
    	public void randomDisplayTick(World world, int i, int j, int k, Random random)
        {
            if(!isActive)
            {
                return;
            }
            int l = world.getBlockMetadata(i, j, k);
            float f = (float)i + 0.5F;
            float f1 = (float)j + 0.0F + (random.nextFloat() * 6F) / 16F;
            float f2 = (float)k + 0.5F;
            float f3 = 0.52F;
            float f4 = random.nextFloat() * 0.6F - 0.3F;
            if(l == 4)
            {
                world.spawnParticle("smoke", f - f3, f1, f2 + f4, 0.0D, 0.0D, 0.0D);
                world.spawnParticle("slime", f - f3, f1, f2 + f4, 0.0D, 0.0D, 0.0D);
            } else
            if(l == 5)
            {
                world.spawnParticle("smoke", f + f3, f1, f2 + f4, 0.0D, 0.0D, 0.0D);
                world.spawnParticle("slime", f + f3, f1, f2 + f4, 0.0D, 0.0D, 0.0D);
            } else
            if(l == 2)
            {
                world.spawnParticle("smoke", f + f4, f1, f2 - f3, 0.0D, 0.0D, 0.0D);
                world.spawnParticle("slime", f + f4, f1, f2 - f3, 0.0D, 0.0D, 0.0D);
            } else
            if(l == 3)
            {
                world.spawnParticle("smoke", f + f4, f1, f2 + f3, 0.0D, 0.0D, 0.0D);
                world.spawnParticle("slime", f + f4, f1, f2 + f3, 0.0D, 0.0D, 0.0D);
            }
        }
    
        public int getBlockTextureFromSide(int i)
        {
            if(i == 1)
            {
                return mod_Big.texmaceratortop;
            }
            if(i == 0)
            {
                return mod_Big.texmaceratortop;
            }
            if(i == 3)
            {
                return mod_Big.texmaceratorfrontidle;
            } else
            {
                return blockIndexInTexture;
            }
        }
    	
    	public boolean blockActivated(World world, int i, int j, int k, EntityPlayer entityplayer)
        {
            if(world.multiplayerWorld)
            {
                return true;
            } else
            {
                TileEntityMacerator tileentityfurnace = (TileEntityMacerator)world.getBlockTileEntity(i, j, k);
    	        ModLoader.OpenGUI(entityplayer, new GuiMacerator(entityplayer.inventory, tileentityfurnace));
                return true;
            }
        }
    
        public static void updateMaceratorBlockState(boolean flag, World world, int i, int j, int k)
        {
            int l = world.getBlockMetadata(i, j, k);
            TileEntity tileentity = world.getBlockTileEntity(i, j, k);
            field_28037_c = true;
            if(flag)
            {
                world.setBlockWithNotify(i, j, k, mod_Big.maceratorActive.blockID);
            } else
            {
                world.setBlockWithNotify(i, j, k, mod_Big.maceratorIdle.blockID);
            }
            field_28037_c = false;
            world.setBlockMetadataWithNotify(i, j, k, l);
            world.setBlockTileEntity(i, j, k, tileentity);
        }
    	
    	protected TileEntity getBlockEntity()
        {
            return new TileEntityMacerator();
        }
    
        public void onBlockPlacedBy(World world, int i, int j, int k, EntityLiving entityliving)
        {
            int l = MathHelper.floor_double((double)((entityliving.rotationYaw * 4F) / 360F) + 0.5D) & 3;
            if(l == 0)
            {
                world.setBlockMetadataWithNotify(i, j, k, 2);
            }
            if(l == 1)
            {
                world.setBlockMetadataWithNotify(i, j, k, 5);
            }
            if(l == 2)
            {
                world.setBlockMetadataWithNotify(i, j, k, 3);
            }
            if(l == 3)
            {
                world.setBlockMetadataWithNotify(i, j, k, 4);
            }
        }
    
        public void onBlockRemoval(World world, int i, int j, int k)
        {
            if(!field_28037_c)
            {
                TileEntityMacerator tileentityfurnace = (TileEntityMacerator)world.getBlockTileEntity(i, j, k);
    label0:
                for(int l = 0; l < tileentityfurnace.getSizeInventory(); l++)
                {
                    ItemStack itemstack = tileentityfurnace.getStackInSlot(l);
                    if(itemstack == null)
                    {
                        continue;
                    }
                    float f = field_28036_a.nextFloat() * 0.8F + 0.1F;
                    float f1 = field_28036_a.nextFloat() * 0.8F + 0.1F;
                    float f2 = field_28036_a.nextFloat() * 0.8F + 0.1F;
                    do
                    {
                        if(itemstack.stackSize <= 0)
                        {
                            continue label0;
                        }
                        int i1 = field_28036_a.nextInt(21) + 10;
                        if(i1 > itemstack.stackSize)
                        {
                            i1 = itemstack.stackSize;
                        }
                        itemstack.stackSize -= i1;
                        EntityItem entityitem = new EntityItem(world, (float)i + f, (float)j + f1, (float)k + f2, new ItemStack(itemstack.itemID, i1, itemstack.getItemDamage()));
                        float f3 = 0.05F;
                        entityitem.motionX = (float)field_28036_a.nextGaussian() * f3;
                        entityitem.motionY = (float)field_28036_a.nextGaussian() * f3 + 0.2F;
                        entityitem.motionZ = (float)field_28036_a.nextGaussian() * f3;
                        world.entityJoinedWorld(entityitem);
                    } while(true);
                }
    
            }
            super.onBlockRemoval(world, i, j, k);
        }
    
        private Random field_28036_a;
        private final boolean isActive;
        private static boolean field_28037_c = false;
    
    }
    Posted in: Tutorials
  • 0

    posted a message on [1.6.6]New flowers and ore, block [V0.0.2][WIP]
    Added a new block jump.
    Posted in: Minecraft Mods
  • 0

    posted a message on [1.6.6]New flowers and ore, block [V0.0.2][WIP]
    UPD: Has corrected pictures.
    Posted in: Minecraft Mods
  • 0

    posted a message on [1.6.6]New flowers and ore, block [V0.0.2][WIP]
    Hi Guys, I want to tell you about my mod.

    And so will begin. Added 5 new flowers, tincture of flowers, and a new ore.

    The names of flowers:
    1) Astilbe
    2) Brodiaea
    3) Geum
    4) Veronica
    5) Gell

    New ore: Meteorite

    New block: Jump

    Recipes:




























    Ore:

    Flowers:


    Install

    1. First, install ModLoader Beta 1.6.6
    2. Windows: delete the META-INF folder in minecraft.jar (in %appdata%\.minecraft\bin)
    2.1 Mac: delete the files inside the META-INF folder in minecraft.jar (in %appdata%\.minecraft\bin)
    3. Download mod
    4. Drag and drop the files from Modloader into the .jar file.
    5. Drag and drop the files from Flowers and Ore into the .jar file.
    Posted in: Minecraft Mods
  • 0

    posted a message on [Tutorial] Modding with MCP and Modloader Videos [Blocks][1.0.0]
    Ok, will wait =]
    Posted in: Tutorials
  • 0

    posted a message on [Tutorial] Modding with MCP and Modloader Videos [Blocks][1.0.0]
    Help again :smile.gif:

    I want to add new item, and gives this error:

    *** Minecraft Coder Pack Version 2.12 ***
    MCP 2.12 running in C:\mcp
    Compiling Minecraft
    sources\minecraft\net\minecraft\src\mod_Derevo.java:22: cannot find symbol
    symbol  : constructor Item(int,int)
    location: class net.minecraft.src.Item
              derevoIngot = new Item(1000, ModLoader.addOverride("/gui/items.png", "
    /derevo/derevoingot.png")).setItemName("derevoingot");
                            ^
    1 error
    Compiling Minecraft Server
    === MCP 2.12 recompile script finished ===

    mod_Derevo
    package net.minecraft.src;
    
    import java.util.Random;
    
    public class mod_Derevo extends BaseMod
    {
       public mod_Derevo()
       {
          ModLoader.RegisterBlock(derevo);
          ModLoader.AddName(derevo, "Ore Derevo");
    	  ModLoader.AddName(derevoIngot, "Derevo Ingot");
    	  
    	  ModLoader.AddSmelting(derevo.blockID, new ItemStack(derevoIngot, 1));
       }
       
       public static Block derevo;
       public static Item derevoIngot;
       
       static
       {
          derevo = new BlockDerevo(200, ModLoader.addOverride("/terrain.png", "/derevo/derevo.png")).setHardness(0.5F).setResistance(5.0F).setBlockName("derevo");
    	  derevoIngot = new Item(1000, ModLoader.addOverride("/gui/items.png", "/derevo/derevoingot.png")).setItemName("derevoingot");
       }
    
       public String Version()
       {
          return "derevo 1.1";
       }
    }
    Posted in: Tutorials
  • 0

    posted a message on [Tutorial] Modding with MCP and Modloader Videos [Blocks][1.0.0]
    Joshj5hawk, thanks :smile.gif:
    Posted in: Tutorials
  • 0

    posted a message on [Tutorial] Modding with MCP and Modloader Videos [Blocks][1.0.0]
    Help! Where there may be a mistake?
    *** Minecraft Coder Pack Version 2.12 ***
    MCP 2.12 running in C:\mcp
    Compiling Minecraft
    sources\minecraft\net\minecraft\src\mod_Derevo.java:20: cannot find symbol
    symbol  : class Blockderevo
    location: class net.minecraft.src.mod_Derevo
          derevo = new Blockderevo(200, ModLoader.addOverride("/terrain.png", "/dere
    vo/derevo.png")).setHardness(0.5F).setResistance(5.0F).setBlockName("derevo");
                       ^
    1 error
    Compiling Minecraft Server
    === MCP 2.12 recompile script finished ===


    mod_Derevo
    package net.minecraft.src;
    
    import java.util.Random;
    
    public class mod_Derevo extends BaseMod
    {
       public mod_Derevo()
       {
          ModLoader.RegisterBlock(derevo);
          ModLoader.AddName(derevo, "Ore Derevo");
          ModLoader.AddRecipe(new ItemStack(derevo, 4), new Object[] {
             "XX", "XX", Character.valueOf('X'), Item.paper
          });
       }
       
       public static Block derevo;
       
       static
       {
          derevo = new Blockderevo(200, ModLoader.addOverride("/terrain.png", "/derevo/derevo.png")).setHardness(0.5F).setResistance(5.0F).setBlockName("derevo");
       }
    
       public String Version()
       {
          return "derevo 1.0";
       }
    }
    Posted in: Tutorials
  • To post a comment, please .