bouncy_bed/init.lua

49 lines
1.5 KiB
Lua
Raw Normal View History

2020-02-10 05:07:39 +01:00
--------------------
---- BOUNCY BED ----
--------------------
-- Code by FreeGamers.org
-- Idea by kiopy7
-- LICENSE: GPLv3 (included in parent directory)
2020-02-10 05:31:44 +01:00
-- bouncy.ogg, Blender Foundation, CC-BY-3.0 (https://creativecommons.org/licenses/by/3.0/legalcode)
2020-02-10 05:07:39 +01:00
-- Override Fancy Bed
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
}
}
})
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
}
}
})
-- Override Simple Bed
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
}
}
})
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
}
}
})