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

I noticed a few things about the hooks for sleeping.

1) It asks mod hooks if you can sleep without giving the information of the results of the vanilla sleeping system. This would be a rather simple change, having a EnumStatus variable that is set instead of the return statements and moving the event posting till after the initial set of checks. This would be helpful, as I would like to be able to sometimes override the fact that you can only get into a bed at night, but not do anything about monsters around or anything else, and would prefer to avoid potential issues with trying to just copy the code, and having to worry about editing other vanilla behavior.

2) The section of code for deciding if the players actually start their sleep cycle has no forge hooks. This is problematic for me, because I want to sometimes add restrictions to the sleep cycle, so that even if all players on the server are sleeping it won't go through the fade out. It is also difficult as far as I can tell to actually detect when the sleep cycle actually occurs without duplicating the vanilla player tracking, which I would prefer to do as that would make compatibility a bit more of an issue.

I hope that hooks to permit the behaviors I described are implemented, and thank you for all your wonderful work,

Sound Logic

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.