Hello, I have used packet to make a player sleep inside a bed but the player can't leave the bed with button
what is the packet to use ?
I have used this function to force the player to sleep.
Sorry for my bad English
what is the packet to use ?
I have used this function to force the player to sleep.
- function packetBedAnimation(player: player, bed: location):
- set {_packet} to new play_server_bed packet
- set location pinfo 0 of {_packet} to {_bed}
- set {_player}'s world pentity 0 of {_packet} to {_player}
- send {_player} packet {_packet}
Sorry for my bad English