diff --git a/README.md b/README.md index 64f0790..1b30507 100644 --- a/README.md +++ b/README.md @@ -6,37 +6,37 @@ This mod improves beds which allows sleep, featured to (auto) skip the night. Information ----------- -This mod is named `beds` to sleep, by rightclick the bed. It featured -in singleplayer mode that the night gets skipped immediately. If playing -in multiplayer you get shown how many other players are in bed too, -if all players are sleeping the night gets skipped. +This mod is named `beds` to sleep, by rightclick the bed. It featured +in singleplayer mode that the night gets skipped immediately. If playing +in multiplayer you get shown how many other players are in bed too, +if all players are sleeping the night gets skipped. ![screenshot.jpg](screenshot.jpg) Tech information ---------------- -This mod sustitute default one, you must disable the default of minetest +This mod sustitute default one, you must disable the default of minetest game if present or override it. #### Features -* Night Skypping: +* Night Skypping: This mod auto featured night skip in singleplayer, in multiplayer it skipped -if more than a set percentage (default 50%) of the players are lying +if more than a set percentage (default 50%) of the players are lying in bed and use this option. Check configuration section for more info. -* Controlled respawning: +* Controlled respawning: -If you have slept in bed (not just lying in it) your respawn point +If you have slept in bed (not just lying in it) your respawn point is set to the beds location and you will respawn there after death. Check configuration section for more info. * More beds: -It features two more beds, the "Blue Simple Bed" like the "Simple Bed" -but in blue, and the "Pink Fancy Bed" like the "Fancy Bed" but in pink. +It features more beds, so along with the Red simple bed we now have White and +Blue, and the fance beds has the original Red and now Pink. #### Dependencies @@ -48,13 +48,13 @@ Optional dependences: * intllib (only for older engines) * pova (optional) -The pova mod are not xplicit set as optional depends, due the circular depends bug, +The pova mod are not xplicit set as optional depends, due the circular depends bug, its detected and used. #### Configuration | Configuration | type | default | place file | Notes about | -| --------------------- | ----- | ------- | ------------ | ----------------------------------------- | +| --------------------- | ----- | ------- | ------------ | ----------------------------------------- | | enable_bed_respawn | bool | true | minetest.conf | Enable respawn point set to last sleep bed | | enable_bed_night_skip | bool | false | minetest.conf | You can disable the night skip feature | | bed_sleep_divide | int | 2 | minetest.conf | Division of players needed to skip night | diff --git a/beds.lua b/beds.lua index f544839..bc35a11 100644 --- a/beds.lua +++ b/beds.lua @@ -3,7 +3,7 @@ local S = beds.get_translator -- Fancy shaped bed beds.register_bed("beds:fancy_bed", { - description = S("Fancy Bed"), + description = S("Red Fancy Bed"), inventory_image = "beds_bed_fancy.png", wield_image = "beds_bed_fancy.png", tiles = {"beds_fancy_bed.png", "default_wood.png"}, @@ -12,7 +12,7 @@ beds.register_bed("beds:fancy_bed", { collisionbox = {-0.5, -0.5, -0.5, 0.5, -0.06, 1.5}, recipe = { {"", "", "group:stick"}, - {"wool:white", "wool:white", "wool:white"}, + {"wool:red", "wool:red", "wool:white"}, {"group:wood", "group:wood", "group:wood"} } }) @@ -34,8 +34,22 @@ beds.register_bed("beds:fancy_bed_pink", { -- Simple shaped bed +beds.register_bed("beds:bed_white", { + description = S("White Simple Bed"), + inventory_image = "beds_bed_white.png", + wield_image = "beds_bed_white.png", + tiles = {"beds_simple_bed_white.png"}, + mesh = "beds_simple_bed.obj", + selectionbox = {-0.5, -0.5, -0.5, 0.5, 0.06, 1.5}, + collisionbox = {-0.5, -0.5, -0.5, 0.5, 0.06, 1.5}, + recipe = { + {"wool:white", "wool:white", "wool:white"}, + {"group:wood", "group:wood", "group:wood"} + } +}) + beds.register_bed("beds:bed", { - description = S("Simple Bed"), + description = S("Red Simple Bed"), inventory_image = "beds_bed.png", wield_image = "beds_bed.png", tiles = {"beds_simple_bed.png"}, @@ -43,7 +57,7 @@ beds.register_bed("beds:bed", { selectionbox = {-0.5, -0.5, -0.5, 0.5, 0.06, 1.5}, collisionbox = {-0.5, -0.5, -0.5, 0.5, 0.06, 1.5}, recipe = { - {"wool:white", "wool:white", "wool:white"}, + {"wool:red", "wool:red", "wool:white"}, {"group:wood", "group:wood", "group:wood"} } }) diff --git a/license.txt b/license.txt index 0c46715..bc6053b 100644 --- a/license.txt +++ b/license.txt @@ -61,5 +61,5 @@ For more details: http://creativecommons.org/licenses/by-sa/3.0/ -WTFPL license applies to screenshot.jpg file by jp from his mesh beds mod: +WTFPL license applies to bed .obj files by jp from mesh beds mod: https://forum.minetest.net/viewtopic.php?t=11817 diff --git a/screenshot.jpg b/screenshot.jpg index a523878..fb972df 100644 Binary files a/screenshot.jpg and b/screenshot.jpg differ diff --git a/textures/beds_bed_white.png b/textures/beds_bed_white.png new file mode 100644 index 0000000..b57c8ac Binary files /dev/null and b/textures/beds_bed_white.png differ diff --git a/textures/beds_simple_bed_white.png b/textures/beds_simple_bed_white.png new file mode 100644 index 0000000..552c802 Binary files /dev/null and b/textures/beds_simple_bed_white.png differ