#(Mars) how to make an npc sleep properly on a bed with command
52 messages · Page 1 of 1 (latest)
(Mars) how to make an npc sleep properly on a bed with command
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>
!c sleep
Citizens
npc
sleep (<location>)
Causes the NPC to sleep. To make them wake up, see !command Stand.
Makes the linked NPC sleep at the specified location.
Use !command Stand to make the NPC wake back up.
in theory just give the location of the bed block for that
might matter head vs foot of the bed, not sure offhand
Yeah that’s what I mean
I try the head block and the foot block but the npc always ends up like off to the side or sticking out over the top or diagonal laying across it
It never lays on the bed properly
I can get it to do so like manually everytime when I tp it, but if I use “stand” and then try to make it go back to sleep, it’s hanging off the bed always. (Simulating waking the npc up, and him going back to sleep is the desired outcome)
It’s for a quest where you have to sneak around and can’t wake the guy up. So if you wake him up he stands, you start over, and he should go back to sleep in the bed, but his position always gets messed up
er... it's a player type NPC right?
only player-type can properly sleep in beds
villagers can but differently
anything else just can't
Also make sure you're using the bed block
ie not the block above it
Did you already try to teleport the npc to the headpart, after reaching the actual location? I know its just a workaround, but for me its working better than just walk and sleep.
yup
yup
yeah ive tried a few different solutions but the only way ive gotten it to work is if i go to the spot on the bed, do /npc tphere and then make em sleep
i can show you exactly in a little bit when i can get on the game
ive had to try weird ways to get the location, hoping it would be more precise or something but it doesnt work out.
i will double check this too. maybe teleporting to the block above the bed and then sleeping is the problem
@vivid tapir @rugged light y'all both overcomplicating it something?
shouldn't be manually teleporting at all, just input a location to the sleep command
(the location being the head side of the bed)
i found why its working
@rugged light you need to setup the location on the ground where the headpart actually is placed on, not where you stand when standing on the head part
right loc
wrong loc
What
The location needs to be the bed block itself
not the ground, not the air
The bed block.