use minetest.rotate_node to place slopes
(6dfacedir prediction)