I have made a simple mod to add Scrabble-like nodebox tiles for my son to play with.
Rotation when placed on the ground is correct but when placed on a vertical surface the texture is always rotated 90 degrees clockwise from the placer's perspective.
I expected the texture when placed on vertical surfaces would, by default, be "upright".
The texture for the tile in the screenshot (tile_bottom.png and tile_sides.png are the same square background without the letter) and a simplified version of the node definition below.
I couldn't see an obvious (to me) reason for why this happens in builtin/common/misc_helpers.lua but I most likley don't know what I'm looking for.
Code: Select all
minetest.register_node('tile:tile_A', {
description = ("tile A" ),
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = { -0.48, -0.5, -0.48, 0.48, -0.28, 0.48 }
},
tiles = {
'tile_A.png',
'tile_bottom.png',
'tile_sides.png',
'tile_sides.png',
'tile_sides.png',
'tile_sides.png'
},
sunlight_propagates = true,
paramtype = "light",
paramtype2 = "facedir",
walkable = true,
groups = { snappy = 3 },
sounds = default.node_sound_wood_defaults(),
on_place = minetest.rotate_node
})