Jump to content

Recommended Posts

Posted

I have a custom weapon and was wondering if their is any way to have a unique death message when killed by it?

Legend of Zelda Mod[updated September 20th to 3.1.1]

Extra Achievements(Minecraft 1.8!)[updated April 3rd to 2.3.0]

Fancy Cheeses[updated May 8th to 0.5.0]

Posted

If you make a new instance of a DamageSource, you can add a custom death message for it via the LanguageRegistry.

 

DamageSourceSword class:

 

  Reveal hidden contents

 

 

In your mod file, preferably in @PreInit():

 

  Reveal hidden contents

 

 

The enders are everywhere. You can't escape...

Posted
  On 7/3/2013 at 3:01 AM, StrangeOne101 said:

If you make a new instance of a DamageSource, you can add a custom death message for it via the LanguageRegistry.

 

DamageSourceSword class:

 

  Reveal hidden contents

 

 

In your mod file, preferably in @PreInit():

 

  Reveal hidden contents

 

 

It says the following imports don't exist:

import net.minecraft.entity.EntityLivingBase;
import net.minecraft.util.ChatMessageComponent;

Legend of Zelda Mod[updated September 20th to 3.1.1]

Extra Achievements(Minecraft 1.8!)[updated April 3rd to 2.3.0]

Fancy Cheeses[updated May 8th to 0.5.0]

Posted
  On 7/3/2013 at 6:03 PM, LemonLake said:

If you're using Eclipse on Windows, use this key combo:

CTRL + SHIFT + O

It should sort your imports.

That does not solve my issue...

it actually makes it worse.

Legend of Zelda Mod[updated September 20th to 3.1.1]

Extra Achievements(Minecraft 1.8!)[updated April 3rd to 2.3.0]

Fancy Cheeses[updated May 8th to 0.5.0]

  • 3 weeks later...
Posted
  On 7/3/2013 at 6:12 PM, dude22072 said:

  Quote

If you're using Eclipse on Windows, use this key combo:

CTRL + SHIFT + O

It should sort your imports.

That does not solve my issue...

it actually makes it worse.

Is this in 1.6.2?  I believe both of those classes were added as of the 1.6.2 update

Posted

ctrl+shift+o will never make it worst, if you're getting more error because of it it means that the fix you were trying to do is actuallly wayyy worst then the result after ctrol sihft o

 

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

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