Minecraft Data Packs / Quality of Life

Sleeping Bags 2 - Your new stylish travel Bed! (That actually works) | now with directional placement

  • check_circle Advancements
  • check_circle Functions
  • check_circle Predicates
  • check_circle Recipes
  • 6,247 views, 55 today
  • 918 downloads, 12 today
  • 28
  • 24
  • 10
imalittlhigh avatar imalittlhigh
Level 42 : Master Sweetheart
17
This Pack adds functioning Sleeping Bags in all colours.


This pack is Multiplayer friendly.

To set the minimum player-sleep-count for multiplayer run /function sbags2:set/sleeppercent

This will give you a little chat-gui to set the percentage of players required to sleep.
Default is 100%.

You can place the Bag on every Block except for Lava and Water.
If carpet normally breaks on those Blocks, it will break the Bag if it gets a blockupdate.

The Bag can also replace / destroy naturals blocks such as grass and flowers if they are in the way of placing it. It will not destroy any other blocks though.

Bags check for the same conditions Beds check for. (except for the intentional game design one)

Sleeping in a Bag does not set your Spawnpoint.

If you want to get up, just right-click the pillow while you´re laying in the bag.



This is how they are crafted:
(All Wool colours available)
Sleeping Bags 2 - Your new stylish travel Bed! (That actually works) | now with directional placement Minecraft Data Pack




Placing a Bag
To place a Bag drop the Item on a valid Block.

You can not place a Bag in Water or Lava.

Sleeping Bags 2 - Your new stylish travel Bed! (That actually works) | now with directional placement Minecraft Data Pack



The Bag will automatically choose the orientation you were looking it when throwing the Item.



To break the Bag just break the Carpet its made off.
The Bag will be destroyed and you will get the Item back.


If you want to remove the Datapack be sure to run this function first: sbags2:meta/remove
Otherwise you will have indestructible pillows in your world.



U got any Bugs or feedback? Hit me up here or on Discord!
CompatibilityMinecraft 1.17
toMinecraft 1.19
Tags

7 Update Logs

Update #7 : by imalittlhigh 01/25/2023 5:53:34 amJan 25th

Messed up some version control, now dimension checking works again
Forgot to add the check for hostile mobs - now included
LOAD MORE LOGS

Create an account or sign in to comment.

1
01/30/2023 2:35 pm
Level 3 : Apprentice Artist
BlackedIRL
BlackedIRL avatar
Not working on 1.19.2
During the night hours it won't let me use it and just drops the message "You can only sleep during the night or thunderstorms"
2
01/30/2023 4:06 pm
Level 42 : Master Sweetheart
imalittlhigh
imalittlhigh avatar
hmm, just checked with this download and it worked. The pack checks for the ingame time so im not sure why it wouldnt work. Are u in multiplayer? maybe a /reload or relog would fix the problem?
And since i made this in 1.19.2 im not sure what the problem could be ^^
1
09/28/2022 1:23 amhistory
Level 4 : Apprentice Miner
Jasdan
Jasdan avatar
Look, I am no expert, but you seem to be one, could you add a function that makes it so the Datapack checks the amount of players currently in world, and only if at least x (like, 50 counting those trying to use the sleeping bag) % of them are trying to sleep, then the sleeping bag functions to advance time will kick in?
This would be optional of course, but highly appreciated.
1
01/18/2023 10:01 am
Level 42 : Master Sweetheart
imalittlhigh
imalittlhigh avatar
Its now in this version ^^ ty for the feedback =)
1
09/14/2022 5:25 amhistory
Level 5 : Apprentice Miner
UnclearStunts
UnclearStunts avatar
any chance on a 1.19 update?
1
09/14/2022 7:16 am
Level 42 : Master Sweetheart
imalittlhigh
imalittlhigh avatar
I havent tested it jet, but i would be surprised if it didnt work =)
lmk if/what doesnt work tho
1
01/29/2022 1:32 pmhistory
Level 1 : New Miner
User4015927G
User4015927G avatar
Hey,
this is the only data pack I found that adds another bed.
How did you tackle this? I looked at the data pack and there seems to be a of of code. Did you replicate the function of the bed from scratch?
What I would like to have is a bed that works exactly like the original bed but that only differs in its look (tatami mats).
Changing the look and the crafting recipe itself would be easy but when based on this data pack, adding spawn point, changing MP sleep behaviour back and sleep time is kind of challenging...
1
01/30/2022 12:49 pm
Level 42 : Master Sweetheart
imalittlhigh
imalittlhigh avatar
Hey man, Im down to explain, but not in text ^^
Just hit me up on discord (imalittlhigh#3104) and i can explain in a call or something :)
1
12/01/2021 9:55 am
Level 19 : Journeyman Artist
RoseRocket
RoseRocket avatar
Yes finally! I was hoping someone would make a datapack like this, awesome job :D
2
12/01/2021 12:41 pmhistory
Level 42 : Master Sweetheart
imalittlhigh
imalittlhigh avatar
Thanks bro, just be sure to use the newest version as there was a bug in older versions where it would not work on servers :)
Planet Minecraft

Website

© 2010 - 2023
www.planetminecraft.com

Welcome