Place a block with LUA
Hello,
I'd like to place a block with the API. I read, that i need something like set_node(). But what do the params of set_node look like? The block is a nodebox, so it needs to "facedir".
Here's all code i currently have:
I'd like to place a block with the API. I read, that i need something like set_node(). But what do the params of set_node look like? The block is a nodebox, so it needs to "facedir".
Here's all code i currently have:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
(..)
on_place = function ()
end