Tutorials Navigation

Tutorials :: New :: Popular :: Top Rated

Tutorials: 18,326 Categories: 12

Total Tutorial Views: 41,468,347

[ Minecraft] How To Make Your Own Redstone Wire! [ v1.1 ]

Tutorial Name: [ Minecraft] How To Make Your Own Redstone Wire! [ v1.1 ]  

Category: PC Tutorials

Submitted By: Console

Date Added:

Comments: 0

Views: 6,677

Related Forum: PC Building Forum

Share:


How To Make Your Own Redstone Wire!




Downloads!



Tutorial :
Difficulty : 3/10
Version : 1.1 (possibility 1.2.3)




Here is our mod_CamelOre.java :



package net.minecraft.src;

import net.minecraft.src.forge.*;

public class mod_CamelOre extends BaseMod
{

        public static final Block oreTitanium = new CamelOreBlockCopperWire(123,  0).setHardness(3F).setResistance(5F).setStepSound(Block.soundStoneFootstep
1;.setBlockName("oreTitanium");

        public mod_CamelOre()
        {

        }

        public void load()
        {
                MinecraftForgeClient.preloadTexture("/CamelMod/CamelOre/terrain.png");
                ModLoader.RegisterBlock(oreTitanium);
        }

        public String getVersion() {
                return "1.1.0";
        }

}



We are not going to do anything to the mod_CamelOre.java, but actually do something to the CamelOreBlockCopperWire.java.
Here it is:



package net.minecraft.src;

import net.minecraft.src.forge.*;

public class CamelOreBlockCopperWire extends BlockRedstoneWire implements ITextureProvider
{

    public CamelOreBlockCopperWire(int i, int j)
    {
        super(i, j);
    }

    public int idDropped(int i, Random random, int j)
    {
        return mod_CamelOre.copperWire.blockID;
    }

    public String getTextureFile()
    {
        return "/CamelMod/CamelOre/terrain.png";
    }

}



This is what we have to add:


    public boolean canConnectRedstone(IBlockAccess iba, int i, int j, int k, int dir)
    {
        return true;
    }



Now it can connect to redstone.


package net.minecraft.src;

import net.minecraft.src.forge.*;

public class CamelOreBlockCopperWire extends BlockRedstoneWire implements ITextureProvider
{

    public CamelOreBlockCopperWire(int i, int j)
    {
        super(i, j);
    }

    public int idDropped(int i, Random random, int j)
    {
        return mod_CamelOre.copperWire.blockID;
    }

    public boolean canConnectRedstone(IBlockAccess iba, int i, int j, int k, int dir)
    {
        return true;
    }

    public String getTextureFile()
    {
        return "/CamelMod/CamelOre/terrain.png";
    }

}



Sorry i was going to do the mob tutorial but decided not to because i want to post a video with the text tutorial.


Last Tutorial (Recipe)

Next Tutorial -
Creating A Weapon! [Modloader]

Ratings

Current rating: 2.76 by 38 users
Please take one second and rate this tutorial...

Not a Chance
1
2
3
4
5
6
7
8
9
10
Absolutely

Comments

"[ Minecraft] How To Make Your Own Redstone Wire! [ v1.1 ]" :: Login/Create an Account :: 0 comments

If you would like to post a comment please signin to your account or register for an account.