Add kelp and related items
This commit is contained in:
parent
5c953b1dc0
commit
40e681a566
11 changed files with 191 additions and 2 deletions
|
@ -62,7 +62,7 @@ local function seagrass_on_place(itemstack, placer, pointed_thing)
|
|||
else
|
||||
return itemstack
|
||||
end
|
||||
node_under.param2 = minetest.registered_items[itemstack:get_name()].place_param2 or 3
|
||||
node_under.param2 = minetest.registered_items[node_under.name].place_param2 or 3
|
||||
if node_under.param2 < 8 and math.random(1,2) == 1 then
|
||||
-- Random horizontal displacement
|
||||
node_under.param2 = node_under.param2 + 8
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue