• 2

    posted a message on [May 23, 2012][ModLoader]Muserae's Modding Tutorials
    Item Return in Recipes

    This will make so when you use a specific item/block in a crafting recipe, that item won't be used. An example would be a bucket of milk in a cake, you get the buckets back.

    In your mod_Whatever, you want to go to the static section, and add this:
    .setContainerItem(whateverItem)

    whateverItem in the ( ) is what item will be returned when it's used in a recipe.
    You can replace this with Item.stick, Block.dirt, whatever you want.

    so it'll look like this:
         whateverItem = new ItemWhatever(500).setContainerItem(whateverItem).setItemName("whatever");
    Posted in: Tutorials
  • 2

    posted a message on [May 23, 2012][ModLoader]Muserae's Modding Tutorials
    Multi-Textured Block

    Kinda easy, kinda confusing, but it's not too bad.

    Add this to your BlockWhatever

        public int getBlockTextureFromSide(int x)
        {
        	if(x == 0)
        	{
        		return mod_Whatever.blockBottom;
        	}
        	if(x == 1)
        	{
        		return mod_Whatever.blockTop;
        	}
        	if(x == 3)
        	{
        		return mod_Whatever.blockSide;
        	}else
        		
        		return blockIndexInTexture;
        }


    And this is what the mod_Whatever should look like

    //Coded by Whoever
    package net.minecraft.src;
    import java.util.Random;
    
    public class mod_Block extends BaseMod{
    	
        public mod_Block()
        {
                //TODO List
                addNames();
                setTextures();
                registerBlocks();
        }
    
        public void addNames()
        {
        	ModLoader.AddName(block, "Block");
        }
    
        public void setTextures()
        {
            block.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Folder/block.png");
            blockSide = ModLoader.addOverride("/terrain.png", "/Folder/blockSide.png");
            blockTop = ModLoader.addOverride("/terrain.png", "/Folder/blockTop.png");
            blockBottom = ModLoader.addOverride("/terrain.png", "/Folder/blockBottom.png");
        }
    
        public void registerBlocks()
        {
            ModLoader.RegisterBlock(block);
        }
    
        public static Block block = new BlockWhatever(200, 0, Material.iron).setBlockName("block");
        public static int blockSide;
        public static int blockTop;
        public static int blockBottom;
    
    	public String getVersion()
    	{
    		return "Blahhhhhhh";
    	}
    
    	public void load()
    	{
    	}
    }


    block and blockSide texture can be the same, but if you want it like a furnace, change the "block" texture. "block" acts as the front, while "blockSide" is every other side. If you want all sides the same, you still need to have "block", just copy and paste the texture with a new name.
    Posted in: Tutorials
  • 4

    posted a message on Members that make you laugh
    I supid

    Posted in: Administrators & Moderators
  • 3

    posted a message on Members that make you laugh
    Posted in: Administrators & Moderators
  • 1

    posted a message on 1.1 Crafting Recipe
    Quote from iBlackShadow

    you forgot to extend BaseMod


    Ahh, I knew it was going to be something stupid.
    Thanks everyone

    -Muserae
    Posted in: Modification Development
  • 2

    posted a message on PM box variety fun time
    Peer Pressure is never good.

    Posted in: Off topic, testing and misc. chat
  • 1

    posted a message on [May 23, 2012][ModLoader]Muserae's Modding Tutorials
    Placing Block Using an Item

    Pretty simple, again. This goes in ItemWhatever

        public boolean onItemUse(ItemStack itemstack, EntityPlayer entityplayer, World world, int i, int j, int k, int l)
        {
            if(l == 0)
            {
                j--;
            }
            if(l == 1)
            {
                j++;
            }
            if(l == 2)
            {
                k--;
            }
            if(l == 3)
            {
                k++;
            }
            if(l == 4)
            {
                i--;
            }
            if(l == 5)
            {
                i++;
            }
            int i1 = world.getBlockId(i, j, k);
            if(i1 == 0)
            {
                world.setBlockWithNotify(i, j, k, mod_whatever.BLOCK.blockID);
            }
            itemstack.damageItem(1, entityplayer);
            return true;
        }
    Posted in: Tutorials
  • 1

    posted a message on [May 23, 2012][ModLoader]Muserae's Modding Tutorials
    Quote from King_Knarfi

    Awesome tutorials!

    but I made a block and thought: How do you make a multitextured block? Like a bookshelf? :smile.gif:
    I found tutorials on the internet but they are all crap with 6 sides and stuf :sad.gif:


    I haven't worked with multiple textured items YET. Once I feel like updating my healing mod I'll be adding one, and then I'll make a tutorial on it :smile.gif:

    -Muserae
    Posted in: Tutorials
  • 1

    posted a message on Members that make you laugh
    Thaaatt's right

    Posted in: Administrators & Moderators
  • 1

    posted a message on Leave of Absence
    I know I've been really inactive lately, and I'm not very happy with it. I've been really busy and tired from school, and all my free time goes to some stuff I need to do for school, like my history finals. I can hop on to MCF every now and then, but whenever I do, there's only 2 reports thanks to Jefe D:< so my reports are very low for this month. Hopefully I'll be back in gear soon, but until then, I'll see you guys every now and then.

    -Muserae
    Posted in: Administrators & Moderators
  • To post a comment, please .