So, a friend of mine and I were messing around in mc when he jokingly suggested to add this to RV and at first glance it doesn't seem possible, but upon investigation, we discovered a way to achieve shockingly realistic positions for procreation...
When a player model is in crawling position, it's hitbox is cut in half vertically, but it isn't modified horizontally or rotated in any way. Since the playermodel alway stays at the center of the corresponding hitbox, this leads to the playermodel floating above the ground just enough to fit another model below it.
When a player/NPC is lying in bed, this doesn't happen, because someone at mojang thought of this and ensured that a playermodel touches the bed visually when sleeping.
So, we now have a way to force players/NPCs into a position where they are lying face up, visually touching the ground/bed and a second position face down just on top of the first model. Minecraft even raises the head of the player on top just a bit, which prevents it from glitching into the head of the player in bed and makes it seem even more realistic.
Here's how to achieve this with a plugin:
- Place the NPC a player is married to in a bed, sleeping.
- Place the player 1 block above the beds center and simmulate barrier blocks 2 blocks above the bed (If you don't now how to do that, just borrow that code from the open source plugin "GSit" or place actual barriers temporarily)
- Prevent the player on top from moving forward or sideways during procreation (maybe move the player briefly to simmulate movement if you wanna go crazy with this)
- Prevent the placer from exceeding certain limits when looking around, because the playermodel starts rotating whenn looking too much left or right
- Have heart particles appear around the top half of the bed / around the two player heads
If you need some more information, let me know!
...and here is some footage:
![Screenshot_2024-06-18_124547](https://private-user-images.githubusercontent.com/96748385/340646706-1186327e-bb1a-409d-b50b-47f09a2eab65.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE2MzUwNzEsIm5iZiI6MTcyMTYzNDc3MSwicGF0aCI6Ii85Njc0ODM4NS8zNDA2NDY3MDYtMTE4NjMyN2UtYmIxYS00MDlkLWI1MGItNDdmMDlhMmVhYjY1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjIlMkZ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19pZD0wIn0.ufh25h5oqguv8x6BZRhl0geKByVfvjb_jlOx2wXMq6E)
![Screenshot_2024-06-18_124749](https://private-user-images.githubusercontent.com/96748385/340646722-299c684e-0a80-400b-8f65-3be6b0d28228.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE2MzUwNzEsIm5iZiI6MTcyMTYzNDc3MSwicGF0aCI6Ii85Njc0ODM4NS8zNDA2NDY3MjItMjk5YzY4NGUtMGE4MC00MDBiLThmNjUtM2JlNmIwZDI4MjI4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIyVDA3NTI1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc0MmUxZThlN2NkMjQzYmE1Y2IwNjhkNDMxNzM5ZDVmNTU1NGJjY2IwM2VmNTNkNmZmODZjOGM2NjIwM2Q3MjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0._9bJaXPqg3hz3EUA-__PFlIzSTWWp7d4XXHbNpF0TAg)