Merge pull request #16 from everamzah/deco_rocks
Randomize placed small rocks
This commit is contained in:
commit
88fd2e6a1b
1 changed files with 3 additions and 0 deletions
|
@ -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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue