LivingEntity ... add sleep/wakeup
- Dominant language
- Java
- Stars
- 12.7k
- Forks
- 3.5k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 11
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the Java API definitions for LivingEntity and the existing sleep/wake methods on HumanEntity and Villager. Compare those APIs with Minecraft's LivingEntity startSleeping(BlockPos) and stopSleeping methods, and check the linked pull request for the current direction. Done means the intended sleep and wake methods are exposed consistently for LivingEntity.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100