commit 4ba38cbea0d265e179c15c2424eaabb4e9f84c9b Author: Craig Davison Date: Tue Mar 11 19:23:27 2014 +0000 Add initial code diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..4b57b8b --- /dev/null +++ b/README.txt @@ -0,0 +1,15 @@ +Coloured Stone Bricks +===================== + + +This mod adds coloured stone bricks! These are decorative blocks which would look nice on any building or creation. + +Crafting +-------- +You can craft the blocks by placing a stone brick and a coloured dye in the craft grid: + +Depends: default, dye +Licence: Code and textures, CC BY-SA 4.0 +Installation: Unzip the file and rename it to "colouredstonebricks". Then move it to the mod directory. + +More information and discussion: \ No newline at end of file diff --git a/depends.txt b/depends.txt new file mode 100644 index 0000000..8401bd9 --- /dev/null +++ b/depends.txt @@ -0,0 +1,2 @@ +default +dye \ No newline at end of file diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..48e4ad1 --- /dev/null +++ b/init.lua @@ -0,0 +1,61 @@ +local COLOURS = { + "Black", + "Cyan", + "Brown", + "Dark Blue", + "Dark Green", + "Dark Grey", + "Dark Pink", + "Green", + "Grey", + "Orange", + "Pink", + "Purple", + "Red", + "White", + "Yellow" +} + +local COLOURS2 = { + "black", + "cyan", + "brown", + "dark_blue", + "dark_green", + "dark_grey", + "dark_pink", + "green", + "grey", + "orange", + "pink", + "purple", + "red", + "white", + "yellow" +} + +for number = 1, 15 do + + local colour = COLOURS[number] + local colour2 = COLOURS2[number] + + minetest.register_node("colouredstonebricks:"..colour2, { + description = colour.." Stone Brick", + tiles = {"colouredstonebricks_"..colour2..".png"}, + groups = {cracky=3}, + }) + + minetest.register_craft({ + type = "shapeless", + output = 'colouredstonebricks:'..colour2, + recipe = { + 'dye:'..colour2, 'default:stonebrick', + } + }) +end + +minetest.register_alias("dye:dark_blue","dye:blue") +minetest.register_alias("dye:dark_pink","dye:magenta") +minetest.register_alias("dye:purple","dye:violet") + +print ("Coloured Stone Bricks [colouredstonebricks] has loaded!") \ No newline at end of file diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..ecb14b8 Binary files /dev/null and b/screenshot.png differ diff --git a/textures/colouredstonebricks_black.png b/textures/colouredstonebricks_black.png new file mode 100644 index 0000000..ccbf594 Binary files /dev/null and b/textures/colouredstonebricks_black.png differ diff --git a/textures/colouredstonebricks_brown.png b/textures/colouredstonebricks_brown.png new file mode 100644 index 0000000..389850d Binary files /dev/null and b/textures/colouredstonebricks_brown.png differ diff --git a/textures/colouredstonebricks_cyan.png b/textures/colouredstonebricks_cyan.png new file mode 100644 index 0000000..c0635e9 Binary files /dev/null and b/textures/colouredstonebricks_cyan.png differ diff --git a/textures/colouredstonebricks_dark_blue.png b/textures/colouredstonebricks_dark_blue.png new file mode 100644 index 0000000..c93d6f9 Binary files /dev/null and b/textures/colouredstonebricks_dark_blue.png differ diff --git a/textures/colouredstonebricks_dark_green.png b/textures/colouredstonebricks_dark_green.png new file mode 100644 index 0000000..49a391e Binary files /dev/null and b/textures/colouredstonebricks_dark_green.png differ diff --git a/textures/colouredstonebricks_dark_grey.png b/textures/colouredstonebricks_dark_grey.png new file mode 100644 index 0000000..94d733e Binary files /dev/null and b/textures/colouredstonebricks_dark_grey.png differ diff --git a/textures/colouredstonebricks_dark_pink.png b/textures/colouredstonebricks_dark_pink.png new file mode 100644 index 0000000..ac57a25 Binary files /dev/null and b/textures/colouredstonebricks_dark_pink.png differ diff --git a/textures/colouredstonebricks_green.png b/textures/colouredstonebricks_green.png new file mode 100644 index 0000000..55544de Binary files /dev/null and b/textures/colouredstonebricks_green.png differ diff --git a/textures/colouredstonebricks_grey.png b/textures/colouredstonebricks_grey.png new file mode 100644 index 0000000..8a490c0 Binary files /dev/null and b/textures/colouredstonebricks_grey.png differ diff --git a/textures/colouredstonebricks_orange.png b/textures/colouredstonebricks_orange.png new file mode 100644 index 0000000..630925f Binary files /dev/null and b/textures/colouredstonebricks_orange.png differ diff --git a/textures/colouredstonebricks_pink.png b/textures/colouredstonebricks_pink.png new file mode 100644 index 0000000..b745c11 Binary files /dev/null and b/textures/colouredstonebricks_pink.png differ diff --git a/textures/colouredstonebricks_purple.png b/textures/colouredstonebricks_purple.png new file mode 100644 index 0000000..bddcd2e Binary files /dev/null and b/textures/colouredstonebricks_purple.png differ diff --git a/textures/colouredstonebricks_red.png b/textures/colouredstonebricks_red.png new file mode 100644 index 0000000..4704881 Binary files /dev/null and b/textures/colouredstonebricks_red.png differ diff --git a/textures/colouredstonebricks_white.png b/textures/colouredstonebricks_white.png new file mode 100644 index 0000000..24416b0 Binary files /dev/null and b/textures/colouredstonebricks_white.png differ diff --git a/textures/colouredstonebricks_yellow.png b/textures/colouredstonebricks_yellow.png new file mode 100644 index 0000000..88fb511 Binary files /dev/null and b/textures/colouredstonebricks_yellow.png differ