Jump to content

Recommended Posts

Posted

Hey there!

 

Some of the mods out there (i.e More Creeps And Weirdos & Singleplayer Commands) adds a sort of a startup message upon entering a world/server saying:

 

"More creeps and weirdos loaded, version x.xx.xx" Or something.

 

I want this for my mod aswell, and I was wondering, How would I add it?

 

If this wouldn't work, I'd like to code a mod/find a mod which is sort of like a MOTD mod with bukkit - Upon login you're presented with the MOTD, what the time is, and who's online.

 

I'd be very thankful if you were to find a way for me to do this.

 

Thanks! /Falling

Posted

Create a tickHandler called on client side, create an int, then checks if the int is 0, the world its not null, and the player its not null, u send a message to him, for a mod that im developing i use this,

client side tick handler

 

 

public void tickStart(EnumSet<TickType> type, Object... tickData)

{

 

if(DiverseCraft.ticksPassed == 0 && Minecraft.getMinecraft().theWorld != null && Minecraft.getMinecraft().thePlayer != null)

{

 

Hooks.checkForUpdates(Minecraft.getMinecraft().thePlayer);

DiverseCraft.ticksPassed++;

   

}

 

}

 

 

then if has updates availables, its says a msg, if not, its says other message that i can customiza, on the dropbox (where i hosted the files)

Posted

Thanks, but I'm really new to modding, and I don't know java fluently, I've picked some up from a book and from Lua and Lua+.

 

Could you further explain the tick handler thingy, and where to tell the mod what to display?

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.