• 0

    posted a message on Single Player Commands [V4.9] - Official Download [SPC] [+NoClip]
    Sorry if this has been said before, but copy/pasting different wood plank blocks makes them all Oak planks.
    Otherwise, awesome mod!
    Posted in: Minecraft Mods
  • 0

    posted a message on I don't have a quit button?
    [Oops, double post]
    Posted in: Legacy Support
  • 0

    posted a message on I don't have a quit button?
    Bump?
    Posted in: Legacy Support
  • 0

    posted a message on I don't have a quit button?
    Are you running on a premium account even?

    Yes.
    Posted in: Legacy Support
  • 0

    posted a message on I don't have a quit button?
    Quote from ocomobock

    Try hitting "Force update" on the Minecraft launcher. I haven't seen that Minecraft version anywhere though.


    Quote from KrisKrower

    It's your hacked client.



    Quote from simplyodd24

    are you even running 1.0.0, your version number say 11w49a


    It's not hacked, it's the most recent snapshot.
    Posted in: Legacy Support
  • 0

    posted a message on I don't have a quit button?
    Anyone know why this is?
    Any help at all would be appreciated.
    Posted in: Legacy Support
  • 0

    posted a message on Help me to make stairs with modloader?
    Quote from SpitefulFox

    BlockStair doesn't take a texture ID for its initializer. It should be new BlockStairs(99, blah) where blah is whatever block you want the stairs to be made out of. Like, if you wanted a mob spawner staircase (wtf?) you'd make it = new BlockStairs (99, Block.mobSpawner)

    Thank you.
    Posted in: Mods Discussion
  • 0

    posted a message on Help me to make stairs with modloader?
    So I'm trying to make some custom stairs, and I get this error:

    src\minecraft\net\minecraft\src\mod_MyMod.java:9: cannot find symbol
    symbol  : constructor BlockStairs(int,int)
    location: class net.minecraft.src.BlockStairs
    stairMyStair = new BlockStairs(99, 0).setBlockName("stairMyStair");


    The is the piece of the code that causes the problem:
    public static final Block stairMyStair;
            static
            {
                    stairMyStair = new BlockStairs(99, 0).setBlockName("stairMyStair");
            }


    Where did I mess up?
    Posted in: Mods Discussion
  • 0

    posted a message on Check if player is close to block?
    package net.minecraft.src;
    import java.util.Random;
    
    public class BlockMyBlock extends Block {
    
    protected BlockMyBlock(int i, int j) {
    super(i, j, Material.rock);
    }
    public void updateTick(World world, int i, int j, int k, Random random)
    {
    super.updateTick(world, i, j, k, random);
    System.out.println("running update tick");
       EntityPlayer player = world.getClosestPlayer(i, j, k, 0);
       int range = 5;
       if(player.posX > i - range && player.posX < i + range)
                    {
                            if(player.posY > i - range && player.posY < i + range)
                            {
                                    if(player.posZ > i - range && player.posZ < i + range)
                                    {
                                             System.out.println("Do this");
                                    }
                            }
                    }
    }

    Nope, still nothing.
    Maybe one of you guys could try doing this yourselves? If it's not too much trouble; I just really want to solve this mystery now.
    Posted in: Mods Discussion
  • 0

    posted a message on MineCraft Control Panel - Ideas?
    This sounds amazing. I can't wait!
    Posted in: Mods Discussion
  • 0

    posted a message on Check if player is close to block?
    Also, Ill deal with whether or not to use OR instead of AND later, for now I need to figure out why updateTick isn't running.
    Any ideas?
    Posted in: Mods Discussion
  • 0

    posted a message on Check if player is close to block?
    Nope, updateTick doen't seem to be running. This is what BlockMyBlock looks like:

    package net.minecraft.src;
    import java.util.Random;
    
    public class BlockMyBlock extends Block {
    
    protected BlockMyBlock(int i, int j) {
    super(i, j, Material.rock);
    }
    public void updateTick(World world, int i, int j, int k, Random random)
    {
    System.out.println("running update tick");
       EntityPlayer player = world.getClosestPlayer(i, j, k, 0);
       int range = 5;
       if(player.posX > i - range || player.posX < i + range)
                    {
                            if(player.posY > i - range || player.posY < i + range)
                            {
                                    if(player.posZ > i - range || player.posZ < i + range)
                                    {
                                             System.out.println("Do this");
                                    }
                            }
                    }
    }
    }


    And this is what mod_MyMod looks like:
    package net.minecraft.src;
    import java.util.Random;
    
    public class mod_MyMod extends BaseMod{
    	public static final Block MyBlock = new BlockMyBlock(98, 0) .setHardness(2.0F) .setResistance(10F) .setLightValue(0.9F) .setBlockName("My Block");
    	
    	public mod_MyMod(){
    		ModLoader.RegisterBlock(MyBlock);
    		MyBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/MyBlock.png");
    		ModLoader.AddName(MyBlock, "My Block");
    		ModLoader.AddRecipe(new ItemStack(MyBlock, 10), new Object[] {
                "##", "##", Character.valueOf('#'), Item.stick,
            });
        }
    	public String Version() {
    	return "1.6.6";
    	}
    }
    Posted in: Mods Discussion
  • 0

    posted a message on Check if player is close to block?
    Anyone?
    Posted in: Mods Discussion
  • 0

    posted a message on Check if player is close to block?
    Quote from AbrarSyed

    your iff statements are only going to evaluate for true if the player is simulteously on one side of the black and on the other. use || instead of &&.

    I see what you mean, but I still don't heal when I am around the block.
    package net.minecraft.src;
    import java.util.Random;
    
    public class BlockMyBlock extends Block {
    
    protected BlockMyBlock(int i, int j) {
    super(i, j, Material.rock);
    }
    public void updateTick(World world, int i, int j, int k, Random random)
    {
       EntityPlayer player = world.getClosestPlayer(i, j, k, 0);
       int range = 5;
       if(player.posX > i - range || player.posX < i + range)
                    {
                            if(player.posY > i - range || player.posY < i + range)
                            {
                                    if(player.posZ > i - range || player.posZ < i + range)
                                    {
                                             player.heal(1);
                                    }
                            }
                    }
    }
    }


    Thank you for your patience with me, I truly appreciate it.
    Posted in: Mods Discussion
  • 0

    posted a message on Check if player is close to block?
    Quote from AbrarSyed

    exactly... NOTHING goes in your mod file.

    it should work perfectly.


    Alright, It recompiled without a problem:
    package net.minecraft.src;
    import java.util.Random;
    
    public class BlockMyBlock extends Block {
    
    protected BlockMyBlock(int i, int j) {
    super(i, j, Material.rock);
    }
    public void updateTick(World world, int i, int j, int k, Random random)
    {
       EntityPlayer player = world.getClosestPlayer(i, j, k, 0);
       int range = 5;
       if(player.posX > i - range && player.posX < i + range)
                    {
                            if(player.posY > i - range && player.posY < i + range)
                            {
                                    if(player.posZ > i - range && player.posZ < i + range)
                                    {
                                             player.heal(1);
                                    }
                            }
                    }
    }
    }


    ...But I don't gain health when I am around the block. What am I doing wrong?
    Posted in: Mods Discussion
  • To post a comment, please .