Jump to content

Recommended Posts

Posted

What i need:
When my own block is destroyed i will see a custom message in chat.

But, this message mustn't display who has sent it.

Important thing is that, i must be able to format the text.

What i found: 

@Override
 public void onBlockDestroyedByPlayer(World world, int x, int y, int z, int metadata ) {
     if (!world.isRemote) {
     Minecraft.getMinecraft().thePlayer.sendChatMessage("Example");
     } else {
     return;
     }

 

But i can't format this text and chat shows, that i have sent it.

So what can i do to force any messages  displaying in chat only for me and without sender?
 

  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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