slightly bouncy mushroom nodes and move groups out of the loop

This commit is contained in:
HybridDog 2015-12-28 17:04:53 +01:00
parent 3850de05ae
commit c8e88c9d61

View File

@ -830,6 +830,7 @@ local head_sounds = default.node_sound_wood_defaults({
dug = {name="riesenpilz_stem", gain=0.1} dug = {name="riesenpilz_stem", gain=0.1}
}) })
local add_fence = minetest.register_fence local add_fence = minetest.register_fence
local node_groups = {oddly_breakable_by_hand=3, fall_damage_add_percent=-80, bouncy=10}
for _,i in pairs({ for _,i in pairs({
{ {
@ -960,7 +961,7 @@ for _,i in pairs({
minetest.register_node(nodename, { minetest.register_node(nodename, {
description = desctiption, description = desctiption,
tiles = textures, tiles = textures,
groups = {oddly_breakable_by_hand=3, fall_damage_add_percent=-80}, groups = node_groups,
drop = drop, drop = drop,
sounds = sounds, sounds = sounds,
}) })
@ -976,7 +977,7 @@ minetest.register_node("riesenpilz:head_red_side", {
tiles = {"riesenpilz_head.png", "riesenpilz_lamellas.png", "riesenpilz_head.png", tiles = {"riesenpilz_head.png", "riesenpilz_lamellas.png", "riesenpilz_head.png",
"riesenpilz_head.png", "riesenpilz_head.png", "riesenpilz_lamellas.png"}, "riesenpilz_head.png", "riesenpilz_head.png", "riesenpilz_lamellas.png"},
paramtype2 = "facedir", paramtype2 = "facedir",
groups = {oddly_breakable_by_hand=3, fall_damage_add_percent=-80}, groups = node_groups,
drop = {max_items = 1, drop = {max_items = 1,
items = {{items = {"riesenpilz:fly_agaric"},rarity = 20,}, items = {{items = {"riesenpilz:fly_agaric"},rarity = 20,},
{items = {"riesenpilz:head_red"},rarity = 1,}}}, {items = {"riesenpilz:head_red"},rarity = 1,}}},