
daneleo5
Members-
Posts
25 -
Joined
-
Last visited
Everything posted by daneleo5
-
ohhhh haha thx a bunch Mew
-
@Override public boolean isUsernameIndex(int astring) { return false; } seemed to have fixed it. i also added in this to display text when you type /gold help but it doesn't do noting @Override public void processCommand(ICommandSender icommandsender, String[] astring) { if (astring[0].equals("StringOfSubCommand1")) { EntityPlayer player = (EntityPlayer)icommandsender; player.addChatMessage("test"); //Just send a simple message to player } else if (astring[0].equals("StringOfSubcommand2")) { // execute code for second sub command } // etc.
-
i put it back to yours because it just didn't do anything just this part of your code doesn't like me lol [] - errors @Override public boolean [isUsernameIndex(String[] astring, int i)] { return false; The method isUsernameIndex(String[], int) of type commands must override or implement a supertype method public class [commands] implements ICommand{ The type commands must implement the inherited abstract method ICommand.isUsernameIndex(int) java.lang.Error: Unresolved compilation problem: The type commands must implement the inherited abstract method ICommand.isUsernameIndex(int) at daneleo5.commands.isUsernameIndex(commands.java:14) at net.minecraft.command.CommandHandler.getUsernameIndex(CommandHandler.java:231) at net.minecraft.command.CommandHandler.executeCommand(CommandHandler.java:35) at net.minecraft.network.NetServerHandler.handleSlashCommand(NetServerHandler.java:769) at net.minecraft.network.NetServerHandler.handleChat(NetServerHandler.java:735) at net.minecraft.network.packet.Packet3Chat.processPacket(Packet3Chat.java:60) at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:80) at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:136) at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:57) at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:108) at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:703) at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:599) at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:123) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:497) at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) --- END ERROR REPORT adbfaca6 ----------
-
Thx Mew the only problem i have now is The method isUsernameIndex(String[], int) of type commands must override or implement a supertype method but i just put it to @Override public boolean isUsernameIndex(int var1) { // TODO Auto-generated method stub return false; } which fixed it i think since it loads up the only problem is if i type /gold it "an unknown error occurred while attempting to perform this command" Also thx a bunch Mew if it wasn't for u i would't have got this far
-
oh that's good felt like an idiot haha, yer sure PlayerInfo info = Database.getPlayerInfo(player.username); Playerinfo & database cant be resolved TheMod - cant be resolved(gussing its my client proxy? tried that and it erred EnumChatFormatting - cannot be resolved to a variable @Override public boolean isUsernameIndex(String[] astring, int i) { return false; } must override supertype or method
-
sorry to be even more of a pain but i really should of said im working with 1.4.7 until some mods i have got updates for redpower, ic2 etc, really sorry about that im guessing thats why some of them are red for me once again my apologies for u writing all that code
-
Yer that's right sorry i though they were called alias, thx Mew and also thx d4rkfly3r for the effort really appreciate it but yer how would i go about doing that and im liking the alias now as well sorry to be a pain
-
i have added commands to my project but i was wondering how i go about making alias like /mt Help /mt add etc i have already created the commands class and its registered in my proxy's and so on. so if its possible would you be able to show an example thank you
-
I'm making these npc's for a project I'm working on with friends and I'm adding commands to it now eg i have already added /npcv but i was wonder if there is anyway to add one to remove all Created npcs and aim at one with the cursor and remove it?
-
I don't wanna sound stupid or anything but i don't understand how my code is modloader? I got MCP setup with Forge and installed it with the 'Install.bat' I though that it was FML, when i start the 'startclient.bat' and 'startserver.bat' it says its running FML, just confused me a little i understand it says 'Modloader.' but i though it gets it from FML since i import it from here What Darknesschaos said, plus: ModLoader.addName(Knife,"Knife"); Knife.iconIndex = ModLoader.addOverride(...); ModLoader.addRecipe(...) Doing that with Forge looks like this: LanguageRegistry.addName(Knife,"Knife"); GameRegistry.registerItem(Knife,"Knife"); Knife.iconIndex = //stuff I've forgotten since I moved away from 1.4.x GameRegistry.addShapedRecipe(...) ahha thank you Draco for the help
-
I don't wanna sound stupid or anything but i don't understand how my code is modloader? I got MCP setup with Forge and installed it with the 'Install.bat' I though that it was FML, when i start the 'startclient.bat' and 'startserver.bat' it says its running FML, just confused me a little i understand it says 'Modloader.' but i though it gets it from FML since i import it from here What Darknesschaos said, plus: ModLoader.addName(Knife,"Knife"); Knife.iconIndex = ModLoader.addOverride(...); ModLoader.addRecipe(...) Doing that with Forge looks like this: LanguageRegistry.addName(Knife,"Knife"); GameRegistry.registerItem(Knife,"Knife"); Knife.iconIndex = //stuff I've forgotten since I moved away from 1.4.x GameRegistry.addShapedRecipe(...) ahha thank you Draco for the help
-
i feel like punching my self now since i made an npc with modloader oh well back to the drawing board thx for all the help guys. time to look for a tut on the wiki for an npc anyways i'l just dlete the whole MCP and re install forge, still don't know how modloader got in there
-
i feel like punching my self now since i made an npc with modloader oh well back to the drawing board thx for all the help guys. time to look for a tut on the wiki for an npc anyways i'l just dlete the whole MCP and re install forge, still don't know how modloader got in there
-
I don't wanna sound stupid or anything but i don't understand how my code is modloader? I got MCP setup with Forge and installed it with the 'Install.bat' I though that it was FML, when i start the 'startclient.bat' and 'startserver.bat' it says its running FML, just confused me a little i understand it says 'Modloader.' but i though it gets it from FML since i import it from here
-
I don't wanna sound stupid or anything but i don't understand how my code is modloader? I got MCP setup with Forge and installed it with the 'Install.bat' I though that it was FML, when i start the 'startclient.bat' and 'startserver.bat' it says its running FML, just confused me a little i understand it says 'Modloader.' but i though it gets it from FML since i import it from here
-
Thx guys for the help really appreciate it also i'm using 1.4.7 would that help to anyways i'm not gonna ask anything else since when i do i feel like and idiot ahha i'll get reading on these tutorials you sent me on the wiki
-
Thx guys for the help really appreciate it also i'm using 1.4.7 would that help to anyways i'm not gonna ask anything else since when i do i feel like and idiot ahha i'll get reading on these tutorials you sent me on the wiki
-
I got the code from a tutorial and the title says MODLOADER/FORGE so i thought it was forge modloader anyways thx for helping me out also im using MCP with forge modloader so i thought it was Forge coding
-
I got the code from a tutorial and the title says MODLOADER/FORGE so i thought it was forge modloader anyways thx for helping me out also im using MCP with forge modloader so i thought it was Forge coding
-
i need help converting this to work with the server if you can thank you. Also if you can would you be able to walk me through it so i can learn to do it myself package net.daneleo5.mob.chav; import java.util.Map; import net.minecraft.client.model.ModelBiped; import net.minecraft.client.renderer.entity.RenderBiped; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.src.BaseMod; import net.minecraft.src.ModLoader; public class mod_ItemKnife extends BaseMod{ public static final Item Knife = new Knife(350).setItemName("knife"); public void load(){ ModLoader.addName(Knife,"Knife"); Knife.iconIndex = ModLoader.addOverride("/gui/items.png", "/item/sword.png"); ModLoader.addRecipe(new ItemStack(Knife, 1), new Object[]{ "#", "#", "|", Character.valueOf('#'), Item.redstone, Character.valueOf('|'), Item.stick}); } public void addRenderer(Map var1) { var1.put(EntityChav.class, new RenderBiped(new ModelBiped(),.5f)); } public String getVersion(){ return "1.4.6"; } } Also would you be able to tell me what this means java.lang.NoSuchMethodError: net.minecraft.src.ModLoader.addOverride(Ljava/lang/String;Ljava/lang/String;)I 2013-04-23 22:32:22 [iNFO] [sTDERR] at net.daneleo5.mob.chav.mod_ItemKnife.load(mod_ItemKnife.java:17) 2013-04-23 22:32:22 [iNFO] [sTDERR] at cpw.mods.fml.common.modloader.ModLoaderModContainer.init(ModLoaderModContainer.java:545) 2013-04-23 22:32:22 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-04-23 22:32:22 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 2013-04-23 22:32:22 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 2013-04-23 22:32:22 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Method.java:601) 2013-04-23 22:32:22 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69) 2013-04-23 22:32:22 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-04-23 22:32:22 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) 2013-04-23 22:32:22 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) 2013-04-23 22:32:22 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:268) 2013-04-23 22:32:22 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140) 2013-04-23 22:32:22 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-04-23 22:32:22 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 2013-04-23 22:32:22 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 2013-04-23 22:32:22 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Method.java:601) 2013-04-23 22:32:22 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69) 2013-04-23 22:32:22 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-04-23 22:32:22 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) 2013-04-23 22:32:22 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) 2013-04-23 22:32:22 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:268) 2013-04-23 22:32:22 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83) 2013-04-23 22:32:22 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:657) 2013-04-23 22:32:22 [iNFO] [sTDERR] at cpw.mods.fml.server.FMLServerHandler.finishServerLoading(FMLServerHandler.java:94) 2013-04-23 22:32:22 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLCommonHandler.onServerStarted(FMLCommonHandler.java:350) 2013-04-23 22:32:22 [iNFO] [sTDERR] at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:135) 2013-04-23 22:32:22 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:458) 2013-04-23 22:32:22 [iNFO] [sTDERR] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) 2013-04-23 22:32:22 [sEVERE] [Minecraft] Encountered an unexpected exception NoSuchMethodError java.lang.NoSuchMethodError: net.minecraft.src.ModLoader.addOverride(Ljava/lang/String;Ljava/lang/String;)I at net.daneleo5.mob.chav.mod_ItemKnife.load(mod_ItemKnife.java:17) at cpw.mods.fml.common.modloader.ModLoaderModContainer.init(ModLoaderModContainer.java:545) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) at com.google.common.eventbus.EventBus.post(EventBus.java:268) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) at com.google.common.eventbus.EventBus.post(EventBus.java:268) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:657) at cpw.mods.fml.server.FMLServerHandler.finishServerLoading(FMLServerHandler.java:94) at cpw.mods.fml.common.FMLCommonHandler.onServerStarted(FMLCommonHandler.java:350) at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:135) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:458) at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) Kind regards dane
-
i need help converting this to work with the server if you can thank you. Also if you can would you be able to walk me through it so i can learn to do it myself package net.daneleo5.mob.chav; import java.util.Map; import net.minecraft.client.model.ModelBiped; import net.minecraft.client.renderer.entity.RenderBiped; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.src.BaseMod; import net.minecraft.src.ModLoader; public class mod_ItemKnife extends BaseMod{ public static final Item Knife = new Knife(350).setItemName("knife"); public void load(){ ModLoader.addName(Knife,"Knife"); Knife.iconIndex = ModLoader.addOverride("/gui/items.png", "/item/sword.png"); ModLoader.addRecipe(new ItemStack(Knife, 1), new Object[]{ "#", "#", "|", Character.valueOf('#'), Item.redstone, Character.valueOf('|'), Item.stick}); } public void addRenderer(Map var1) { var1.put(EntityChav.class, new RenderBiped(new ModelBiped(),.5f)); } public String getVersion(){ return "1.4.6"; } } Also would you be able to tell me what this means java.lang.NoSuchMethodError: net.minecraft.src.ModLoader.addOverride(Ljava/lang/String;Ljava/lang/String;)I 2013-04-23 22:32:22 [iNFO] [sTDERR] at net.daneleo5.mob.chav.mod_ItemKnife.load(mod_ItemKnife.java:17) 2013-04-23 22:32:22 [iNFO] [sTDERR] at cpw.mods.fml.common.modloader.ModLoaderModContainer.init(ModLoaderModContainer.java:545) 2013-04-23 22:32:22 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-04-23 22:32:22 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 2013-04-23 22:32:22 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 2013-04-23 22:32:22 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Method.java:601) 2013-04-23 22:32:22 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69) 2013-04-23 22:32:22 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-04-23 22:32:22 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) 2013-04-23 22:32:22 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) 2013-04-23 22:32:22 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:268) 2013-04-23 22:32:22 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140) 2013-04-23 22:32:22 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-04-23 22:32:22 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 2013-04-23 22:32:22 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 2013-04-23 22:32:22 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Method.java:601) 2013-04-23 22:32:22 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69) 2013-04-23 22:32:22 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-04-23 22:32:22 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) 2013-04-23 22:32:22 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) 2013-04-23 22:32:22 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:268) 2013-04-23 22:32:22 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83) 2013-04-23 22:32:22 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:657) 2013-04-23 22:32:22 [iNFO] [sTDERR] at cpw.mods.fml.server.FMLServerHandler.finishServerLoading(FMLServerHandler.java:94) 2013-04-23 22:32:22 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLCommonHandler.onServerStarted(FMLCommonHandler.java:350) 2013-04-23 22:32:22 [iNFO] [sTDERR] at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:135) 2013-04-23 22:32:22 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:458) 2013-04-23 22:32:22 [iNFO] [sTDERR] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) 2013-04-23 22:32:22 [sEVERE] [Minecraft] Encountered an unexpected exception NoSuchMethodError java.lang.NoSuchMethodError: net.minecraft.src.ModLoader.addOverride(Ljava/lang/String;Ljava/lang/String;)I at net.daneleo5.mob.chav.mod_ItemKnife.load(mod_ItemKnife.java:17) at cpw.mods.fml.common.modloader.ModLoaderModContainer.init(ModLoaderModContainer.java:545) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) at com.google.common.eventbus.EventBus.post(EventBus.java:268) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) at com.google.common.eventbus.EventBus.post(EventBus.java:268) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:657) at cpw.mods.fml.server.FMLServerHandler.finishServerLoading(FMLServerHandler.java:94) at cpw.mods.fml.common.FMLCommonHandler.onServerStarted(FMLCommonHandler.java:350) at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:135) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:458) at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) Kind regards dane