#(Skullfurious) Is it possible to make a player sleep?
31 messages · Page 1 of 1 (latest)
(Skullfurious) Is it possible to make a player sleep?
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>
Looking to recreate the /lay command from the gsit plugin. (Works in daytime, helps skip nights, etc.)
looks like it might use some kind of fake entity?
Not sure how to blur the player out like they do.
Citizens
entity
animate [<entity>|...] [animation:<name>] (for:<player>|...)
Makes a list of entities perform a certain animation.
Minecraft implements several player and entity animations which the animate command can use, just
specify an entity and an animation.
Player animations require a Player-type entity or NPC. Available player animations include:
ARM_SWING, HURT, CRIT, MAGIC_CRIT, SIT, SLEEP, SNEAK, STOP_SITTING, STOP_SLEEPING, STOP_SNEAKING,
START_USE_MAINHAND_ITEM, START_USE_OFFHAND_ITEM, STOP_USE_ITEM, EAT_FOOD, ARM_SWING_OFFHAND
All entities also have available Bukkit's entity effect list:
<@link url https://h...
There seems to be a sleep option but not sure if that’s for players or for like, villagers
Give that a crack?
Sure, i'll get a chance in a bit. Thanks for the suggestion.
They stand up instantly since it looks like sleeping is controlled by the client.
Does anyone know how to phase the player out like in that example?
It looks like a dark shadow where the player was. Perhaps invisibility?
Ah yes, that seems to be it. But it doesn't show the invisibility icon somehow.
So it looks like make the player fake sit, give them invisibilty, somehow remove the invisibilty potion effect on their screen, and spawn a body double at their location that matches the looking direction of the player.
It would also have to showfake the players armor
since that shit shows up if you have invisibilty for some reason
invisible works
Gonna close this since I have an idea of what I need to do, and I have other questions that are more specific. Will post in showcase if I ever get it working properly.