Ayeso
-
Posts
7 -
Joined
-
Last visited
Posts posted by Ayeso
-
-
mcmod.info has to be the name.
So you should have a zip or jar or w/e
inside that you have your package folder, and mcmod.info
-
As I had assumed it was a newbie mistake!
I had been testing from in eclipse with my client side mods, this was my first time doing a server side mod so I had been recompiling it and copying into the correct folder and running the server. Turns out I forgot to reobfuse it!
Works now!
-
Yeah you could just make the file, or if you use eclipse have it in the base project and then copy it into your zip/jar.
JSON is Java Script Object Notation
Its just a way of formatting.
-
The part I seem to be having an issue with is as follows
java.lang.NoClassDefFoundError: net/minecraft/command/ICommand
Tools.java
package ayeso.mods; import net.minecraft.server.MinecraftServer; import net.minecraft.command.ServerCommandManager; import net.minecraft.command.ICommand; import net.minecraftforge.common.MinecraftForge; import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Init; import cpw.mods.fml.common.Mod.ServerStarting; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLServerStartingEvent; import cpw.mods.fml.common.network.NetworkMod; @Mod(modid="Tools", name="Ayesos Tools", version="0.1") @NetworkMod(clientSideRequired=false, serverSideRequired=false) public class Tools { public static MinecraftServer server; @Init public void Init(FMLInitializationEvent event) { } @ServerStarting public void serverStarting(FMLServerStartingEvent event) { server = FMLCommonHandler.instance().getMinecraftServerInstance(); ServerCommandManager manager = (ServerCommandManager)server.getCommandManager(); manager.registerCommand(new TestCommand()); System.out.println("Registered 1 commands"); } }
TestCommand.java
package ayeso.mods; import net.minecraft.command.CommandBase; import net.minecraft.command.ICommand; import net.minecraft.command.ICommandSender; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.server.MinecraftServer; import net.minecraft.src.ModLoader; import cpw.mods.fml.common.FMLCommonHandler; public class TestCommand extends CommandBase { public String getCommandName() { return "TestCommand"; } @Override public void processCommand(ICommandSender sender, String[] args) { System.out.println("Hello World"); } }
-
From my understanding it should go in the base of the zip/jar, not in the package. So if you open your zip/jar you would have
Modfoldername
mcmod.info
Additional Info
Make sure the file is in the correct JSON format. For Example
{
"modinfoversion": 2,
"modlist": [{
"modid": "mod_Name",
"name": "Name",
"description": "Description of Mod",
"version": "Version Number?",
"mcversion": "What version of MC is this mod for?",
"url": "Link to description or post about the mod",
"updateUrl": "Link to update url",
"authors": [ "Author 1", "Optional Additional Authors" ],
"credits": "Any sort of credit you want",
"logoFile": "link to png file, for example /mod_modname.png",
"screenshots": [ "Additional screenshot pngs.", "example.png" ],
"requiredMods": [ "Forge additionals can be added." ],
}]
}
-
Hello everyone,
Im new here and am looking for some guidance. Ive been using mods for quite some time and can program simple stuff(visual studio and c++)
Im looking to create a simple mod and was hoping someone could point me to either a tutorial or some source code I can peruse.
I want to create a command, and a tracker that logs every time someone dies. Now I know what classes and methods I need to use but the server command part Im having trouble with(mostly due to lack of familiarity with mods and how they need to be structured.)
If someone could point me to a server side command tutorial for the latest forge I would appreciate it. I found a few pieces of source code, but they are outdated and dont work any longer.
Ayeso
[1.4.5/6/7] keepcalm's mods - Events API, BukkitForge - Interdim TPs, Lockette!
in Mods
Posted
Im not sure if its just me. Im testing towny and noticed I dont get the Wilderness/Home messages. Did you see this working when you tested xKillerBees?