Jump to content

Recommended Posts

Posted

So I have a block that tests for certain blocks beside it and if the right block comes up I want it to say a chat message. So how would I do that. I am not interested in using the language registry yet so I just want to say something.

(To the nearest player would be nice as well)

Posted

 

 

par5EntityPlayer.addChatMessage("your text");

 

This will send your text to the player right clicking the block!

 

(1.6.4 tested!)

 

Edit: this should work, just make the block check for a block beside it and display your message.

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.