mirror of
https://github.com/minetest-mods/unifiedbricks.git
synced 2024-11-13 05:50:24 +01:00
use unified dyes on_construct handler
to set 256-color palette meta key on place
This commit is contained in:
parent
7d9a32b0ee
commit
627b48fd1b
5
init.lua
5
init.lua
|
@ -107,6 +107,7 @@ minetest.register_node("unifiedbricks:brickblock", {
|
|||
is_ground_content = true,
|
||||
groups = {cracky=3, not_in_creative_inventory=1, ud_param2_colorable = 1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
on_construct = unifieddyes.on_construct,
|
||||
after_dig_node = unifieddyes.after_dig_node,
|
||||
drop = "default:brick"
|
||||
})
|
||||
|
@ -131,6 +132,7 @@ minetest.register_node("unifiedbricks:clayblock", {
|
|||
sounds = default.node_sound_dirt_defaults({
|
||||
footstep = "",
|
||||
}),
|
||||
on_construct = unifieddyes.on_construct,
|
||||
after_dig_node = unifieddyes.after_dig_node,
|
||||
drop = "default:clay"
|
||||
})
|
||||
|
@ -156,6 +158,7 @@ minetest.register_node("unifiedbricks:brickblock_multicolor_dark", {
|
|||
is_ground_content = true,
|
||||
groups = {cracky=3, ud_param2_colorable = 1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
on_construct = unifieddyes.on_construct,
|
||||
after_dig_node = unifieddyes.after_dig_node,
|
||||
})
|
||||
|
||||
|
@ -174,6 +177,7 @@ minetest.register_node("unifiedbricks:brickblock_multicolor_medium", {
|
|||
is_ground_content = true,
|
||||
groups = {cracky=3, ud_param2_colorable = 1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
on_construct = unifieddyes.on_construct,
|
||||
after_dig_node = unifieddyes.after_dig_node,
|
||||
})
|
||||
|
||||
|
@ -192,6 +196,7 @@ minetest.register_node("unifiedbricks:brickblock_multicolor_light", {
|
|||
is_ground_content = true,
|
||||
groups = {cracky=3, ud_param2_colorable = 1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
on_construct = unifieddyes.on_construct,
|
||||
after_dig_node = unifieddyes.after_dig_node,
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user