mirror of
https://codeberg.org/tenplus1/bakedclay.git
synced 2025-07-06 18:20:33 +02:00
add glazed terracotta
This commit is contained in:
37
init.lua
37
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",
|
||||
|
Reference in New Issue
Block a user