Add some childish fun to the game by making the default beds bouncy! Yes it does exactly what it says on the tin! Enjoy reckless bounces by abusing your in-game mattresses and getting some airtime.
The mod essentially just appends the bouncy and fall damage groups onto the default beds in the game and adds a cute bouncing sound! This creative mod was a suggestion from a player, kiopy7, in the server, Sara's Simple Survival Server. Thank you!
depends: beds
ContentDB: https://content.minetest.net/packages/M ... ouncy_bed/
Source Code: https://www.notabug.org/mesecraft/bouncy_bed
Download: https://www.notabug.org/mesecraft/bounc ... master.zip
Code license is GPLv3 | bouncy.ogg, Blender Foundation, CC-BY-3
[Mod] Bouncy Bed [bouncy_bed]
-
- Member
- Posts: 39
- Joined: Tue Mar 09, 2021 10:14
- GitHub: superfloh247
Re: [Mod] Bouncy Bed [bouncy_bed]
enhancement idea: make beds from other mods also bouncy
minetest.register_on_mods_loaded(function()
for regnodename, _ in pairs(minetest.registered_nodes) do
if string.find(regnodename, "homedecor:bed%_") or (string.find(regnodename, "luxury_decor:") and string.find(regnodename, "%_bed%_")) then
minetest.override_item(regnodename, {
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 },
}
})
end
end
end)
minetest.register_on_mods_loaded(function()
for regnodename, _ in pairs(minetest.registered_nodes) do
if string.find(regnodename, "homedecor:bed%_") or (string.find(regnodename, "luxury_decor:") and string.find(regnodename, "%_bed%_")) then
minetest.override_item(regnodename, {
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 },
}
})
end
end
end)
Who is online
Users browsing this forum: No registered users and 26 guests