[Mod] Beds [beds]

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

[Mod] Beds [beds]

by PilzAdam » Post

Hello everyone!
I have made a bed mod. The bed allows you to sleep at the night until the next morning.
To use the bed you first have to craft it:

Code: Select all

white wool  wool  wool
  stick          stick
(Theres no "normal" way to get wool so you can use the commands "/giveme wool:color")
The bed will have the color of the two wools that arent white.
If you have crafted it you can place it anywhere. You always place the bottom part of the bed and the top part appears in your view direction.
To go to sleep you have to hit the bed with a rightclick. If its night you sleep until the next morning. When you want to leave the bed hit the bed again with a rightclick.

Special thanks goes to thefamilygrog66 who has done the colored beds.

License:
Everything is WTFPL.

Depends:
  • default
  • wool
GitHub:
https://github.com/PilzAdam/beds

Download:
https://github.com/PilzAdam/beds/zipball/master
0.4.6 version:
http://github.com/PilzAdam/beds/archive ... 1dbe9b.zip

Good night!
Last edited by PilzAdam on Thu Apr 25, 2013 13:49, edited 1 time in total.

User avatar
Topywo
Member
Posts: 1721
Joined: Fri May 18, 2012 20:27

by Topywo » Post

The bed mod works!

You did know about this one: http://minetest.net/forum/viewtopic.php?id=1432 ?

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

Topywo wrote:The bed mod works!

You did know about this one: http://minetest.net/forum/viewtopic.php?id=1432 ?
bgsmithjr wrote: Link broken until further notice.
I want to make a bed mod that works.
Last edited by PilzAdam on Tue Jul 31, 2012 15:36, edited 1 time in total.

User avatar
Topywo
Member
Posts: 1721
Joined: Fri May 18, 2012 20:27

by Topywo » Post

Ok, sorry, didn't try the link because I downloaded it a while ago.

Well it works and you do a lot of players a pleasure with it, so awesome!

edit:typo :-)
Last edited by Topywo on Tue Jul 31, 2012 15:38, edited 1 time in total.

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

Topywo wrote:Ok, sorry, didn't try the link because I downloaded it a while ago.

Well it works and you do a lot of players a pleasure with it, so awesome!

edit:typo :-)
Thanks

Josh
Member
Posts: 1146
Joined: Fri Jun 29, 2012 23:11
Location: Victoria, Australia

by Josh » Post

Hey PilzAdam. Thanks for this great mod i installed it & it's running fine!

leo_rockway
Member
Posts: 211
Joined: Tue Jul 31, 2012 20:37

by leo_rockway » Post

I was working on a bed too. The difference with mine is that it aims at singleplayer, so it never checks if everybody is sleeping. The player just punches the bed. The extra thing my bed does is set your spawn, so if your character dies you reespawn where your bed is/was.
I took that stuff from some spawn mod (I don't remember who coded it, but it's here in the forum).
Try Skyblock for MineClone 2
Listen to this sound and music pack!

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

leo_rockway wrote:I was working on a bed too. The difference with mine is that it aims at singleplayer, so it never checks if everybody is sleeping. The player just punches the bed. The extra thing my bed does is set your spawn, so if your character dies you reespawn where your bed is/was.
I took that stuff from some spawn mod (I don't remember who coded it, but it's here in the forum).
1. It checks wether everybody is in the bed. So it will work on multiplayer, too.
2. The spawn point idea is good. I will add this in a future version.

srothe
Member
Posts: 41
Joined: Thu Sep 15, 2011 12:03

by srothe » Post

Your recipe conflicts with tonyka's 3D-furniture mod, where it is used to create a table.

Cheers, Stefan

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

srothe wrote:Your recipe conflicts with tonyka's 3D-furniture mod, where it is used to create a table.

Cheers, Stefan
I could replace the wood with wool but theres only the /giveme way to get wool. Some other ideas to craft it with items that you can get without /giveme?

User avatar
Topywo
Member
Posts: 1721
Joined: Fri May 18, 2012 20:27

by Topywo » Post

- - - - - - dryshrub dryshrub dryshrub ;-)
wood wood wood or wood wood wood or wood wood wood
wood - wood trunk - trunk stick - stick

edit: make it look better :-p
Last edited by Topywo on Wed Aug 01, 2012 19:42, edited 1 time in total.

User avatar
Bas080
Member
Posts: 398
Joined: Mon May 21, 2012 15:54
GitHub: bas080
IRC: bas080
In-game: bas080
Location: Netherlands

by Bas080 » Post

You also put effort into the textures. very nice :)

leo_rockway
Member
Posts: 211
Joined: Tue Jul 31, 2012 20:37

by leo_rockway » Post

