Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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

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)

  • 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.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.