is there a way to spawn visible kelp with a lua block?
with the set_node code, the kelp is placed, but is invisible.
minetest.set_node({x=pos.x, y=pos.y+1, z=pos.z}, {name="default:sand_with_kelp"})
with the place_node code, the kelp refuses to be placed, even in deep water, with or without sand.
minetest.place_node({x=pos.x, y=pos.y+1, z=pos.z}, {name="default:sand_with_kelp"})
Edit: Nevermind, figured it out. Just set param2.
minetest.set_node({x=pos.x, y=pos.y+1, z=pos.z}, {name="default:sand_with_kelp", param2=64})
[Solved] How to place kelp with a lua block?
-
- New member
- Posts: 2
- Joined: Tue Jan 24, 2023 16:27
Who is online
Users browsing this forum: No registered users and 6 guests