forked from minetest-mods/BobBlocks
use unified dyes on_construct handler
to set 256-color palette meta key on place
This commit is contained in:
parent
270da9bf78
commit
a16e960ac1
@ -52,6 +52,7 @@ minetest.register_node("bobblocks:block", {
|
||||
}
|
||||
},
|
||||
on_rightclick = bobblocks.update_bobblock,
|
||||
on_construct = unifieddyes.on_construct,
|
||||
after_dig_node = unifieddyes.after_dig_node
|
||||
})
|
||||
|
||||
@ -72,6 +73,7 @@ minetest.register_node("bobblocks:block_off", {
|
||||
}
|
||||
},
|
||||
on_rightclick = bobblocks.update_bobblock,
|
||||
on_construct = unifieddyes.on_construct,
|
||||
after_dig_node = unifieddyes.after_dig_node
|
||||
})
|
||||
|
||||
@ -96,6 +98,7 @@ minetest.register_node("bobblocks:pole", {
|
||||
}
|
||||
},
|
||||
on_rightclick = bobblocks.update_bobblock,
|
||||
on_construct = unifieddyes.on_construct,
|
||||
after_dig_node = unifieddyes.after_dig_node
|
||||
})
|
||||
|
||||
@ -120,6 +123,7 @@ minetest.register_node("bobblocks:pole_off", {
|
||||
}
|
||||
},
|
||||
on_rightclick = bobblocks.update_bobblock,
|
||||
on_construct = unifieddyes.on_construct,
|
||||
after_dig_node = unifieddyes.after_dig_node
|
||||
})
|
||||
|
||||
@ -155,6 +159,7 @@ minetest.register_node("bobblocks:wavyblock", {
|
||||
}
|
||||
},
|
||||
on_rightclick = bobblocks.update_bobblock,
|
||||
on_construct = unifieddyes.on_construct,
|
||||
after_dig_node = unifieddyes.after_dig_node
|
||||
})
|
||||
|
||||
@ -176,6 +181,7 @@ minetest.register_node("bobblocks:wavyblock_off", {
|
||||
}
|
||||
},
|
||||
on_rightclick = bobblocks.update_bobblock,
|
||||
on_construct = unifieddyes.on_construct,
|
||||
after_dig_node = unifieddyes.after_dig_node
|
||||
})
|
||||
|
||||
@ -192,6 +198,7 @@ minetest.register_node("bobblocks:wavypole", {
|
||||
is_ground_content = false,
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3, ud_param2_colorable = 1},
|
||||
on_construct = unifieddyes.on_construct,
|
||||
after_dig_node = unifieddyes.after_dig_node,
|
||||
--light_source = LIGHT_MAX-0,
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user