[MC-3715] Beds and the /teleport command Created: 22/Nov/12 Updated: 15/Aug/18 Resolved: 15/Aug/18 |
|
| Status: | Resolved |
| Project: | Minecraft: Java Edition |
| Component/s: | None |
| Affects Version/s: | Minecraft 1.4.5, Snapshot 12w50a, Minecraft 1.4.6, Minecraft 1.4.7, Minecraft 1.8, Minecraft 1.8.5, Minecraft 1.8.8, Minecraft 15w37a, Minecraft 15w44b, Minecraft 15w45a, Minecraft 1.8.9, Minecraft 1.9 Pre-Release 1, Minecraft 1.9 Pre-Release 4, Minecraft 1.9, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, Minecraft 16w33a, Minecraft 16w35a, Minecraft 16w42a, Minecraft 1.11.2, Minecraft 1.12 Pre-Release 6, Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 18w22c |
| Fix Version/s: | Minecraft 18w33a |
| Type: | Bug | ||
| Reporter: | FireHunterX | Assignee: | rockenroll4life (Josh Letellier) |
| Resolution: | Fixed | Votes: | 11 |
| Labels: | bed, teleport | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| CHK: | |||||||||||||||||||||||||||||
| Confirmation Status: | Confirmed | ||||||||||||||||||||||||||||
| Description |
The bugYou can /teleport yourself out of a bed and you will be teleported, but the sleeping process continues. Upon clicking "Leave Bed" you will return to the side of the bed. |
| Comments |
| Comment by Greg Milson [ 03/Oct/17 ] |
|
Confirmed in 1.12.2 |
| Comment by [Mod] bemoty [ 14/Aug/17 ] |
|
Can confirm for MC 1.12.1. |
| Comment by Alexander [ 21/Oct/16 ] |
|
Confirmed for 16w42a |
| Comment by Immaterialise [ 17/Feb/16 ] |
|
Confirmed for 1.9-pre1 |
| Comment by Samuel Finch [ 13/Jul/15 ] |
|
you should just make Minecraft check every few ticks whether or not there is a bed under you when you're asleep, and if not, have it wake you up. |
| Comment by Marcono1234 [ 24/May/15 ] |
|
Confirmed for
Example command /summon MinecartCommandBlock ~ ~1 ~ {Command:/setblock ~ ~-4 ~ redstone_block,Riding:{id:MinecartCommandBlock,Command:"/scoreboard objectives add sleepingValue dummy",Riding:{id:MinecartCommandBlock,Command:/fill ~ ~2 ~ ~ ~2 ~ redstone_block,Riding:{id:MinecartCommandBlock,Command:/setblock ~ ~1 ~ command_block 0 replace {Command:/fill ~ ~1 ~ ~ ~1 ~ stone 0 replace redstone_block},Riding:{id:MinecartCommandBlock,Command:/setblock ~ ~3 ~ command_block 0 replace {Command:/fill ~ ~-1 ~ ~ ~-1 ~ redstone_block 0 replace stone},Riding:{id:MinecartCommandBlock,Command:/setblock ~-1 ~2 ~ command_block 0 replace {Command:"/scoreboard players set @a sleepingValue 0"},Riding:{id:MinecartCommandBlock,Command:/setblock ~1 ~2 ~ command_block 0 replace {Command:"/scoreboard players set @a sleepingValue 1 {Sleeping:1b}"},Riding:{id:MinecartCommandBlock,Command:/setblock ~ ~2 ~-1 command_block 0 replace {Command:"/tp @a[score_sleepingValue_min=1] ~1000 ~ ~"},Riding:{id:MinecartCommandBlock,Riding:{id:FallingSand,Time:1,Block:activator_rail,Riding:{id:FallingSand,Time:1,Block:redstone_block,Riding:{id:FallingSand,Time:1,Block:stone,Riding:{id:FallingSand,Time:1,Block:command_block,TileEntityData:{Command:/fill ~ ~-2 ~ ~ ~3 ~ air},Riding:{id:FallingSand,Time:1,Block:stone,Riding:{id:FallingSand,Time:1,Block:command_block,TileEntityData:{Command:/kill @e[type=MinecartCommandBlock,dy=6]}}}}}}}}}}}}}}}}
Crash [16:17:54] [Server thread/ERROR]: Encountered an unexpected exception java.lang.OutOfMemoryError: Java heap space at amw.<init>(SourceFile:9) ~[1.8.5.jar:?] at anj.a(SourceFile:176) ~[1.8.5.jar:?] at anj.a(SourceFile:94) ~[1.8.5.jar:?] at ld.b(SourceFile:160) ~[1.8.5.jar:?] at ld.a(SourceFile:204) ~[1.8.5.jar:?] at le.a(SourceFile:766) ~[1.8.5.jar:?] at net.minecraft.server.MinecraftServer.a(SourceFile:364) ~[1.8.5.jar:?] at net.minecraft.server.MinecraftServer.A(SourceFile:553) ~[1.8.5.jar:?] at bpo.A(SourceFile:152) ~[1.8.5.jar:?] at net.minecraft.server.MinecraftServer.run(SourceFile:451) [1.8.5.jar:?] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_25] [16:18:08] [Server thread/INFO]: Stopping server [16:18:09] [Server thread/INFO]: Saving players [16:18:13] [Server thread/ERROR]: Exception stopping the server java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:3236) ~[?:1.8.0_25] at sun.misc.IOUtils.readFully(IOUtils.java:60) ~[?:1.8.0_25] at java.util.jar.JarFile.getBytes(JarFile.java:425) ~[?:1.8.0_25] at java.util.jar.JarFile.getManifestFromReference(JarFile.java:193) ~[?:1.8.0_25] at java.util.jar.JarFile.getInputStream(JarFile.java:461) ~[?:1.8.0_25] at sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:776) ~[?:1.8.0_25] at sun.misc.Resource.cachedInputStream(Resource.java:77) ~[?:1.8.0_25] at sun.misc.Resource.getByteBuffer(Resource.java:160) ~[?:1.8.0_25] at java.net.URLClassLoader.defineClass(URLClassLoader.java:442) ~[?:1.8.0_25] at java.net.URLClassLoader.access$100(URLClassLoader.java:73) ~[?:1.8.0_25] at java.net.URLClassLoader$1.run(URLClassLoader.java:367) ~[?:1.8.0_25] at java.net.URLClassLoader$1.run(URLClassLoader.java:361) ~[?:1.8.0_25] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_25] at java.net.URLClassLoader.findClass(URLClassLoader.java:360) ~[?:1.8.0_25] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_25] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) ~[?:1.8.0_25] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_25] at lm.c(SourceFile:168) ~[1.8.5.jar:?] at lx.u(SourceFile:777) ~[1.8.5.jar:?] at net.minecraft.server.MinecraftServer.t(SourceFile:383) ~[1.8.5.jar:?] at bpo.t(SourceFile:315) ~[1.8.5.jar:?] at net.minecraft.server.MinecraftServer.run(SourceFile:484) [1.8.5.jar:?] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_25] Exception in thread "Server thread" java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:3236) at sun.misc.IOUtils.readFully(IOUtils.java:60) at java.util.jar.JarFile.getBytes(JarFile.java:425) at java.util.jar.JarFile.getManifestFromReference(JarFile.java:193) at java.util.jar.JarFile.getInputStream(JarFile.java:461) at sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:776) at sun.misc.Resource.cachedInputStream(Resource.java:77) at sun.misc.Resource.getByteBuffer(Resource.java:160) at java.net.URLClassLoader.defineClass(URLClassLoader.java:442) at java.net.URLClassLoader.access$100(URLClassLoader.java:73) at java.net.URLClassLoader$1.run(URLClassLoader.java:367) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:360) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at net.minecraft.server.MinecraftServer.run(SourceFile:469) at java.lang.Thread.run(Thread.java:745) |
| Comment by [Mod] Sonicwave [ 03/Oct/14 ] |
|
As ancient as this issue is, confirmed for 1.8. You are still able to /tp when in a bed, although you will be able to sleep (repeatedly running the command seems to slow the process down). If you get far away enough chunks turn invisible/stop loading, and upon waking up all blocks are invisible until relogging or F3+A. |
| Comment by [Mod] Ezekiel (ezfe) [ 28/Jan/14 ] |
|
Is this still a concern in the latest Minecraft version 14w04b? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. |
| Comment by Tails [ 20/May/13 ] |
|
Unable to reproduce the "not beeing able to sleep" part. |
| Comment by fake fakes [ 20/May/13 ] |
|
Happened to me in 13w19a |
| Comment by FireHunterX [ 20/May/13 ] |
|
I haven't tried this recently, but to go along with Dek it TP's you and you cannot sleep. Clicking "Leave bed" would bring you back to the bed. |
| Comment by Tails [ 06/Apr/13 ] |
|
As of 1.5.1 you're still getting teleported while in bed, but you can sleep and awake at the bed. |
| Comment by Dek [ 13/Feb/13 ] |
|
Also an issue when using /tp command with a command block, you get teleported to your desired location, but you remain lying on the ground and not being able to sleep. Very annoying. |
| Comment by Chalmes (Jon) [ 22/Nov/12 ] |
|
Confirmed. Recommend restricting at least the tp command when in bed. |