Jump to content

Recommended Posts

Posted

How do I add new lines to the tooltip of my block in 1.7.2? In 1.6.4 there was the addInformation() method, but that seems to be missing in 1.7.2. Does anyone know what it has been replaced with?

Posted

That's what I was trying to avoid initially but now I've realized I have to use NBT anyway, so that's probably the most efficient and elegant way to do that, I guess.

Posted

I haven't messed around with 1.7 yet, but I suggest giving the block it's own ItemBlock, and using the addInformation() method to that.

if (user.hasKnowledgeOfJava) {

    if (user.question.hasCode) {

        return interpetHelpfulResponse(user.getQuestion());

    } else {

        return "Could you post your code please?";

    }

} else {

    return "Learn some freaking Java!";

}

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.