Jump to content

Custom Entity Name Not Showing


b1u3m0nk3y13

Recommended Posts

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?

Link to comment
Share on other sites

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-

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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-

Link to comment
Share on other sites

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-

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.