PilzAdam wrote:1. It checks wether everybody is in the bed. So it will work on multiplayer, too.
2. The spawn point idea is good. I will add this in a future version.
1. That's great. I didn't care much about that when coding mine because I usually play single player.
2. I can upload my code (it's not really mine, I took it from the other mod and adapted it a bit) if you want to see it. Or I could look for the other mod.

Also, I have a springs-like sound in my version, so when you walk on the bed it makes that sound. I also wanted to check if there was a way to make the bed make you bounce a bit, but I have no idea if that's possible with the current API.

Regarding the recipe: I wanted to use wool as well, but since there isn't a way to generate it I added a flowers dependency and made the recipe like this:

cotton, cotton, cotton
wood, wood, wood
stick, , stick

EDIT: Here's the code for spawn: http://minetest.net/forum/viewtopic.php?id=1203
Last edited by leo_rockway on Thu Aug 02, 2012 04:58, edited 1 time in total.
Try Skyblock for MineClone 2
Listen to this sound and music pack!

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

leo_rockway wrote:
PilzAdam wrote:1. It checks wether everybody is in the bed. So it will work on multiplayer, too.
2. The spawn point idea is good. I will add this in a future version.
1. That's great. I didn't care much about that when coding mine because I usually play single player.
2. I can upload my code (it's not really mine, I took it from the other mod and adapted it a bit) if you want to see it. Or I could look for the other mod.

Also, I have a springs-like sound in my version, so when you walk on the bed it makes that sound. I also wanted to check if there was a way to make the bed make you bounce a bit, but I have no idea if that's possible with the current API.

Regarding the recipe: I wanted to use wool as well, but since there isn't a way to generate it I added a flowers dependency and made the recipe like this:

cotton, cotton, cotton
wood, wood, wood
stick, , stick

EDIT: Here's the code for spawn: http://minetest.net/forum/viewtopic.php?id=1203
Thanks for the tips!

srothe
Member
Posts: 41
Joined: Thu Sep 15, 2011 12:03

by srothe » Post

still the old recipe in your Version 2 ;-)

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

srothe wrote:still the old recipe in your Version 2 ;-)
Thanks

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

I made a mistake with the download for version 2. I replaced the link.
Sorry

srothe
Member
Posts: 41
Joined: Thu Sep 15, 2011 12:03

by srothe » Post

Works now :-) Awesome!

shadowcelebi999
Member
Posts: 14
Joined: Sat Feb 25, 2012 13:41

by shadowcelebi999 » Post

What actually is the crafting recipe for this because it isn't working.

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

shadowcelebi999 wrote:What actually is the crafting recipe for this because it isn't working.
In the GitHub version its:

Code: Select all

wool wool wool
stick          stick
with only white wool.

Gage
Member
Posts: 45
Joined: Mon Sep 10, 2012 10:17

by Gage » Post

pillz can u make it set spawn it would help me im always geting lost whene i die

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

Gage wrote:pillz can u make it set spawn it would help me im always geting lost whene i die
1st: call me PilzAdam
2nd: call me Adam if PilzAdam is too long; dont call me Pilz
3rd: I will add it to my todo list
4th: You always spawn near the origin (x=0; y=0, z=0) of the map. If you memorize the way you go after your first spawn in the map, its not that hard to find the way back.

User avatar
Echo
Member
Posts: 122
Joined: Tue Jul 31, 2012 08:11
Location: Germany

by Echo » Post

idea for realizing the spawning: it's stupid to set the spawning position in the minetest.conf with "static_spawnpoint" -> one spawn point for all worlds.
save the position with the world name in an external file. register_on_respawnplayer loads and sets that position for the player. of cause preferred included in this mod by you PilzAdam :-)

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

Echo wrote:idea for realizing the spawning: it's stupid to set the spawning position in the minetest.conf with "static_spawnpoint" -> one spawn point for all worlds.
save the position with the world name in an external file. register_on_respawnplayer loads and sets that position for the player. of cause preferred included in this mod by you PilzAdam :-)
I know how to realize it. I coded something like this for jordan4ibanez. But im too lazy to implement it in this mod...

Napzilla
New member
Posts: 2
Joined: Sat Sep 29, 2012 00:15

by Napzilla » Post

Thanks for this mod, it's a great idea. The machine I'm using at the moment doesn't have the juice to do mobs, but I find building and other stuff a night a pain because of the lighting. I'm having a slight problem implementing the mod, though. I apologize if this is the result of a stupid mistake, as I'm fairly new to minetest. I installed the mod properly, but when I attempt to run the game, I get the following error:

Code: Select all

ModError:mod"PilzAdam-beds-18430f3" has unsatisfied dependencies: "wool"
I know there's wool mods out there, but I wasn't sure which one minetest was looking for here. Anyway, if I click "Procede", I just go back to the start screen. Any ideas on what I did wrong?

Thanks!

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 21 guests