[Mod] Beds (complete rewrite) [1.1] [beds]
[Mod] Beds (complete rewrite) [1.1] [beds]
Hello everyone,
this mod adds obviously beds to Minetest. It's a complete rewrite from scratch, works on singleplayer and multiplayer.
Screenshot:
When sleeping you can skip the night and set a respawn point there.
To sleep rightclick the bed, if playing in singleplayer mode the night gets skipped immediately. If playing on server you get shown how many other players are currently in bed too. If all players are sleeping the night gets skipped aswell. Also if more than 50% of the players are lying in bed the night-skip can be forced by those.
More features:
- Players are really lying in beds
- overview how many players are lying in bed already (image)
- a majority can force the night skip (>50%)
- no "getting stuck" or "falling though floors"
- simple bed shape supports fully MC textures
- API to add more beds
You can craft two types of beds:
Simple shaped bed:
Fancy shaped bed:
mixing different wood or wool is also possible
Depends:
default
wool
Download:
Version 1.1: Download
Github: beds
all Versions
Notice:
Minetest 0.4.10 or later required
License:
Source code and textures: WTFPL
Please give Feedback and ideas for improvement
this mod adds obviously beds to Minetest. It's a complete rewrite from scratch, works on singleplayer and multiplayer.
Screenshot:
When sleeping you can skip the night and set a respawn point there.
To sleep rightclick the bed, if playing in singleplayer mode the night gets skipped immediately. If playing on server you get shown how many other players are currently in bed too. If all players are sleeping the night gets skipped aswell. Also if more than 50% of the players are lying in bed the night-skip can be forced by those.
More features:
- Players are really lying in beds
- overview how many players are lying in bed already (image)
- a majority can force the night skip (>50%)
- no "getting stuck" or "falling though floors"
- simple bed shape supports fully MC textures
- API to add more beds
You can craft two types of beds:
Simple shaped bed:
Fancy shaped bed:
mixing different wood or wool is also possible
Depends:
default
wool
Download:
Version 1.1: Download
Github: beds
all Versions
Notice:
Minetest 0.4.10 or later required
License:
Source code and textures: WTFPL
Please give Feedback and ideas for improvement
Last edited by BlockMen on Fri Aug 22, 2014 11:49, edited 2 times in total.
-
- Member
- Posts: 940
- Joined: Tue Aug 05, 2014 14:09
- GitHub: MinetestForFun
- IRC: MinetestForFun
- In-game: MinetestForFun
- Location: On earth
- Contact:
Re: [Mod] Beds (complete rewrite) [1.0 beta] [beds]
wow, very good work !
thank you for your work, i'will try it now :)
Bye
thank you for your work, i'will try it now :)
Bye
MinetestForFun Team mods : [spidermob] [fishing]
---
Our Minetest servers :
MinetestForFun (Survival - PvP - Hardcore)[FR/EN]
MinetestForFun HUNGER GAMES
MinetestForFun SKYBLOCK
MinetestForFun CREATIVE
---
Our Minetest servers :
MinetestForFun (Survival - PvP - Hardcore)[FR/EN]
MinetestForFun HUNGER GAMES
MinetestForFun SKYBLOCK
MinetestForFun CREATIVE
Re: [Mod] Beds (complete rewrite) [1.0.1 beta] [beds]
Could you add in an option for check_in_beds to do majority rules, rather than all-or-nothing? That would be super, IMHO.
- philipbenr
- Member
- Posts: 1897
- Joined: Fri Jun 14, 2013 01:56
- GitHub: philipbenr
- IRC: philipbenr
- In-game: robinspi
- Location: United States
Re: [Mod] Beds (complete rewrite) [1.0.1 beta] [beds]
Awesome. I will be putting this into my new game later on. Thanks BlockMen!
- lag01
- Member
- Posts: 321
- Joined: Sun Mar 16, 2014 03:41
- GitHub: AndrejIT
- IRC: lag01
- In-game: lag
- Contact:
Re: [Mod] Beds (complete rewrite) [1.0.1 beta] [beds]
Looks good, even support protection blocks (unlike doors).
but don't work too well with screwdriver :)
i will test it on my server.
but don't work too well with screwdriver :)
i will test it on my server.
Last edited by lag01 on Fri Aug 08, 2014 23:13, edited 2 times in total.
- philipbenr
- Member
- Posts: 1897
- Joined: Fri Jun 14, 2013 01:56
- GitHub: philipbenr
- IRC: philipbenr
- In-game: robinspi
- Location: United States
Re: [Mod] Beds (complete rewrite) [1.0.1 beta] [beds]
Hmmm... Not really a double post, but anyway, found this:
viewtopic.php?f=14&t=2840&start=250#p150445
Just maybe...
Yes, all the nodeboxes would make it sort of laggy, but I think it would be awesome if there were two different versions.
viewtopic.php?f=14&t=2840&start=250#p150445
Just maybe...
Yes, all the nodeboxes would make it sort of laggy, but I think it would be awesome if there were two different versions.
Re: [Mod] Beds (complete rewrite) [1.0.1 beta] [beds]
Nodeboxes would not be as much of an issue if they followed the same rendering rules as normal nodes do. However, this doesn't seem to be of concern to anyone, so it is very unlikely that things will ever improve in this area. Sorry, but you must face facts.
[BitChute: https://www.bitchute.com/channel/fCcBQxrYQjNX/] [Rumble: https://rumble.com/user/HPoorHMagentaHChildH]
- Casimir
- Member
- Posts: 1207
- Joined: Fri Aug 03, 2012 16:59
- GitHub: CasimirKaPazi
Re: [Mod] Beds (complete rewrite) [1.0.1 beta] [beds]
Finally a bed mod that works. I like things that work.
Personally I wouldn't show the formspecs when there is only one player. And instead of a "Good morning" message the player could just stay in bed until he right clicks or something.
edit:
@ philipbenr & Inocudom
BlockMen has good reasons for the nodebox he choose. First it allows to support MC textures, second it looks good with the laying animation as the player lays on the bed and has no strange intersections with the nodebox. jp's nodebox is nice but it belongs to the homedecor mod where it is now.
Personally I wouldn't show the formspecs when there is only one player. And instead of a "Good morning" message the player could just stay in bed until he right clicks or something.
edit:
Code: Select all
local function update_formspecs(finished)
local ges = #minetest.get_connected_players()
if ges == 1 then return end
if finished then return end
local form_n = form ..
"label[2.2,11;"..tostring(player_in_bed).." of "..tostring(ges).." players are in bed]"
for name,_ in pairs(beds.player) do
minetest.show_formspec(name, "beds_form", form_n)
end
end
BlockMen has good reasons for the nodebox he choose. First it allows to support MC textures, second it looks good with the laying animation as the player lays on the bed and has no strange intersections with the nodebox. jp's nodebox is nice but it belongs to the homedecor mod where it is now.
Last edited by Casimir on Sat Aug 09, 2014 22:10, edited 1 time in total.
-
- Member
- Posts: 4290
- Joined: Sun Sep 09, 2012 17:31
- GitHub: Sokomine
- IRC: Sokomine
- In-game: Sokomine
Re: [Mod] Beds (complete rewrite) [1.0.1 beta] [beds]
I don't like the model and texture these beds use. The other beds (derived from coloredbeds by thefamilygrog66) look by far better. In some situations, beeing able to use textures from MC is fine; but in this case, I don't see a point. The texture this bed here comes with looks broken. It looks as if the bed has legs - but the nodebox doesn't. The upper part of the bed is ok, and the nodebox could be made working with another texture.Casimir wrote: BlockMen has good reasons for the nodebox he choose. First it allows to support MC textures, second it looks good with the laying animation as the player lays on the bed and has no strange intersections with the nodebox.
The bed's functionality - setting a sleeping animation for the player - and the turn-it-day-function are fine. Why not include these in other bed mods? So that, as far as beds are concerned, actual decorative model and functionality become seperate?
A list of my mods can be found here.
Re: [Mod] Beds (complete rewrite) [1.0.1 beta] [beds]
And I don't like the beds model of PilzAdam's beds, but there is no accounting for taste, everyone can use the mod he/she prefers more. ;)Sokomine wrote:I don't like the model and texture these beds use. The other beds (derived from coloredbeds by thefamilygrog66) look by far better. In some situations, beeing able to use textures from MC is fine; but in this case, I don't see a point. The texture this bed here comes with looks broken. It looks as if the bed has legs - but the nodebox doesn't. The upper part of the bed is ok, and the nodebox could be made working with another texture.Casimir wrote: BlockMen has good reasons for the nodebox he choose. First it allows to support MC textures, second it looks good with the laying animation as the player lays on the bed and has no strange intersections with the nodebox.
The bed's functionality - setting a sleeping animation for the player - and the turn-it-day-function are fine. Why not include these in other bed mods? So that, as far as beds are concerned, actual decorative model and functionality become seperate?
Furthermore, what is wrong about having a compatibility with MC textures? Many ppl profit from the compatibility of the character skin, here transfered Texture Packs (and its users) can profit.
Concering the linked model above: jp already proposed to use his beds model and I haven't decided yet, but I guess if so then a more simplified model only, not with that much details.
@Casimir, i agree that the formspec is not necessary in singleplayer, will remove it in next version. In multiplayer there should still be a notification for players that night is over. I might make the automatic kick out optional.
@gsmanners, yes, i will add a way to skip the night even if not all players are in bed (in fact its nearly unreachable on public servers)
-
- Member
- Posts: 4290
- Joined: Sun Sep 09, 2012 17:31
- GitHub: Sokomine
- IRC: Sokomine
- In-game: Sokomine
Re: [Mod] Beds (complete rewrite) [1.0.1 beta] [beds]
There's nothing wrong with compatibility as such. It's just that texture and nodebox do not fit together. The nodebox is of a rather simple design (a box - the bed touches the floor at every point) - whereas the texture indicates a bed with four legs. That does not work together. It looks ugly. Minetest can do better.BlockMen wrote: Furthermore, what is wrong about having a compatibility with MC textures? Many ppl profit from the compatibility of the character skin, here transfered Texture Packs (and its users) can profit.
There are several diffrent beds out there by now. Please change the behaviour of your mod and do not let it override the *design* of the more decorative beds in PilzAdams mod - but *do* override the behaviour of beds found. Apart from PilzAdams mod, there is also the coloredbeds mod (which existed until the models where incorporated into PilzAdams mod), the extremly nice papyrus_bed, the bed in my cottages mod, and of course the new one jp created for homedecor. Changing their on_rightclick-function to that of your mod while keeping the design of the other beds would be very desirable.BlockMen wrote: Concering the linked model above: jp already proposed to use his beds model and I haven't decided yet, but I guess if so then a more simplified model only, not with that much details.
A list of my mods can be found here.
Re: [Mod] Beds (complete rewrite) [1.0.1 beta] [beds]
You should have read my post before better, but i will quote something again and highlight the important for you:Sokomine wrote: That does not work together. It looks ugly. Minetest can do better.
BlockMen wrote:And I don't like the beds model of PilzAdam's beds, but there is no accounting for taste, everyone can use the mod he/she prefers more. ;)
My mod is a complete rewrite from scratch and i won't start to tinker with those complete different mods.Sokomine wrote: Please change the behaviour of your mod and do not let it override the *design* of the more decorative beds in PilzAdams mod - but *do* override the behaviour of beds found. [...] Changing their on_rightclick-function to that of your mod while keeping the design of the other beds would be very desirable.
Either use this mod or not, your decision.
- balthazariv
- Member
- Posts: 214
- Joined: Mon Apr 07, 2014 15:48
- Contact:
Re: [Mod] Beds (complete rewrite) [1.0.1 beta] [beds]
Hello,
Great, I like it ...
" Players are really lying in beds" How do we see his character?
I press "F7" but it does not work. I just "Leave bed" button to wake up. Why can not your not sleep during the day? (Lol) It would be nice to add a clock in it "Mods"
Thanks
Great, I like it ...
" Players are really lying in beds" How do we see his character?
I press "F7" but it does not work. I just "Leave bed" button to wake up. Why can not your not sleep during the day? (Lol) It would be nice to add a clock in it "Mods"
Thanks
Re: [Mod] Beds (complete rewrite) [1.0.1 beta] [beds]
Well, I can't decide which model I prefer more, so now it's your turn to choose.
http://strawpoll.me/2339367
Only the votes within the next week are count.
EDIT: the right one is a simplified model of jp's bed model
http://strawpoll.me/2339367
Only the votes within the next week are count.
EDIT: the right one is a simplified model of jp's bed model
-
- Member
- Posts: 4534
- Joined: Mon Oct 03, 2011 17:58
- GitHub: Jordach
- IRC: Jordach
- In-game: Jordach
- Location: Blender Scene
Re: [Mod] Beds (complete rewrite) [1.0.1 beta] [beds]
And more colours for the beds would be nice, to completely remove dependancies of PA's beds.
Re: [Mod] Beds (complete rewrite) [1.0.1 beta] [beds]
I my opinion You could add both models and add an option in config file for choosing bed model... In case when there is no proper texture in texturepack, the defald one would be used, I'm right?
- lag01
- Member
- Posts: 321
- Joined: Sun Mar 16, 2014 03:41
- GitHub: AndrejIT
- IRC: lag01
- In-game: lag
- Contact:
Re: [Mod] Beds (complete rewrite) [1.0.1 beta] [beds]
bed from the left looks more modern and is also "stackable" to double bed.
-
- Member
- Posts: 940
- Joined: Tue Aug 05, 2014 14:09
- GitHub: MinetestForFun
- IRC: MinetestForFun
- In-game: MinetestForFun
- Location: On earth
- Contact:
Re: [Mod] Beds (complete rewrite) [1.0.1 beta] [beds]
Please both ! :DBlockMen wrote:Well, I can't decide which model I prefer more, so now it's your turn to choose.
http://strawpoll.me/2339367
Only the votes within the next week are count.
EDIT: the right one is a simplified model of jp's bed model
If i can choose between a simple bed and, a more detailed bed, it's the better way ! :)
(im very keen on the "stackable" of the simple bed, but the detailed bed can be useful for an individual bed in a small house)
MinetestForFun Team mods : [spidermob] [fishing]
---
Our Minetest servers :
MinetestForFun (Survival - PvP - Hardcore)[FR/EN]
MinetestForFun HUNGER GAMES
MinetestForFun SKYBLOCK
MinetestForFun CREATIVE
---
Our Minetest servers :
MinetestForFun (Survival - PvP - Hardcore)[FR/EN]
MinetestForFun HUNGER GAMES
MinetestForFun SKYBLOCK
MinetestForFun CREATIVE
- Casimir
- Member
- Posts: 1207
- Joined: Fri Aug 03, 2012 16:59
- GitHub: CasimirKaPazi
Re: [Mod] Beds (complete rewrite) [1.0.1 beta] [beds]
This is why i like the simple beds better.
You can not combine the fancy ones that way.
You can not combine the fancy ones that way.
-
- Member
- Posts: 4290
- Joined: Sun Sep 09, 2012 17:31
- GitHub: Sokomine
- IRC: Sokomine
- In-game: Sokomine
Re: [Mod] Beds (complete rewrite) [1.0.1 beta] [beds]
BlockMen wrote: My mod is a complete rewrite from scratch and i won't start to tinker with those complete different mods.
Code: Select all
-- aliases for PA's beds mod
minetest.register_alias("beds:bed_bottom_red", "beds:bed_bottom")
That's only true for singleplayer worlds. On servers, the server owner decides. And there are many who are reluctant to use the old beds mod due to fear for bugs. Your mod is highly welcomed there.BlockMen wrote: Either use this mod or not, your decision.
Why not seperate functionality and design? It might be possible for your mod to override the on_rightclick function of beds from other mods such as the aforementioned beds mod, homedecor, cottages or whatever else might show up. The list of beds for which functionality could be provided might be a list/table that's initially empty, with a sample list with all beds which might work that way.
Fine :-) That's right. So...can I please use the bed models I like? On servers? With the functionality from your mod, but the design/nodebox from other mods? :-) I know that's uncommon. I want your mod to be more of a library (perhaps with some sample beds) than the single bed model that'll be found from now onward on servers.BlockMen wrote: And I don't like the beds model of PilzAdam's beds, but there is no accounting for taste, everyone can use the mod he/she prefers more. ;)
Or perhaps we ought to change our beds ourshelves and make them call your lie-down-and-sleep-till-morning function when this mod is installed. Still, that'd require code in each mod.
A list of my mods can be found here.
- Evergreen
- Member
- Posts: 2135
- Joined: Sun Jan 06, 2013 01:22
- GitHub: 4Evergreen4
- IRC: EvergreenTree
- In-game: Evergreen
- Location: A forest in the midwest
- Contact:
Re: [Mod] Beds (complete rewrite) [1.0.1 beta] [beds]
I agree. The simple one is better for this type of mod, the fancy one would be more suited to homedecor.
- lightonflux
- Member
- Posts: 384
- Joined: Mon Nov 11, 2013 07:22
- In-game: lof
- Location: Germany
Re: [Mod] Beds (complete rewrite) [1.0.1 beta] [beds]
I really really like this mod. Integrates seamlessly with existing worlds (same node name) and the code is extremely reliable. Tried beds on slabs, floating beds and tried everything to spawn in blocks when i wake up.
NOTHING weird happened, everything worked great. Thanks a lot, BlockMen.
Imagine we would have a carts rewrite that worked so reliable. *hint* *hint*
NOTHING weird happened, everything worked great. Thanks a lot, BlockMen.
Imagine we would have a carts rewrite that worked so reliable. *hint* *hint*
- TheEpicJames
- Member
- Posts: 634
- Joined: Sun Dec 29, 2013 23:05
- IRC: TheEpicJames
- In-game: Block_Guy
- Location: Some grassy area next to a forest, a river and a desert.
- Contact:
Re: [Mod] Beds (complete rewrite) [1.0.1 beta] [beds]
hey, i got an idea, lets make the models toggle-able!
so you can like toggle the more detailed one
so you can like toggle the more detailed one
Version 1.1
Update! Version 1.1 released
Here are the results of the poll:
fancy bed: 12 votes (60%)
both models: 5 votes (25%)
simpel bed: 3 votes (15%)
So it is a clear majority that wants a fancy shaped bed. But since 25% wanted both and the discussion here showed benefits of a simple shaped model I decided to include both, so this mod has now the fancy shaped bed and the simple shaped. (See first post for crafting recipes). Also I added an API to add easily more beds, so everyone who thinks that those 2 beds are not enough can easily extend it.
I hope everyone like the changes, a complete changelog is below.
Changelog:
- Add fancy bed model (based on jp's model)
- Add API to register beds
- Allow players always to detach from bed (by donat-b)
- If more than 50% of players want sleep they can skip the night
- Don't show sleep dialog in singleplayer
Here are the results of the poll:
fancy bed: 12 votes (60%)
both models: 5 votes (25%)
simpel bed: 3 votes (15%)
So it is a clear majority that wants a fancy shaped bed. But since 25% wanted both and the discussion here showed benefits of a simple shaped model I decided to include both, so this mod has now the fancy shaped bed and the simple shaped. (See first post for crafting recipes). Also I added an API to add easily more beds, so everyone who thinks that those 2 beds are not enough can easily extend it.
I hope everyone like the changes, a complete changelog is below.
Changelog:
- Add fancy bed model (based on jp's model)
- Add API to register beds
- Allow players always to detach from bed (by donat-b)
- If more than 50% of players want sleep they can skip the night
- Don't show sleep dialog in singleplayer
-
- Member
- Posts: 4290
- Joined: Sun Sep 09, 2012 17:31
- GitHub: Sokomine
- IRC: Sokomine
- In-game: Sokomine
Re: [Mod] Beds (complete rewrite) [1.1] [beds]
Thank you! That does help a lot. That way, even the papyrus bed might be used - to a degree.BlockMen wrote: Also I added an API to add easily more beds, so everyone who thinks that those 2 beds are not enough can easily extend it.
A list of my mods can be found here.
Who is online
Users browsing this forum: No registered users and 91 guests