Jump to content

Hook for player sleeping


That_Martin_Guy

Recommended Posts

Currently there is no good way to access the various variables related to making the player able to sleep. You cannot make the player sleep on something that doesn't return true in the blocks isBed method (like vanilla blocks), change the amount of time the player has to sleep or otherwise interact with the mechanic without using reflection, changing the EntityPlayer object or some other operation that is neither as easy to use as, say, an event, or convenient to create. A way to hook into this mechanic would greatly simplify changing it and would benefit a lot of people I believe.

Link to comment
Share on other sites

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.