Hybrid Dog wrote:Napiophelios wrote:Can some one give me an example of how to use this in a mod:
"force_facedir: if true, forcefully reset the facedir to north when placing on the floor or ceiling"
I have tried to do it in node registration but it asks for a name and parameters;
I assumed it needed the node name but it says its expecting parameters
and I dont know what to do next.
minetest.set_node(pos, {name="default:mese", param2=0}
Okay I used :
on_place= minetest.set_node({name = "minim:shaftbomb", param2=1}),and the node is successfully placed facing "north" each time,
but it only works if I disable:
paramtype2 = "facedir",As is, a screwdriver doesnt actually turn the node (but the node does function as if it were turned).
Each side of the node depending on it facedir determines the depth/direction of the explosion;
so the player needs to see the turned node when turned by a screwdriver
because the textures are the indicators of depth and direction
and it has to be placed the same each time to give the indicators proper orientation
no matter from what direction they are placed by the player.
what am I missing?