Skip to content

LivingEntity ... add sleep/wakeup #13756

Closed as not planned
Closed as not planned

Description

@ShaneBeee

Is your feature request related to a problem?

Not a problem per se, but I've been using NMS to make a Mannequin sleep.
Currently only HumanEntity/Villager have sleep/wake methods.

Describe the solution you'd like.

Minecraft's LivingEntity class has startSleeping(BlockPos) and stopSleeping methods.
I (for fun) tested this on a few entities to see if it works.
Zombie, sheep, pillager, skeleton... they all work.
Funny results, but they do work.

Describe alternatives you've considered.

Currently using NMS for my Mannequins sleeping

Other

No response

Activity

  1. added theissue type on Apr 5, 2026
  2. yannicklamprecht commented on Apr 5, 2026

    @yannicklamprecht
    Contributor
  3. ShaneBeee commented on Apr 5, 2026

    @ShaneBeee
    ContributorAuthor

    From my experience:

    a) teleported to foot of bed, set pose
    b) teleported to head of bed, set pose
    c) used NMS LivingEntity#startSleeping(pos=head of bed)

    Image
  4. changed the title [-]LivingEntity ... add sleep/wakup[/-] [+]LivingEntity ... add sleep/wakeup[/+] on Apr 5, 2026
  5. nickrodii commented on Apr 6, 2026

    @nickrodii

    Added in #13758 (also allowing mannequins to sleep/wakeup under these methods as well)

  6. Lulu13022002 commented on Apr 20, 2026

    @Lulu13022002
    Contributor

    Setting the pose works fine with the correct position/rotation:

    Image

    So for cosmetic use you can already do it now.

  7. Doc94 commented on Oct 16, 2026

    @Doc94
    SponsorMember

    The current sleep behaviour in Vanilla make more hard to implement an API and avoid the issues mentioned in the last PR.

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

Metadata

Metadata

Assignees

No one assigned

    Fields

    No fields configured for Feature.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions