Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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?

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-

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

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-

  • 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??

i edited my post sorry

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

  • Author

It's fine..

 

But so are you saying to change entity.Protector.name, to b1u3m0nk3y13.amberoguia.EntityProtector (Which is my package and class)?

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-

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-

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

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.