From 9f0937bbcc9fdd75c2c16cdbd63946e378abce37 Mon Sep 17 00:00:00 2001 From: FreeGamers Date: Tue, 26 May 2020 13:00:56 -0500 Subject: [PATCH] This update fixes critical syntax errors pointed out by shazen. Also, licenses and readme has been revised slightly. --- README.md | 20 ++++++++++++++++++-- init.lua | 38 ++++++++++++++++---------------------- 2 files changed, 34 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 93f005d..2565a7d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ -# Bouncy Bed +minetest_game mod: bouncy_beds +============================== +# Bouncy Bed ![screenshot](https://www.notabug.org/FreeGamers/bouncy_bed/raw/master/Screenshot.png) ## Description @@ -10,4 +12,18 @@ The mod essentially just appends the bouncy and fall damage groups onto the defa #### depends: beds -Code license is GPLv3 | bouncy.ogg, Blender Foundation, CC-BY-3 +License of source code +------------------------------ +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3 of the License, or +(at your option) any later version. + +https://www.gnu.org/licenses/gpl-3.0.html + + +License of the sound effect +------------------- +bouncy.ogg, Blender Foundation, CC-BY-3 + + diff --git a/init.lua b/init.lua index 811884b..01bc3b8 100644 --- a/init.lua +++ b/init.lua @@ -1,79 +1,73 @@ --------------------- ----- BOUNCY BED ---- --------------------- --- Code by FreeGamers.org --- Idea by kiopy7 --- LICENSE: GPLv3 (included in parent directory) --- bouncy.ogg, Blender Foundation, CC-BY-3.0 (https://creativecommons.org/licenses/by/3.0/legalcode) - --- Override Fancy Bed +-- Override the attributes for beds:fancy_bed_bottom. minetest.override_item("beds:fancy_bed_bottom", { groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, bed = 1, fall_damage_add_percent=-40, bouncy=85}, sounds = { footstep = { name = "bouncy", gain = 0.8 - } + }, dig = { name = "default_dig_oddly_breakable_by_hand", gain = 1.0 - } + }, dug = { name = "default_dug_node", gain = 1.0 - } + }, } }) +-- Override the attributes for beds:fancy_bed_top. minetest.override_item("beds:fancy_bed_top", { groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, bed = 2, fall_damage_add_percent=-40, bouncy=85}, sounds = { footstep = { name = "bouncy", gain = 0.8 - } + }, dig = { name = "default_dig_oddly_breakable_by_hand", gain = 1.0 - } + }, dug = { name = "default_dug_node", gain = 1.0 - } + }, } }) --- Override Simple Bed +-- Override the attributes for beds:bed_bottom. minetest.override_item("beds:bed_bottom", { groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, bed = 1, fall_damage_add_percent=-40, bouncy=85}, sounds = { footstep = { name = "bouncy", gain = 0.8 - } + }, dig = { name = "default_dig_oddly_breakable_by_hand", gain = 1.0 - } + }, dug = { name = "default_dug_node", gain = 1.0 - } + }, } }) +-- Override the attributes for beds:bed_top minetest.override_item("beds:bed_top", { groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, bed = 2, fall_damage_add_percent=-40, bouncy=85}, sounds = { footstep = { name = "bouncy", gain = 0.8 - } + }, dig = { name = "default_dig_oddly_breakable_by_hand", gain = 1.0 - } + }, dug = { name = "default_dug_node", gain = 1.0 - } + }, } })