Browse Source

use unified dyes on_construct handler

to set 256-color palette meta key on place
pull/2/head
Vanessa Ezekowitz 3 years ago
parent
commit
a16e960ac1
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      blocks.lua

+ 7
- 0
blocks.lua View File

@@ -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…
Cancel
Save