mirror of
https://notabug.org/MeseCraft/bouncy_bed.git
synced 2024-11-20 01:43:50 +01:00
This update fixes critical syntax errors pointed out by shazen. Also, licenses and readme has been revised slightly.
This commit is contained in:
parent
394d92a2f1
commit
9f0937bbcc
20
README.md
20
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
|
||||
|
||||
|
||||
|
38
init.lua
38
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
|
||||
}
|
||||
},
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user