Tutorials Navigation
[ 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
Comments
Related Tutorials
- 01. Emulating Xbox 360 on PC for Running COD4 With Mods(2,143)
- 02. How to: Matrix Numbers | Batch File(1,594)
- 03. How to Password Protect Files on Windows(765)
- 04. How to play Socom 2/3/ and Combined Assault on PC(5,206)
- 05. Modern Warfare 2 Vac Ban Bypass Tutorial(5,048)
- 06. How to embed an image on TheTechGame(2,782)
- 07. [PC] NIOH 2 OTHER USER SAVE RESIGN(12,350)
- 08. Host bot lobbies! Full Tutorial!(9,584)
- 09. Unban yourself [Plutonium BO2](13,483)
- 10. Fall Guys - How to Change Your Name Color on Fall Guys(8,027)
- 11. Best Crosshair Settings for Valorant(6,171)
- 12. Othercide The Surgeon Boss Guide(2,230)
- 13. Othercide Remembrances Unlock Guide(3,930)
- 14. Othercide Beginners Tips and Tricks(2,469)
- 15. How to Fix Grounded Crashes, Loading Time, Low FPS and Other(4,369)
"[ Minecraft] How To Make Your Own Redstone Wire! [ v1.1 ]" :: Login/Create an Account :: 0 comments