diff --git a/README.md b/README.md index e740e03..70f9159 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ https://forum.minetest.net/viewtopic.php?id=8890 Changelog: +- 1.0 - Added glazed terracotta blocks when you cook baked clay in furnace (thanks D3monPixel) - 0.9 - Baked clay now works in the technic cnc machine - 0.8 - Cooking clay block in furnace gives natural baked clay which you can dye - 0.7 - Added support for stairsplus so that stairs are registered properly diff --git a/init.lua b/init.lua index 133d199..9ded40e 100644 --- a/init.lua +++ b/init.lua @@ -92,6 +92,37 @@ for _, clay in pairs(clay) do end end +-- Terracotta blocks (textures by D3monPixel, thanks for use :) +for _, clay in pairs(clay) do + + if clay[1] ~= "natural" then + + local texture = "baked_clay_terracotta_" .. clay[1] ..".png" + + minetest.register_node("bakedclay:terracotta_" .. clay[1], { + description = clay[2] .. " Glazed Terracotta", + tiles = { + texture .. "", + texture .. "", + texture .. "^[transformR180", + texture .. "", + texture .. "^[transformR270", + texture .. "^[transformR90", + }, + paramtype2 = "facedir", + groups = {cracky = 3, terracotta = 1}, + sounds = default.node_sound_stone_defaults(), + on_place = minetest.rotate_node + }) + + minetest.register_craft({ + type = "cooking", + output = "bakedclay:terracotta_" .. clay[1], + recipe = "bakedclay:" .. clay[1] + }) + end +end + -- cook clay block into white baked clay minetest.register_craft({ @@ -123,12 +154,6 @@ minetest.register_craft( { recipe = {"default:cactus"} }) -minetest.register_craft( { - type = "shapeless", - output = "dye:black 4", - recipe = {"default:coal_lump"} -}) - minetest.register_craft( { type = "shapeless", output = "dye:brown 4", diff --git a/license.txt b/license.txt index fec6f6a..da710ed 100644 --- a/license.txt +++ b/license.txt @@ -19,3 +19,7 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +Textures by D3monPixel (https://mcpedl.com/better-glazed-terracotta-pack) + baked_clay_terracotta*.png diff --git a/textures/baked_clay_terracotta_black.png b/textures/baked_clay_terracotta_black.png new file mode 100644 index 0000000..1011a68 Binary files /dev/null and b/textures/baked_clay_terracotta_black.png differ diff --git a/textures/baked_clay_terracotta_blue.png b/textures/baked_clay_terracotta_blue.png new file mode 100644 index 0000000..8ced312 Binary files /dev/null and b/textures/baked_clay_terracotta_blue.png differ diff --git a/textures/baked_clay_terracotta_brown.png b/textures/baked_clay_terracotta_brown.png new file mode 100644 index 0000000..6b1163b Binary files /dev/null and b/textures/baked_clay_terracotta_brown.png differ diff --git a/textures/baked_clay_terracotta_cyan.png b/textures/baked_clay_terracotta_cyan.png new file mode 100644 index 0000000..13ebba7 Binary files /dev/null and b/textures/baked_clay_terracotta_cyan.png differ diff --git a/textures/baked_clay_terracotta_cyan2.png b/textures/baked_clay_terracotta_cyan2.png new file mode 100644 index 0000000..12bc97e Binary files /dev/null and b/textures/baked_clay_terracotta_cyan2.png differ diff --git a/textures/baked_clay_terracotta_dark_green.png b/textures/baked_clay_terracotta_dark_green.png new file mode 100644 index 0000000..43297d3 Binary files /dev/null and b/textures/baked_clay_terracotta_dark_green.png differ diff --git a/textures/baked_clay_terracotta_dark_grey.png b/textures/baked_clay_terracotta_dark_grey.png new file mode 100644 index 0000000..8eab4ed Binary files /dev/null and b/textures/baked_clay_terracotta_dark_grey.png differ diff --git a/textures/baked_clay_terracotta_green.png b/textures/baked_clay_terracotta_green.png new file mode 100644 index 0000000..20a10e3 Binary files /dev/null and b/textures/baked_clay_terracotta_green.png differ diff --git a/textures/baked_clay_terracotta_grey.png b/textures/baked_clay_terracotta_grey.png new file mode 100644 index 0000000..a51e1da Binary files /dev/null and b/textures/baked_clay_terracotta_grey.png differ diff --git a/textures/baked_clay_terracotta_magenta.png b/textures/baked_clay_terracotta_magenta.png new file mode 100644 index 0000000..5d6eb3a Binary files /dev/null and b/textures/baked_clay_terracotta_magenta.png differ diff --git a/textures/baked_clay_terracotta_orange.png b/textures/baked_clay_terracotta_orange.png new file mode 100644 index 0000000..df798b7 Binary files /dev/null and b/textures/baked_clay_terracotta_orange.png differ diff --git a/textures/baked_clay_terracotta_pink.png b/textures/baked_clay_terracotta_pink.png new file mode 100644 index 0000000..8f010ac Binary files /dev/null and b/textures/baked_clay_terracotta_pink.png differ diff --git a/textures/baked_clay_terracotta_red.png b/textures/baked_clay_terracotta_red.png new file mode 100644 index 0000000..ee46623 Binary files /dev/null and b/textures/baked_clay_terracotta_red.png differ diff --git a/textures/baked_clay_terracotta_violet.png b/textures/baked_clay_terracotta_violet.png new file mode 100644 index 0000000..f8376b9 Binary files /dev/null and b/textures/baked_clay_terracotta_violet.png differ diff --git a/textures/baked_clay_terracotta_white.png b/textures/baked_clay_terracotta_white.png new file mode 100644 index 0000000..8d75328 Binary files /dev/null and b/textures/baked_clay_terracotta_white.png differ diff --git a/textures/baked_clay_terracotta_yellow.png b/textures/baked_clay_terracotta_yellow.png new file mode 100644 index 0000000..726cd53 Binary files /dev/null and b/textures/baked_clay_terracotta_yellow.png differ