Keiser:
Can u give me your code as well? And, modloader doesn't seem to be working quite right for you, did you delete meta inf? It may just be something in the code, that I need to see.
...Oh ****,. I forgot to delete META-INF.
Lemme try that real quick...
Edit:
Nope, META-INF made no difference. Here's my code:
package net.minecraft.src;
public class mod_Aliencraft extends BaseMod
{
public static final Block Stardirt;
static
{
Stardirt = (new BlockStardirt(100, ModLoader.addOverride("/terrain.png", "/Aliencraft/Stardirt.png"), Material.dirt)).setHardness(0.5F).setLightValue(0.7F).setStepSound(Block.soundGravelFootstep).setBlockName("Stardirt");
}
public mod_Aliencraft()
{
ModLoader.AddName(Startdirt, "Stardirt");
ModLoader.RegisterBlock(AqB);
ModLoader.AddRecipe(new ItemStack(AqB, 1), new Object[]
{
"x", Character.valueOf('x'), Block.dirt
});
}
public String Version()
{
return "1.5_01";
}
}
Sorry I effed up. It's not supposed to say AqB there. It's supposed to say stardirt...
Rollback Post to RevisionRollBack
Making a video game mod for minecraft. Going great. The idea? blocks when clicked open up a minigame that rewards you with ores and such based on your ingame score. Almost finished with beta version, which features a very basic pong game.
Sorry I effed up. It's not supposed to say AqB there. It's supposed to say stardirt...
After tinkering around, I came to that conclusion, as well. I fixed it up a bit and now there's only one error, now - this one:
src\minecraft\net\minecraft\src\mod_Aliencraft.java:9: cannot find symbol
symbol : class BlockStardirt
location: class net.minecraft.src.mod_Aliencraft
Stardirt = (new BlockStardirt(100, ModLoader.addOverride("/terrain.png", "/Alien
craft/Stardirt.png"), Material.rock)).setHardness(0.5F).setLightValue(0.7F).setS
tepSound(Block.soundGravelFootstep).setBlockName("Stardirt
The code is:
package net.minecraft.src;
public class mod_Aliencraft extends BaseMod
{
public static final Block Stardirt;
static
{
Stardirt = (new BlockStardirt(100, ModLoader.addOverride("/terrain.png", "/Aliencraft/Stardirt.png"), Material.rock)).setHardness(0.5F).setLightValue(0.7F).setStepSound(Block.soundGravelFootstep).setBlockName("Stardirt");
}
public mod_Aliencraft()
{
ModLoader.AddName(Stardirt, "Stardirt");
ModLoader.RegisterBlock(Stardirt);
ModLoader.AddRecipe(new ItemStack(Stardirt, 1), new Object[]
{
"x", Character.valueOf('x'), Block.dirt
});
}
public String Version() //Required, will result in error otherwise
{
return "1.5_01";
}
}
idk. I remember getting those lame errors, and I couldn't see anything different. I don't get them anymore, but I can't see anything different in urs. U'll just have to tinker.
Rollback Post to RevisionRollBack
Making a video game mod for minecraft. Going great. The idea? blocks when clicked open up a minigame that rewards you with ores and such based on your ingame score. Almost finished with beta version, which features a very basic pong game.
idk. I remember getting those lame errors, and I couldn't see anything different. I don't get them anymore, but I can't see anything different in urs. U'll just have to tinker.
Alright. Well, thanks for the help, either way. xD 10/10 for the tutorial.
Interesting.. I'm getting the same coding error that Kaiser is getting but I'm using the SuperBlock tutorial.. what is the world could possibly cause this?
Alright if anybody could help I don't know where to put the .pngs for armor index skins. And could someone clarify what the code is as I cannot get it to work.
Lame, but i've never done armor, so I asked my m8 grim3212 that one, cause he knows it already, I'd have to look it up. This is what he said:
you put the pngs in the armor folder // Well I did actually know that...
As for the code, you make the item and put PantsP = (new ItemArmor(141, 3, ModLoader.AddArmor("Platinum"), 2)).setItemName("PantsP");
Example for pants the 3 represents diamond and the 2 at the end means what type of armor it is
2 = pants
3 = boots
1=chest
0 = helmet
Rollback Post to RevisionRollBack
Making a video game mod for minecraft. Going great. The idea? blocks when clicked open up a minigame that rewards you with ores and such based on your ingame score. Almost finished with beta version, which features a very basic pong game.
I found the error. It was looking for class BlockStardirt, which did not technically exist. Change it to Block, instead of BlockStartdirt, and it fixes the problem entirely.
I encountered some more glitches afterward, but those will be fixed with time.
Hope this helps anyone else who gets the same glitch.
Can u give me the finished line of code? I wanna look at it.
Rollback Post to RevisionRollBack
Making a video game mod for minecraft. Going great. The idea? blocks when clicked open up a minigame that rewards you with ores and such based on your ingame score. Almost finished with beta version, which features a very basic pong game.
Can u give me the finished line of code? I wanna look at it.
Yeah.
Stardirt = (new Block(100, ModLoader.addOverride("/terrain.png", "/Aliencraft/Stardirt.png"), Material.rock)).setHardness(0.5F).setLightValue(0.7F).setStepSound(Block.soundGravelFootstep).setBlockName("Stardirt");
Edit:
Sadly, now I keep getting an error saying that it cannot find the image at /Aliencraft/Stardirt.png" when I run startclient.bat. Lol.
I'm getting the same error as Kaiser yet again... are we sure that it's calling to the right directory?
To the extent of my knowledge it should be calling the correct directory, but I know very little actual Java. I use it to mod Minecraft, while sticking to C++ for everything else.
To the extent of my knowledge it should be calling the correct directory, but I know very little actual Java. I use it to mod Minecraft, while sticking to C++ for everything else.
You and I both.. So long as it's pulling from the temp folder it should be working properly.
To the extent of my knowledge it should be calling the correct directory, but I know very little actual Java. I use it to mod Minecraft, while sticking to C++ for everything else.
You and I both.. So long as it's pulling from the temp folder it should be working properly.
Well, I did some tinkering, and replaced the texture with the basic dirt texture. Block works fine, no problems whatsoever. Meaning, it is an issue with where it's calling it from, and not some silly syntax error.
To the extent of my knowledge it should be calling the correct directory, but I know very little actual Java. I use it to mod Minecraft, while sticking to C++ for everything else.
You and I both.. So long as it's pulling from the temp folder it should be working properly.
Well, I did some tinkering, and replaced the texture with the basic dirt texture. Block works fine, no problems whatsoever. Meaning, it is an issue with where it's calling it from, and not some silly syntax error.
This still requires further exploration.
Hmm I attempted to pull the custom texture into the same folder as terrain.png and just call it from the minecraft folder rather than a custom folder but still to no avail.. it doesn't want to recognize an outside .png for some reason.
Can u give me the finished line of code? I wanna look at it.
Yeah.
Stardirt = (new Block(100, ModLoader.addOverride("/terrain.png", "/Aliencraft/Stardirt.png"), Material.rock)).setHardness(0.5F).setLightValue(0.7F).setStepSound(Block.soundGravelFootstep).setBlockName("Stardirt");
Edit:
Sadly, now I keep getting an error saying that it cannot find the image at /Aliencraft/Stardirt.png" when I run startclient.bat. Lol.
Sorry yeah ur right, however, if you want to add certain special properties, you have to make BlockStardirt.class, and you have to change it back. If you don't make a new class the old way though, you get errors.
Rollback Post to RevisionRollBack
Making a video game mod for minecraft. Going great. The idea? blocks when clicked open up a minigame that rewards you with ores and such based on your ingame score. Almost finished with beta version, which features a very basic pong game.
Can u give me the finished line of code? I wanna look at it.
Yeah.
Stardirt = (new Block(100, ModLoader.addOverride("/terrain.png", "/Aliencraft/Stardirt.png"), Material.rock)).setHardness(0.5F).setLightValue(0.7F).setStepSound(Block.soundGravelFootstep).setBlockName("Stardirt");
Edit:
Sadly, now I keep getting an error saying that it cannot find the image at /Aliencraft/Stardirt.png" when I run startclient.bat. Lol.
Sorry yeah ur right, however, if you want to add certain special properties, you have to make BlockStardirt.class, and you have to change it back. If you don't make a new class the old way though, you get errors.
Gotta make a BlockStardirt.class? Thought so. Alright, I'll go do that, and report back.
Oh lol Ill wait I guess
...Oh ****,. I forgot to delete META-INF.
Lemme try that real quick...
Edit:
Nope, META-INF made no difference. Here's my code:
After tinkering around, I came to that conclusion, as well. I fixed it up a bit and now there's only one error, now - this one:
src\minecraft\net\minecraft\src\mod_Aliencraft.java:9: cannot find symbol
symbol : class BlockStardirt
location: class net.minecraft.src.mod_Aliencraft
Stardirt = (new BlockStardirt(100, ModLoader.addOverride("/terrain.png", "/Alien
craft/Stardirt.png"), Material.rock)).setHardness(0.5F).setLightValue(0.7F).setS
tepSound(Block.soundGravelFootstep).setBlockName("Stardirt
The code is:
Hm. Back to tinkering!
Alright. Well, thanks for the help, either way. xD 10/10 for the tutorial.
Lame, but i've never done armor, so I asked my m8 grim3212 that one, cause he knows it already, I'd have to look it up. This is what he said:
you put the pngs in the armor folder // Well I did actually know that...
As for the code, you make the item and put PantsP = (new ItemArmor(141, 3, ModLoader.AddArmor("Platinum"), 2)).setItemName("PantsP");
Example for pants the 3 represents diamond and the 2 at the end means what type of armor it is
2 = pants
3 = boots
1=chest
0 = helmet
I found the error. It was looking for class BlockStardirt, which did not technically exist. Change it to Block, instead of BlockStartdirt, and it fixes the problem entirely.
I encountered some more glitches afterward, but those will be fixed with time.
Hope this helps anyone else who gets the same glitch.
Yeah.
Edit:
Sadly, now I keep getting an error saying that it cannot find the image at /Aliencraft/Stardirt.png" when I run startclient.bat. Lol.
I'm getting the same error as Kaiser yet again... are we sure that it's calling to the right directory?
To the extent of my knowledge it should be calling the correct directory, but I know very little actual Java. I use it to mod Minecraft, while sticking to C++ for everything else.
You and I both.. So long as it's pulling from the temp folder it should be working properly.
Well, I did some tinkering, and replaced the texture with the basic dirt texture. Block works fine, no problems whatsoever. Meaning, it is an issue with where it's calling it from, and not some silly syntax error.
This still requires further exploration.
Hmm I attempted to pull the custom texture into the same folder as terrain.png and just call it from the minecraft folder rather than a custom folder but still to no avail.. it doesn't want to recognize an outside .png for some reason.
Sorry yeah ur right, however, if you want to add certain special properties, you have to make BlockStardirt.class, and you have to change it back. If you don't make a new class the old way though, you get errors.
Gotta make a BlockStardirt.class? Thought so. Alright, I'll go do that, and report back.
Let us know and post the code if it works.