summaryrefslogtreecommitdiff
path: root/unifiedbricks
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-08-22 22:28:28 -0400
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-08-22 22:28:28 -0400
commit9c9457e1f50ebdd943695a4cce6b88fa552370f3 (patch)
tree4f6002b266179e0dd1639affffd4f09a18dfcad5 /unifiedbricks
parent3c47f229fcbdb7cad28bacbc579516bf3ecf6c03 (diff)
downloaddreambuilder_modpack-9c9457e1f50ebdd943695a4cce6b88fa552370f3.tar
dreambuilder_modpack-9c9457e1f50ebdd943695a4cce6b88fa552370f3.tar.gz
dreambuilder_modpack-9c9457e1f50ebdd943695a4cce6b88fa552370f3.tar.bz2
dreambuilder_modpack-9c9457e1f50ebdd943695a4cce6b88fa552370f3.tar.xz
dreambuilder_modpack-9c9457e1f50ebdd943695a4cce6b88fa552370f3.zip
update castles modpack, blox, bobblocks, coloredwood, technic,
gloopblocks, homedecor, ilights, led marquee, plasticbox, solidcolor, stained_glass, unified bricks, and unified dyes In most of these, the update is to shift over to the new "old" coloring paradigm in Unified Dyes. See its forum thread for details.
Diffstat (limited to 'unifiedbricks')
-rw-r--r--unifiedbricks/init.lua76
1 files changed, 55 insertions, 21 deletions
diff --git a/unifiedbricks/init.lua b/unifiedbricks/init.lua
index 7e6e3d0..83b91b8 100644
--- a/unifiedbricks/init.lua
+++ b/unifiedbricks/init.lua
@@ -103,21 +103,15 @@ minetest.register_node("unifiedbricks:brickblock", {
paramtype = "light",
paramtype2 = "color",
palette = "unifieddyes_palette_extended.png",
- place_param2 = 240,
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_place_node = unifieddyes.recolor_on_place,
- after_dig_node = unifieddyes.after_dig_node,
- drop = "default:brick"
})
minetest.override_item("default:brick", {
- ud_replacement_node = "unifiedbricks:brickblock",
palette = "unifieddyes_palette_extended.png",
groups = {cracky = 3, ud_param2_colorable = 1},
- after_place_node = unifieddyes.recolor_on_place
})
minetest.register_node("unifiedbricks:clayblock", {
@@ -127,23 +121,17 @@ minetest.register_node("unifiedbricks:clayblock", {
},
paramtype2 = "color",
palette = "unifieddyes_palette_extended.png",
- place_param2 = 240,
is_ground_content = true,
groups = {crumbly=3, not_in_creative_inventory=1, ud_param2_colorable = 1},
sounds = default.node_sound_dirt_defaults({
footstep = "",
}),
on_construct = unifieddyes.on_construct,
- after_place_node = unifieddyes.recolor_on_place,
- after_dig_node = unifieddyes.after_dig_node,
- drop = "default:clay"
})
minetest.override_item("default:clay", {
- ud_replacement_node = "unifiedbricks:clayblock",
palette = "unifieddyes_palette_extended.png",
groups = {crumbly = 3, ud_param2_colorable = 1},
- after_place_node = unifieddyes.recolor_on_place,
})
minetest.register_node("unifiedbricks:brickblock_multicolor_dark", {
@@ -157,13 +145,10 @@ minetest.register_node("unifiedbricks:brickblock_multicolor_dark", {
paramtype = "light",
paramtype2 = "color",
palette = "unifieddyes_palette_extended.png",
- place_param2 = 240,
is_ground_content = true,
groups = {cracky=3, ud_param2_colorable = 1},
sounds = default.node_sound_stone_defaults(),
on_construct = unifieddyes.on_construct,
- after_place_node = unifieddyes.recolor_on_place,
- after_dig_node = unifieddyes.after_dig_node,
})
minetest.register_node("unifiedbricks:brickblock_multicolor_medium", {
@@ -177,13 +162,10 @@ minetest.register_node("unifiedbricks:brickblock_multicolor_medium", {
paramtype = "light",
paramtype2 = "color",
palette = "unifieddyes_palette_extended.png",
- place_param2 = 240,
is_ground_content = true,
groups = {cracky=3, ud_param2_colorable = 1},
sounds = default.node_sound_stone_defaults(),
on_construct = unifieddyes.on_construct,
- after_place_node = unifieddyes.recolor_on_place,
- after_dig_node = unifieddyes.after_dig_node,
})
minetest.register_node("unifiedbricks:brickblock_multicolor_light", {
@@ -197,13 +179,10 @@ minetest.register_node("unifiedbricks:brickblock_multicolor_light", {
paramtype = "light",
paramtype2 = "color",
palette = "unifieddyes_palette_extended.png",
- place_param2 = 240,
is_ground_content = true,
groups = {cracky=3, ud_param2_colorable = 1},
sounds = default.node_sound_stone_defaults(),
on_construct = unifieddyes.on_construct,
- after_place_node = unifieddyes.recolor_on_place,
- after_dig_node = unifieddyes.after_dig_node,
})
minetest.register_craft( {
@@ -239,6 +218,61 @@ minetest.register_craft( {
},
})
+unifieddyes.register_color_craft({
+ output = "unifiedbricks:brickblock",
+ palette = "extended",
+ neutral_node = "default:brick",
+ type = "shapeless",
+ recipe = {
+ "NEUTRAL_NODE",
+ "MAIN_DYE"
+ }
+})
+
+unifieddyes.register_color_craft({
+ output = "unifiedbricks:clayblock",
+ palette = "extended",
+ neutral_node = "default:clay",
+ type = "shapeless",
+ recipe = {
+ "NEUTRAL_NODE",
+ "MAIN_DYE"
+ }
+})
+
+unifieddyes.register_color_craft({
+ output = "unifiedbricks:brickblock_multicolor_dark",
+ palette = "extended",
+ neutral_node = "unifiedbricks:brickblock_multicolor_dark",
+ type = "shapeless",
+ recipe = {
+ "NEUTRAL_NODE",
+ "MAIN_DYE"
+ }
+})
+
+unifieddyes.register_color_craft({
+ output = "unifiedbricks:brickblock_multicolor_medium",
+ palette = "extended",
+ neutral_node = "unifiedbricks:brickblock_multicolor_medium",
+ type = "shapeless",
+ recipe = {
+ "NEUTRAL_NODE",
+ "MAIN_DYE"
+ }
+})
+
+unifieddyes.register_color_craft({
+ output = "unifiedbricks:brickblock_multicolor_light",
+ palette = "extended",
+ neutral_node = "unifiedbricks:brickblock_multicolor_light",
+ type = "shapeless",
+ recipe = {
+ "NEUTRAL_NODE",
+ "MAIN_DYE"
+ }
+})
+
-- static nodes
unifiedbricks.register_old_static_block = function(name, formalname, blocktype)