Thanks for the link, I do believe this is what I'm looking for I did run into a problem though. I've PMed flan asking about it, but if anyone else knows, I'll post it here too.
There turned out to be a problem, and I think it has something to do with Step 5 that I didn't really understand. Below is a snippit of one of my .java files with the error I'm unable to fix. the Eclipse tells me that the "addName" parts are errors. When I try to recompile, command prompt gives me 29 errors, all along the line of
src\minecraft_server\net\minecraft\src\mod_SteelTools.java:25: error: cannot find symbol
ModLoader.addName(SteelSword,"Reinforced Iron Sword");
^
symbol: method addName(Item,String)
location: class ModLoader
but instead of mod_SteelTools it shows the name of whatever other .java file. I am using the latest version of MCP , ModLoader and ModLoaderMP, and Minecraft 1.3.2. Please help modder-in-training!
PS. Was I supposed to bring the mod_ModLoaderMP over to the server folder from the client folder?
The .java file.
package net.minecraft.src;
import java.util.Random;
public class mod_SteelTools extends BaseModMp
{
public static final Item SteelPickaxe = new ItemPickaxe(190,EnumToolMaterial.STEEL).setItemName("asdf1");
public static final Item SteelAxe = new ItemAxe(191,EnumToolMaterial.STEEL).setItemName("asdf2");
public static final Item SteelSpade = new ItemSpade(192,EnumToolMaterial.STEEL).setItemName("asdf3");
public static final Item SteelHoe = new ItemHoe(193,EnumToolMaterial.STEEL).setItemName("asdf4");
public static final Item SteelSword = new ItemSword(194,EnumToolMaterial.STEEL).setItemName("asdf5");
public mod_SteelTools()
{
SteelPickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/ReinforcedItems/Steel/SteelPick.png");
SteelAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/ReinforcedItems/Steel/SteelAxe.png");
SteelSpade.iconIndex = ModLoader.addOverride("/gui/items.png", "/ReinforcedItems/Steel/SteelSpade.png");
SteelHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/ReinforcedItems/Steel/SteelHoe.png");
SteelSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/ReinforcedItems/Steel/SteelSword.png");
ModLoader.addName(SteelPickaxe,"Reinforced Iron Pickaxe");
ModLoader.addName(SteelAxe,"Reinforced Iron Axe");
ModLoader.addName(SteelSpade,"Reinforced Iron Shovel");
ModLoader.addName(SteelHoe,"Reinforced Iron Hoe");
ModLoader.addName(SteelSword,"Reinforced Iron Sword");
ModLoader.addRecipe(new ItemStack(SteelPickaxe, 1), new Object[]{
"!!!", " * ", " * ", Character.valueOf('!'), Block.blockSteel, Character.valueOf('*'), mod_MetalRod.itemMetalRod
});
ModLoader.addRecipe(new ItemStack(SteelAxe, 1), new Object[]{
"!! ", "!* ", " * ", Character.valueOf('!'), Block.blockSteel, Character.valueOf('*'), mod_MetalRod.itemMetalRod
});
ModLoader.addRecipe(new ItemStack(SteelSpade, 1), new Object[]{
" ! ", " * ", " * ", Character.valueOf('!'), Block.blockSteel, Character.valueOf('*'), mod_MetalRod.itemMetalRod
});
ModLoader.addRecipe(new ItemStack(SteelHoe, 1), new Object[]{
" !!", " * ", " * ", Character.valueOf('!'), Block.blockSteel, Character.valueOf('*'), mod_MetalRod.itemMetalRod
});
ModLoader.addRecipe(new ItemStack(SteelSword, 1), new Object[]{
" ! ", " ! ", " * ", Character.valueOf('!'), Block.blockSteel, Character.valueOf('*'), mod_MetalRod.itemMetalRod
});
}
public String Version()
{
return "3.14159265";
}
@Override
public String getVersion() {
// TODO Auto-generated method stub
return null;
}
@Override
public void load() {
// TODO Auto-generated method stub
}
}
I've made this mod which requires modloader. I've been wanting to transfer it to SMP for a while now, but am not sure how it works. How does modloader and/or modloaderMP tie into the process of getting it to SMP? I downloaded the minecraft_server.jar, do I need to inject any files into it in order to get my codes to work from my SSP mod?
I understand you need feedback but there is not much to say since the mod is generic and I'm currently in a process where I collect many mods to put together!
It will take me days before I'm ready!
But I do have one complaint and one question!
The name of your class files are too common!
It will cause conflicts with other mods that use the same names!
What is the ri.class for?
The ri.class is the EnumToolMaterial.java. I can't change what it's called, since it's a vanilla file. Not sure how it works, but I don't believe you can have two or more mods editing the same vanilla file, else they aren't compatible. I've made sure to minimize the amount of vanilla classes edited (down to one), and to my knowledge, there is no way to reduce that number to zero.
As for the other file names, I don't seem to have found/heard of any mods that use the same names. If you find any, could you let me know what mods they are?
Hey, not to be rude or anything, but there's not much of a reason to put this on the forums. Almost anyone who got halfway into modding knows how to make a randomly generated ore and armor/tools to go with it. Just sayin'.
This mod is basically the start for any aspiring modder. I'm not saying you did a bad job (although the textures could be a bit better xP), but no reason to upload this
0
0
I've never really worked with Forge before
0
0
0
0
But now it's telling me shiftedIndex doesn't exist. Anyone know how to fix this? I assume it's a change Mojang made with the latest update.
0
0
There turned out to be a problem, and I think it has something to do with Step 5 that I didn't really understand. Below is a snippit of one of my .java files with the error I'm unable to fix. the Eclipse tells me that the "addName" parts are errors. When I try to recompile, command prompt gives me 29 errors, all along the line of
but instead of mod_SteelTools it shows the name of whatever other .java file. I am using the latest version of MCP , ModLoader and ModLoaderMP, and Minecraft 1.3.2. Please help modder-in-training!
PS. Was I supposed to bring the mod_ModLoaderMP over to the server folder from the client folder?
The .java file.
0
Anything to make it unique and set it apart from other mods sounds awesome! Good luck!
0
I've made this mod which requires modloader. I've been wanting to transfer it to SMP for a while now, but am not sure how it works. How does modloader and/or modloaderMP tie into the process of getting it to SMP? I downloaded the minecraft_server.jar, do I need to inject any files into it in order to get my codes to work from my SSP mod?
Thanks in advance
0
The ri.class is the EnumToolMaterial.java. I can't change what it's called, since it's a vanilla file.
As for the other file names, I don't seem to have found/heard of any mods that use the same names. If you find any, could you let me know what mods they are?
0
This mod is basically the start for any aspiring modder. I'm not saying you did a bad job (although the textures could be a bit better xP), but no reason to upload this
0
0
0