Merge pull request #16 from everamzah/deco_rocks

Randomize placed small rocks
This commit is contained in:
Duane Robertson 2016-06-06 02:06:10 -05:00
commit 88fd2e6a1b

View file

@ -78,6 +78,9 @@ minetest.register_node("fun_caves:small_rocks", {
}, },
groups = {stone=1, oddly_breakable_by_hand=3}, groups = {stone=1, oddly_breakable_by_hand=3},
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),
after_place_node = function(pos, placer, itemstack, pointed_thing)
minetest.set_node(pos, {name = "fun_caves:small_rocks"..math.random(6)})
end,
}) })
-- Small rocks can be used to create cobblestone, if you like. -- Small rocks can be used to create cobblestone, if you like.