This update fixes critical syntax errors pointed out by shazen. Also, licenses and readme has been revised slightly.

This commit is contained in:
FreeGamers 2020-05-26 13:00:56 -05:00
parent 394d92a2f1
commit 9f0937bbcc
2 changed files with 34 additions and 24 deletions

@ -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) ![screenshot](https://www.notabug.org/FreeGamers/bouncy_bed/raw/master/Screenshot.png)
## Description ## Description
@ -10,4 +12,18 @@ The mod essentially just appends the bouncy and fall damage groups onto the defa
#### depends: beds #### 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

@ -1,79 +1,73 @@
-------------------- -- Override the attributes for beds:fancy_bed_bottom.
---- 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
minetest.override_item("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}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, bed = 1, fall_damage_add_percent=-40, bouncy=85},
sounds = { sounds = {
footstep = { footstep = {
name = "bouncy", name = "bouncy",
gain = 0.8 gain = 0.8
} },
dig = { dig = {
name = "default_dig_oddly_breakable_by_hand", name = "default_dig_oddly_breakable_by_hand",
gain = 1.0 gain = 1.0
} },
dug = { dug = {
name = "default_dug_node", name = "default_dug_node",
gain = 1.0 gain = 1.0
} },
} }
}) })
-- Override the attributes for beds:fancy_bed_top.
minetest.override_item("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}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, bed = 2, fall_damage_add_percent=-40, bouncy=85},
sounds = { sounds = {
footstep = { footstep = {
name = "bouncy", name = "bouncy",
gain = 0.8 gain = 0.8
} },
dig = { dig = {
name = "default_dig_oddly_breakable_by_hand", name = "default_dig_oddly_breakable_by_hand",
gain = 1.0 gain = 1.0
} },
dug = { dug = {
name = "default_dug_node", name = "default_dug_node",
gain = 1.0 gain = 1.0
} },
} }
}) })
-- Override Simple Bed -- Override the attributes for beds:bed_bottom.
minetest.override_item("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}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, bed = 1, fall_damage_add_percent=-40, bouncy=85},
sounds = { sounds = {
footstep = { footstep = {
name = "bouncy", name = "bouncy",
gain = 0.8 gain = 0.8
} },
dig = { dig = {
name = "default_dig_oddly_breakable_by_hand", name = "default_dig_oddly_breakable_by_hand",
gain = 1.0 gain = 1.0
} },
dug = { dug = {
name = "default_dug_node", name = "default_dug_node",
gain = 1.0 gain = 1.0
} },
} }
}) })
-- Override the attributes for beds:bed_top
minetest.override_item("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}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, bed = 2, fall_damage_add_percent=-40, bouncy=85},
sounds = { sounds = {
footstep = { footstep = {
name = "bouncy", name = "bouncy",
gain = 0.8 gain = 0.8
} },
dig = { dig = {
name = "default_dig_oddly_breakable_by_hand", name = "default_dig_oddly_breakable_by_hand",
gain = 1.0 gain = 1.0
} },
dug = { dug = {
name = "default_dug_node", name = "default_dug_node",
gain = 1.0 gain = 1.0
} },
} }
}) })