Bed Bugs
A simple mod that adds some tools (such as a button to the sleeping GUI and a command), allowing a player to kick themselves from the server (and therefore their bed).
This fixes the annoying issue of being stuck in a bed, a vanilla Minecraft bug, without having to completely restart the game.
Also adds persistent chat, allowing you to continue typing, uninterrupted, after waking up from a bed (another vanilla "bug").
Kick Button
(Requires Bed Bugs to be installed on the client)
When you typically press 'Leave Bed', that is exactly what you expect to happen. And, assuming that is the case (as it usually is), then this mod won't do a thing, staying nice and unobtrusive.
If however, you press the 'Leave Bed' button and you don't leave the bed, a button will pop up, allowing you to kick yourself from the server.
- If you were playing Singleplayer
- You will be redirected back to the Singleplayer world selection screen.
- If you were playing on a server
- You will be redirected back to the Multiplayer server selection screen.
The button also has a tooltip describing its actions in-game, to explain what it does when clicked. It will appear after hovering your mouse over the 'Kick Me' button for a short while.
Here's a quick [0:17] video demonstration. Note that the player goes from being stuck in a bed to back in-game ready to play in only 5 seconds.
*The 'Leave Bed' button not working as it normally does is just some temporary code I used to make this video possible.
Kick Command
(Requires Bed Bugs to be installed on the server if using a dedicated server/playing Multiplayer)
Bed bugs just adds one command (with tab completion).
/bedbugs kick [player]
This kicks the player specified. If no one is specified, it will attempt to kick the command sender.
Persistent Chat
(Requires Bed Bugs to be installed on the client)
Typically, if you start typing a message in chat, and then finish sleeping and wake up, your message disappears forever. Bed Bugs fixes that, allowing any half completed messages to stay so that you don't have to retype anything.
Client/Server Side Only
You don't necessarily have to install Bed Bugs on both the client and the server. You will probably just want to install it on both, but here are the details for those interested:
- Client (with Bed Bugs) -> connecting to -> Server (with Bed Bugs)
- The button, command, and chat persistence work.
- Probably the best and simplest option.
- Client (with Bed Bugs) -> connecting to -> Server (without Bed Bugs)
- Only the button and chat persistence work.
- Useful as any client can connect and still use the button without the server needing to add any mods.
- Client (without Bed Bugs) -> connecting to -> Server (with Bed Bugs)
- Only the command works.
- Useful as the command can still be used to escape from beds, and it doesn't require the client to install any more mods.
Bug Reports
- Please report them on the issue tracker. Feedback and feature requests should also be directed there.
Open Source
Modpacks
- Yes please, feel free to include this in any normal, non-monetary (i.e. EULA-compliant) modpack. All I ask is that you provide me feedback if you have any (both good and bad). Thanks, and enjoy!
Contact Me
- What works best for me is either through the messaging system here on CurseForge, or on esper.net IRC on channel #gr8pefish, or on the typical modded MC Discord channels (e.g. MMD).
Donation
- If you like my work and want to help out, please consider donating. I would sincerely appreciate it and could definitely use the support! Thanks :)
Check out my other mods!
Is this still needed for Forge 1.12.2 versions in 2020?
Bed bugs are a small, very mobile critter and they can walk easily. The easiest way to control these bugs is to prevent them from coming inside the home. To stop these bugs you need to get in contact with the exterminator bed bugs services who supply the best services to eliminate the pest from the house.
In reply to gladysvegas:
In reply to 0hallowedichor0:
In reply to gladysvegas:
um, send that to Wikipedia? Not curseforge
i like to think that when you experience this bug your player is having sleep paralysis
This mod is a life saver.
In reply to BlazeKev:
"Helping people get out of bed since 2016."
- Bed Bugs
does it work on 1.12.2?
In reply to Forge_User_87922918:
Can you add something like that?
When you want to sleep press RMB on bed and don't trigger sleep but change the time and set spawn
In reply to Forge_User_95027224:
Hey There! I did create a German Lang file for your Mod! U wanna have it? Just Watch your folder
https://www.dropbox.com/sh/im13uvycarg2fu0/AACnr8mLTjNo2H3jYAe_g-vZa?dl=0
Since your bit on mod packs ask to let you know where this is used, I've recently put out the first release version of my new pack Cinders (https://minecraft.curseforge.com/projects/cinders) which includes your mod.
(Okay, technically you asked to give the heads up if I expect the pack to be popular. It probably won't be, but I can dream)
Hello, I am using version 1.10.2 and when the bed bug happened, the "kick me" button popped up as normal. However, pressing the button caused my entire game to freeze. Unfortunately, since I had to force close the program, I have no crash report. But I still wanted to mention it.
Hmm, very strange. Were you able to replicate this bug, or was it a 1-time occurrence? I'd like to know how it happened so I can fix it for the future.
It happened again, but I don't know if I can purposefully replicate it. I'm not even sure how to make the bed bug itself happen; it just seems to happen whenever it wants to. I had the original bed bug happen twice in the same world today, and your mod worked just fine. But the third time the game froze.
Not sure it will help or not, but here is a list of mods that i was using:
Antique Atlas
Applecore
Appleskin
Architecturecraft
AutoRegLib
Baubles
BDLib
BedBugs
Better FPS
Birds Nests
Bookshelf
Botania
Chisel
Druidry
Embers
Enchanting Plus
Ender Compass
Ender Zoo
Fast Leaf Decay
Forestry
Gendustry
Harvest
Inventory Pets
Iron Backpacks
Jei
Jei Bees
Keeping Inventory
Mantle
MCMultiPart
More Bees
Multimine
Mystical Agriculture
Natura
Optifine
Pam's Harvestcraft
Project E
Quark
Refined Storage
Rotten Flesh To Leather
Roguelike Dungeons
Roots
Realistic Terrain Generator
Spice of Life
Tinkers Construct
Tinker's Addons
Tinker's Tool Levelling
Toro Health
Totemic
Trash Slot
Waila
Waila Harvestability
Wawla
Xaero's Minimap
Yarr Cute Mob Models Remake
In reply to gr8pefish: