Skip to content

Added sleep() and wakeup() API methods for LivingEntity instances#13758

Open
nickrodii wants to merge 2 commits intoPaperMC:mainfrom
nickrodii:sleep-wakeup-api-methods
Open

Added sleep() and wakeup() API methods for LivingEntity instances#13758
nickrodii wants to merge 2 commits intoPaperMC:mainfrom
nickrodii:sleep-wakeup-api-methods

Conversation

@nickrodii
Copy link
Copy Markdown

@nickrodii nickrodii commented Apr 6, 2026

Adds feature requested in #13756

It's worth noting that this is different from the sleep Pose since this considers vanilla sleeping flow, rather than being a cosmetic pose.

@nickrodii nickrodii requested a review from a team as a code owner April 6, 2026 02:02
@github-project-automation github-project-automation bot moved this to Awaiting review in Paper PR Queue Apr 6, 2026
@Warriorrrr Warriorrrr linked an issue Apr 11, 2026 that may be closed by this pull request
@kennytv
Copy link
Copy Markdown
Member

kennytv commented Apr 16, 2026

What happens if you call these on non-avatar entities?

@ShaneBeee
Copy link
Copy Markdown
Contributor

ShaneBeee commented Apr 18, 2026

What happens if you call these on non-avatar entities?

When I made the original issue, I was testing using the NMS methods on a bunch of entities.
It works. Some are funny. Like making a sheep sleep, they sleep in the bed but their positioning is just silly.
Entities that stand tall (pillagers, zombies, skeletons, etc) look totally natural.

Screenshot 2026-04-18 at 4 40 37 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Awaiting review

Development

Successfully merging this pull request may close these issues.

LivingEntity ... add sleep/wakeup

3 participants