summaryrefslogtreecommitdiff
path: root/unifiedbricks
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-02-04 20:11:09 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-02-04 20:11:09 -0500
commit921c05da0d057469032fe9aced321503f1f0d498 (patch)
tree7e7d75b4a15cee7984d98f9da2230d74b19aea96 /unifiedbricks
parenteba6f42678dbdb4837a30908b0627bee6f35440a (diff)
downloaddreambuilder_modpack-921c05da0d057469032fe9aced321503f1f0d498.tar
dreambuilder_modpack-921c05da0d057469032fe9aced321503f1f0d498.tar.gz
dreambuilder_modpack-921c05da0d057469032fe9aced321503f1f0d498.tar.bz2
dreambuilder_modpack-921c05da0d057469032fe9aced321503f1f0d498.tar.xz
dreambuilder_modpack-921c05da0d057469032fe9aced321503f1f0d498.zip
updated several mods to use newer unified dyes API
blox, bobblocks, coloredwood, framedglass, homedecor, ilights, plasticbox, stained_glass, unifiedbricks, and of course unified dyes.
Diffstat (limited to 'unifiedbricks')
-rw-r--r--unifiedbricks/init.lua24
1 files changed, 6 insertions, 18 deletions
diff --git a/unifiedbricks/init.lua b/unifiedbricks/init.lua
index 369126a..d041e8a 100644
--- a/unifiedbricks/init.lua
+++ b/unifiedbricks/init.lua
@@ -104,21 +104,15 @@ minetest.register_node("unifiedbricks:brickblock", {
paramtype2 = "color",
palette = "unifieddyes_palette.png",
is_ground_content = true,
- groups = {cracky=3, not_in_creative_inventory=1},
+ groups = {cracky=3, not_in_creative_inventory=1, ud_param2_colorable = 1},
sounds = default.node_sound_stone_defaults(),
after_dig_node = unifieddyes.after_dig_node,
- on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
- unifieddyes.on_rightclick(pos, node, clicker,
- itemstack, pointed_thing, "unifiedbricks:brickblock")
- end,
drop = "default:brick"
})
minetest.override_item("default:brick", {
- on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
- unifieddyes.on_rightclick(pos, node, clicker,
- itemstack, pointed_thing, "unifiedbricks:brickblock")
- end
+ ud_replacement_node = "unifiedbricks:brickblock",
+ groups = {cracky = 3, ud_param2_colorable = 1}
})
minetest.register_node("unifiedbricks:clayblock", {
@@ -130,23 +124,17 @@ minetest.register_node("unifiedbricks:clayblock", {
paramtype2 = "color",
palette = "unifieddyes_palette.png",
is_ground_content = true,
- groups = {crumbly=3, not_in_creative_inventory=1},
+ groups = {crumbly=3, not_in_creative_inventory=1, ud_param2_colorable = 1},
sounds = default.node_sound_dirt_defaults({
footstep = "",
}),
after_dig_node = unifieddyes.after_dig_node,
- on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
- unifieddyes.on_rightclick(pos, node, clicker,
- itemstack, pointed_thing, "unifiedbricks:clayblock")
- end,
drop = "default:clay"
})
minetest.override_item("default:clay", {
- on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
- unifieddyes.on_rightclick(pos, node, clicker,
- itemstack, pointed_thing, "unifiedbricks:clayblock")
- end
+ ud_replacement_node = "unifiedbricks:clayblock",
+ groups = {crumbly = 3, ud_param2_colorable = 1}
})