mirror of
https://github.com/minetest-mods/stained_glass.git
synced 2024-11-16 06:50:19 +01:00
use unified dyes auto-colorization feature
This commit is contained in:
parent
9f2552a540
commit
f6b10f4cbe
8
init.lua
8
init.lua
|
@ -58,6 +58,7 @@ minetest.register_node("stained_glass:stained_glass", {
|
|||
sounds = default.node_sound_glass_defaults(),
|
||||
drop = "moreblocks:super_glow_glass",
|
||||
on_construct = unifieddyes.on_construct,
|
||||
after_place_node = unifieddyes.recolor_on_place,
|
||||
after_dig_node = unifieddyes.after_dig_node,
|
||||
drop = "moreblocks:super_glow_glass"
|
||||
})
|
||||
|
@ -66,7 +67,8 @@ minetest.override_item("moreblocks:super_glow_glass", {
|
|||
palette = "unifieddyes_palette_extended.png",
|
||||
place_param2 = 240,
|
||||
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3, ud_param2_colorable = 1},
|
||||
ud_replacement_node = "stained_glass:stained_glass"
|
||||
ud_replacement_node = "stained_glass:stained_glass",
|
||||
after_place_node = unifieddyes.recolor_on_place
|
||||
})
|
||||
|
||||
-- trap glass
|
||||
|
@ -88,6 +90,7 @@ minetest.register_node("stained_glass:stained_trap_glass", {
|
|||
sounds = default.node_sound_glass_defaults(),
|
||||
drop = "moreblocks:trap_super_glow_glass",
|
||||
on_construct = unifieddyes.on_construct,
|
||||
after_place_node = unifieddyes.recolor_on_place,
|
||||
after_dig_node = unifieddyes.after_dig_node,
|
||||
drop = "moreblocks:trap_super_glow_glass"
|
||||
})
|
||||
|
@ -96,7 +99,8 @@ minetest.override_item("moreblocks:trap_super_glow_glass", {
|
|||
palette = "unifieddyes_palette_extended.png",
|
||||
place_param2 = 240,
|
||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3, ud_param2_colorable = 1},
|
||||
ud_replacement_node = "stained_glass:stained_trap_glass"
|
||||
ud_replacement_node = "stained_glass:stained_trap_glass",
|
||||
after_place_node = unifieddyes.recolor_on_place
|
||||
})
|
||||
|
||||
function stainedglass.makenode(arg)
|
||||
|
|
Loading…
Reference in New Issue
Block a user