diff --git a/crafts.lua b/crafts.lua index cff0cbb3..74849bcf 100644 --- a/crafts.lua +++ b/crafts.lua @@ -6,6 +6,64 @@ -- License: GPL -- +-- Some recipes need white paint. If Unified Dyes isn't present, +-- implement the standard white paint recipe here instead. + +if ( minetest.get_modpath("unifieddyes") ) == nil then + + minetest.register_craftitem(":unifieddyes:titanium_dioxide", { + description = "Titanium Dioxide", + inventory_image = "homedecor_titanium_dioxide.png", + }) + + minetest.register_craft({ + type = "cooking", + output = "unifieddyes:titanium_dioxide 10", + recipe = "default:stone", + }) + + minetest.register_craftitem(":unifieddyes:white_paint", { + description = "Bucket of white paint", + inventory_image = "homedecor_white_paint.png", + }) + + minetest.register_craft( { + type = "shapeless", + output = "unifieddyes:white_paint", + recipe = { + "unifieddyes:titanium_dioxide", + "bucket:bucket_water", + "default:junglegrass", + }, + }) + + minetest.register_craft( { + type = "shapeless", + output = "unifieddyes:white_paint", + recipe = { + "unifieddyes:titanium_dioxide", + "bucket:bucket_water", + "default:dry_shrub", + "default:dry_shrub", + }, + }) + + minetest.register_craft( { + type = "shapeless", + output = "unifieddyes:white_paint", + recipe = { + "unifieddyes:titanium_dioxide", + "bucket:bucket_water", + "default:leaves", + "default:leaves", + "default:leaves", + }, + }) +end + + +-- misc stuff :D + minetest.register_craftitem("homedecor:terracotta_base", { description = "Uncooked Terracotta Base", inventory_image = "homedecor_terracotta_base.png", diff --git a/textures/homedecor_titanium_dioxide.png b/textures/homedecor_titanium_dioxide.png new file mode 100644 index 00000000..753b6075 Binary files /dev/null and b/textures/homedecor_titanium_dioxide.png differ diff --git a/textures/homedecor_white_paint.png b/textures/homedecor_white_paint.png new file mode 100644 index 00000000..668ccc72 Binary files /dev/null and b/textures/homedecor_white_paint.png differ