Randomize placed small rocks
This commit is contained in:
parent
301249f9d2
commit
326d3d5613
1 changed files with 3 additions and 0 deletions
|
@ -76,6 +76,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