Posted January 7, 201312 yr 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
January 7, 201312 yr 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)
January 8, 201312 yr http://www.minecraftforge.net/forum/index.php?topic=1303.0 this post may also be helpful to you
January 8, 201312 yr Author 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.