mirror of
https://notabug.org/MeseCraft/bouncy_bed.git
synced 2024-10-02 15:33:04 +02:00
same as last commit, cleaning syntax and testing.
This commit is contained in:
parent
9f0937bbcc
commit
f64e832e5d
64
init.lua
64
init.lua
@ -2,36 +2,18 @@
|
|||||||
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", gain = 0.8 },
|
||||||
name = "bouncy",
|
dig = { name = "default_dig_oddly_breakable_by_hand", gain = 1.0 },
|
||||||
gain = 0.8
|
dug = { name = "default_dug_node", gain = 1.0 },
|
||||||
},
|
|
||||||
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.
|
-- 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", gain = 0.8 },
|
||||||
name = "bouncy",
|
dig = { name = "default_dig_oddly_breakable_by_hand", gain = 1.0 },
|
||||||
gain = 0.8
|
dug = { name = "default_dug_node", gain = 1.0 },
|
||||||
},
|
|
||||||
dig = {
|
|
||||||
name = "default_dig_oddly_breakable_by_hand",
|
|
||||||
gain = 1.0
|
|
||||||
},
|
|
||||||
dug = {
|
|
||||||
name = "default_dug_node",
|
|
||||||
gain = 1.0
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -39,35 +21,17 @@ minetest.override_item("beds:fancy_bed_top", {
|
|||||||
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", gain = 0.8 },
|
||||||
name = "bouncy",
|
dig = { name = "default_dig_oddly_breakable_by_hand", gain = 1.0 },
|
||||||
gain = 0.8
|
dug = { name = "default_dug_node", gain = 1.0 },
|
||||||
},
|
|
||||||
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
|
-- 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", gain = 0.8 },
|
||||||
name = "bouncy",
|
dig = { name = "default_dig_oddly_breakable_by_hand", gain = 1.0 },
|
||||||
gain = 0.8
|
dug = { name = "default_dug_node", gain = 1.0 },
|
||||||
},
|
|
||||||
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