experimenting with single node and palettes

This commit is contained in:
whosit 2025-03-03 20:19:43 +03:00
parent 1b2c4bfdfc
commit 3e56e1679e
6 changed files with 38 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@ -68,7 +68,7 @@ for i=0,5 do
minetest.register_node(":compass_rose_node:decal_light_" .. tostring(i), {
description = "Compass rose block",
drawtype = "nodebox",
use_texture_alpha = "blend",
use_texture_alpha = "clip", -- "blend",
tiles = {
"compass_rose_decal_light_side" .. tostring(i) .. ".png",
},
@ -91,4 +91,40 @@ for i=0,5 do
groups = {choppy = 3, dig_immediate = 2},
--on_place = on_place
})
end
end
minetest.register_node(":compass_rose_node:decal_light_large", {
description = "Compass rose block",
drawtype = "nodebox",
use_texture_alpha = "blend",
tiles = {
"compass_rose_decal_light_large.png",
},
-- overlay_tiles = {
-- {
-- name = "compass_rose_decal_light_large_letters.png",
-- color = "#F0F0F0",
-- }
-- },
visual_scale = 3.0,
is_ground_content = false,
--inventory_image = "compass_rose_node_" .. name .. ".png",
--wield_image = "compass_rose_node_" .. name .. ".png",
paramtype = "light",
--paramtype2 = "facedir",
paramtype2 = "colorfacedir",
palette = "compass_rose_decal_palette.png",
walkable = false,
climbable = false,
sunlight_propagates = true,
node_box = {
type = "fixed",
fixed = {-1.5/3, -0.49/3, -1.5/3, 1.5/3, -0.49/3, 1.5/3}
},
selection_box = {
type = "fixed",
fixed = {-1.5, -0.45, -1.5, 1.5, -0.5, 1.5}
},
groups = {choppy = 3, dig_immediate = 2},
--on_place = on_place
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB