by minetestcr » Fri Oct 02, 2015 17:55
Hello, I just created a node with NBE, and it's working (attached image), but it is always to the right of the cube and facing in the same direction.
I need it to be in the opposite side of the node(opposite to the player), and facing the player when it is placed.
This is the code I used:
minetest.register_node("stj:lamparedcrema", {
tiles = {
"pared.png",
"pared.png",
"pared.png",
"pared.png",
"pared.png",
"pared.png"
},
sunlight_propagates = true,
paramtype = 'light',
drawtype = "nodebox",
paramtype = "light",
material = minetest.digprop_constanttime(1.0),
groups = {snappy=3,cracky=3,oddly_breakable_by_hand=3,},
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, 0.4375, 0.5, 0.5, 0.5}, -- NodeBox1
} } })
thanks!
- Attachments
-
- node created using NBE
- newnode.png (123.63 KiB) Viewed 1712 times