diff options
author | tenplus1 <kinsellaja@yahoo.com> | 2014-11-09 15:21:00 +0000 |
---|---|---|
committer | tenplus1 <kinsellaja@yahoo.com> | 2014-11-09 15:21:00 +0000 |
commit | c22d06f8b88afb8c3f3e5958f08cd1cf3135ac6d (patch) | |
tree | a359a2ff10da9e543e638f5a6b005b3cf65fd1fb |
1st Commit
-rw-r--r-- | depends.txt | 2 | ||||
-rw-r--r-- | init.lua | 93 | ||||
-rw-r--r-- | license.txt | 14 | ||||
-rw-r--r-- | textures/baked_clay_black.png | bin | 0 -> 189 bytes | |||
-rw-r--r-- | textures/baked_clay_blue.png | bin | 0 -> 257 bytes | |||
-rw-r--r-- | textures/baked_clay_brown.png | bin | 0 -> 258 bytes | |||
-rw-r--r-- | textures/baked_clay_cyan.png | bin | 0 -> 289 bytes | |||
-rw-r--r-- | textures/baked_clay_dark_green.png | bin | 0 -> 287 bytes | |||
-rw-r--r-- | textures/baked_clay_dark_grey.png | bin | 0 -> 226 bytes | |||
-rw-r--r-- | textures/baked_clay_green.png | bin | 0 -> 351 bytes | |||
-rw-r--r-- | textures/baked_clay_grey.png | bin | 0 -> 211 bytes | |||
-rw-r--r-- | textures/baked_clay_magenta.png | bin | 0 -> 341 bytes | |||
-rw-r--r-- | textures/baked_clay_orange.png | bin | 0 -> 421 bytes | |||
-rw-r--r-- | textures/baked_clay_pink.png | bin | 0 -> 289 bytes | |||
-rw-r--r-- | textures/baked_clay_red.png | bin | 0 -> 425 bytes | |||
-rw-r--r-- | textures/baked_clay_violet.png | bin | 0 -> 332 bytes | |||
-rw-r--r-- | textures/baked_clay_white.png | bin | 0 -> 255 bytes | |||
-rw-r--r-- | textures/baked_clay_yellow.png | bin | 0 -> 361 bytes |
18 files changed, 109 insertions, 0 deletions
diff --git a/depends.txt b/depends.txt new file mode 100644 index 0000000..e0264b4 --- /dev/null +++ b/depends.txt @@ -0,0 +1,2 @@ +default +stairs
\ No newline at end of file diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..cb15768 --- /dev/null +++ b/init.lua @@ -0,0 +1,93 @@ +--= Baked Clay (0.3) by TenPlus1 +--= Code-base taken from default wool mod + +local clay = {} +clay.dyes = { + {"white", "White", "basecolor_white"}, + {"grey", "Grey", "basecolor_grey"}, + {"black", "Black", "basecolor_black"}, + {"red", "Red", "basecolor_red"}, + {"yellow", "Yellow", "basecolor_yellow"}, + {"green", "Green", "basecolor_green"}, + {"cyan", "Cyan", "basecolor_cyan"}, + {"blue", "Blue", "basecolor_blue"}, + {"magenta", "Magenta", "basecolor_magenta"}, + {"orange", "Orange", "excolor_orange"}, + {"violet", "Violet", "excolor_violet"}, + {"brown", "Brown", "unicolor_dark_orange"}, + {"pink", "Pink", "unicolor_light_red"}, + {"dark_grey", "Dark Grey", "unicolor_darkgrey"}, + {"dark_green", "Dark Green", "unicolor_dark_green"}, +} + +minetest.register_craft({
+ type = "cooking",
+ output = "bakedclay:white",
+ recipe = "default:clay", +}) + +for _, row in ipairs(clay.dyes) do + local name = row[1] + local desc = row[2] + local craft_color_group = row[3] + -- Node Definition + minetest.register_node("bakedclay:"..name, { + description = desc.." Baked Clay", + tiles = {"baked_clay_"..name..".png"}, + groups = {cracky=3,bakedclay=1}, + sounds = default.node_sound_stone_defaults(), + }) + if craft_color_group then + -- Crafting from dye and white clay + minetest.register_craft({ + type = "shapeless", + output = "bakedclay:"..name, + recipe = {"group:dye,"..craft_color_group, "group:bakedclay"}, + }) + end + -- Register Stair + stairs.register_stair_and_slab("bakedclay_"..name, "bakedclay:"..name, + {cracky=3}, + {"baked_clay_"..name..".png"}, + "Baked Clay "..desc.." Stair", + "Baked Clay "..desc.." Slab", + default.node_sound_stone_defaults()) +end + +--= Register a few extra Dye Colour Options + +minetest.register_craft( { + type = "shapeless", + output = "dye:dark_grey 3", + recipe = { + "dye:black", + "dye:black", + "dye:white", + }, +}) + +minetest.register_craft( { + type = "shapeless", + output = "dye:grey 3", + recipe = { + "dye:black", + "dye:white", + "dye:white", + }, +}) + +minetest.register_craft( { + type = "shapeless", + output = "dye:green 4", + recipe = { + "default:cactus", + }, +}) + +minetest.register_craft( { + type = "shapeless", + output = "dye:black 4", + recipe = { + "default:coal_lump", + }, +}) diff --git a/license.txt b/license.txt new file mode 100644 index 0000000..5d30c14 --- /dev/null +++ b/license.txt @@ -0,0 +1,14 @@ + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO.
\ No newline at end of file diff --git a/textures/baked_clay_black.png b/textures/baked_clay_black.png Binary files differnew file mode 100644 index 0000000..956f315 --- /dev/null +++ b/textures/baked_clay_black.png diff --git a/textures/baked_clay_blue.png b/textures/baked_clay_blue.png Binary files differnew file mode 100644 index 0000000..2b11d36 --- /dev/null +++ b/textures/baked_clay_blue.png diff --git a/textures/baked_clay_brown.png b/textures/baked_clay_brown.png Binary files differnew file mode 100644 index 0000000..f46e328 --- /dev/null +++ b/textures/baked_clay_brown.png diff --git a/textures/baked_clay_cyan.png b/textures/baked_clay_cyan.png Binary files differnew file mode 100644 index 0000000..364793e --- /dev/null +++ b/textures/baked_clay_cyan.png diff --git a/textures/baked_clay_dark_green.png b/textures/baked_clay_dark_green.png Binary files differnew file mode 100644 index 0000000..2bd2586 --- /dev/null +++ b/textures/baked_clay_dark_green.png diff --git a/textures/baked_clay_dark_grey.png b/textures/baked_clay_dark_grey.png Binary files differnew file mode 100644 index 0000000..44642e7 --- /dev/null +++ b/textures/baked_clay_dark_grey.png diff --git a/textures/baked_clay_green.png b/textures/baked_clay_green.png Binary files differnew file mode 100644 index 0000000..58f348c --- /dev/null +++ b/textures/baked_clay_green.png diff --git a/textures/baked_clay_grey.png b/textures/baked_clay_grey.png Binary files differnew file mode 100644 index 0000000..deecb6a --- /dev/null +++ b/textures/baked_clay_grey.png diff --git a/textures/baked_clay_magenta.png b/textures/baked_clay_magenta.png Binary files differnew file mode 100644 index 0000000..e740738 --- /dev/null +++ b/textures/baked_clay_magenta.png diff --git a/textures/baked_clay_orange.png b/textures/baked_clay_orange.png Binary files differnew file mode 100644 index 0000000..847b793 --- /dev/null +++ b/textures/baked_clay_orange.png diff --git a/textures/baked_clay_pink.png b/textures/baked_clay_pink.png Binary files differnew file mode 100644 index 0000000..417fcfc --- /dev/null +++ b/textures/baked_clay_pink.png diff --git a/textures/baked_clay_red.png b/textures/baked_clay_red.png Binary files differnew file mode 100644 index 0000000..e716218 --- /dev/null +++ b/textures/baked_clay_red.png diff --git a/textures/baked_clay_violet.png b/textures/baked_clay_violet.png Binary files differnew file mode 100644 index 0000000..b5db133 --- /dev/null +++ b/textures/baked_clay_violet.png diff --git a/textures/baked_clay_white.png b/textures/baked_clay_white.png Binary files differnew file mode 100644 index 0000000..ff953ab --- /dev/null +++ b/textures/baked_clay_white.png diff --git a/textures/baked_clay_yellow.png b/textures/baked_clay_yellow.png Binary files differnew file mode 100644 index 0000000..e26e40c --- /dev/null +++ b/textures/baked_clay_yellow.png |