mirror of
https://gitea.your-land.de/whosit/compass_rose_node.git
synced 2025-06-17 15:18:03 +02:00
experimenting with single node and palettes
This commit is contained in:
parent
1b2c4bfdfc
commit
3e56e1679e
Binary file not shown.
BIN
compass_rose_decal_light_large.kra
Normal file
BIN
compass_rose_decal_light_large.kra
Normal file
Binary file not shown.
40
internal.lua
40
internal.lua
@ -68,7 +68,7 @@ for i=0,5 do
|
|||||||
minetest.register_node(":compass_rose_node:decal_light_" .. tostring(i), {
|
minetest.register_node(":compass_rose_node:decal_light_" .. tostring(i), {
|
||||||
description = "Compass rose block",
|
description = "Compass rose block",
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
use_texture_alpha = "blend",
|
use_texture_alpha = "clip", -- "blend",
|
||||||
tiles = {
|
tiles = {
|
||||||
"compass_rose_decal_light_side" .. tostring(i) .. ".png",
|
"compass_rose_decal_light_side" .. tostring(i) .. ".png",
|
||||||
},
|
},
|
||||||
@ -91,4 +91,40 @@ for i=0,5 do
|
|||||||
groups = {choppy = 3, dig_immediate = 2},
|
groups = {choppy = 3, dig_immediate = 2},
|
||||||
--on_place = on_place
|
--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
|
||||||
|
})
|
||||||
|
BIN
textures/compass_rose_decal_light_large.png
Normal file
BIN
textures/compass_rose_decal_light_large.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.2 KiB |
BIN
textures/compass_rose_decal_light_large_letters.png
Normal file
BIN
textures/compass_rose_decal_light_large_letters.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.9 KiB |
BIN
textures/compass_rose_decal_palette.png
Normal file
BIN
textures/compass_rose_decal_palette.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.1 KiB |
Loading…
Reference in New Issue
Block a user