Posted July 25, 201312 yr I am having an issue with my custom mob for my mod. Okay, so my mobs name is "Amberoguia Protector," but that doesn't show up when I am killed by one of these mobs in my server game. In a client world, it says "B1u3m0nk3y13 was killed by an Amberoguia Protector", however, in the server game, after I recompile and re-obfuscate, when I put the mod into the game, and I am killed by one, it says "B1u3m0nk3y13 was killed by entity.Protector.name". Is it me, or Forge?
July 25, 201312 yr can we have *some* code to work with ? I am killed by one of these mobs in my server game. does that mean you run in eclipse bvoth a client and a server, connect to teh server and get killed and THAT doesnt work ? how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
July 25, 201312 yr Author Yes... When connecting to a server, it does not work, but when I am just in single player, it does... What code should I give? Here is how I registered it in my Base Mod class: ModLoader.registerEntityID(EntityProtector.class, "Protector", protID); ModLoader.addSpawn("Protector", 8, 1, 2, EnumCreatureType.monster); ModLoader.addLocalization("entity.Protector.name", "Amberoguia Protector"); EntityList.entityEggs.put(Integer.valueOf(protID), new EntityEggInfo(protID, 0xFFB300, 0xFF0000)); And sorry for anything ignorant, but I'm new at this...
July 25, 201312 yr ModLoader.addLocalization("entity.Protector.name", "Amberoguia Protector"); 1: modloader ? why ? 2: i dont think thats right that should actually be something like: "com.hydroflame.entity.PenisMonster" com.hydroflame.entity is the package name PenisMonster is the class name how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
July 25, 201312 yr Author My reasons for ModLoader? IDK, it just seemed simpler... Do you suggest any other code that I should use instead of ModLoader.addLocalization? And, if that's not right, why would it work in the single player??
July 25, 201312 yr i edited my post sorry how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
July 25, 201312 yr Author It's fine.. But so are you saying to change entity.Protector.name, to b1u3m0nk3y13.amberoguia.EntityProtector (Which is my package and class)?
July 25, 201312 yr yeah i think that would make more sens nope i digged in the code a little and realise im a fucking retard, that not it how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
July 25, 201312 yr well i cant say for sure its not that but i know its not "package.classname" since i have no idea (and i think anyway you're suppose to use Forge not Modloader (even if they are merge a little)) heres my code to register entities :\ EntityRegistry.registerModEntity(EntityFlameBreath.class, "flamebreath", 6, this, 350, 2, false); sorry about that how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
July 25, 201312 yr "flamebreath" is the name how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.