This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Quote from XxTMSxX Well all i need to is when i try to run my mod it crashes because it it going to loc 26 (aka Bed) and it is crashing and i need help with the code for the ID number for minecraft 1.3.2 so if you know what it is then post it in the comments below thanks THANKS XxTMSxX
Quote from Fiskpotatis It would be easier to help you if you posted your code
Block PlatinumOre = PlatinumOre(200, 15).setBlockName("Platinum Ore");
Quote from BobwontRolle Block PlatinumOre = PlatinumOre(200, 15).setBlockName("Platinum Ore"); 15 = Block tetxure 200 = ID
Quote from BobwontRolle super( ModLoader.addOverride("/terrain.png", "PlatinumOre.png"), Material.rock); should be super( ModLoader.addOverride("/terrain.png", "/PlatinumOre.png"), Material.rock); Place your file in [ModFolder]/Eclipse/Client If you are in Eclipse. Which I recommend
Quote from XxTMSxX So just replace the code you have brought me with the old one then i suppose?
Quote from XxTMSxX Well all i need to is when i try to run my mod it crashes because it is going to block 26 (aka Bed) and it is crashing and i need help with the code for the ID number for minecraft 1.3.2 so if you know what it is then post it in the comments below thanks package net.minecraft.src; public class PlatinumOre extends Block { public static final Block instance = new PlatinumOre(); public PlatinumOre() { super( ModLoader.addOverride("/terrain.png", "PlatinumOre.png"), Material.rock); setHardness(2.3333333f); setResistance(10f); setLightValue(0.0f); setBlockName( "PlatinumOre"); ModLoader.addName( this, "Platinum Ore"); } } I am wondering where the ID code goes an what it is so if you can help me THANKS XxTMSxX
package net.minecraft.src; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Map; import java.util.Random; public class mod_tutorial extends BaseMod{ public static final Block tutorialBlock = new BlockTutorial((Id number)161, 0).setStepSound(Block.soundStoneFootstep).setBlockName("tutorialBlock").setHardness(4.5F).setResistance(5F).setLightValue(1.0F); public void load(){ tutorialBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Tutorial/stone.png"); ModLoader.registerBlock(tutorialBlock); ModLoader.addName(tutorialBlock, "Tutorial Block"); } public String getVersion(){ return "Tutorial 1.3.2"; } }
Quote from BobwontRolle Yep! And place /PlatinumOre.png in [ModFolder]/Eclipse/Client
Quote from XxTMSxX For Some Reason It Still Says "Overriding /terrain.png with /PlatinumOre.png @ 26. 31 left." Then It Says "Caused by: java.lang.IllegalArgumentException: Slot 26 is already occupied by net.minecraft.src.BlockBed@51a79b when adding net.minecraft.src.PlatinumOre@d2b97b"
and i need help with the code for the ID number for minecraft 1.3.2 so if you know what it is then post it in the
comments below thanks
package
net.minecraft.src;
public
class PlatinumOre extends Block {
public static final Block instance = new PlatinumOre();
public PlatinumOre() {
super( ModLoader.addOverride("/terrain.png", "PlatinumOre.png"), Material.rock);
setHardness(2.3333333f);
setResistance(10f);
setLightValue(0.0f);
setBlockName(
"PlatinumOre");
ModLoader.addName(
this, "Platinum Ore");
}
}
I am wondering where the ID code goes an what it is so if you can help me
THANKS XxTMSxX
No code = no help.
Mr.Dirtman was just on iPodmail 's reviews! Can I ask you why Dirtman? And nice temples there!
15 = Block tetxure
200 = ID
thanks for the code but one problem: the part PlatinumOre (the second one) has an error and plus when i add it it while the error is on still it still adds my block to item 26, Help?
should be
super( ModLoader.addOverride("/terrain.png", "/PlatinumOre.png"), Material.rock);
Place your file in [ModFolder]/Eclipse/Client If you are in Eclipse. Which I recommend
So just replace the code you have brought me with the old one then i suppose?
Yep! And place /PlatinumOre.png in [ModFolder]/Eclipse/Client
Just wondering where is the mod folder? do you mean MCP (The Coder Pack in the Eclipse Folder?)
For Some Reason It Still Says
"Overriding /terrain.png with /PlatinumOre.png @ 26. 31 left."
Then It Says
"Caused by:
java.lang.IllegalArgumentException: Slot 26 is already occupied by net.minecraft.src.BlockBed@51a79b when adding net.minecraft.src.PlatinumOre@d2b97b"
uhhhh, post your code again and in the MCP folder = Mod Folder