forked from mtcontrib/bakedclay
Merge branch 'master' of yunohost.local:mtcontrib/bakedclay into nalc-1.2-dev
This commit is contained in:
commit
1ba54476b1
@ -7,6 +7,8 @@ https://forum.minetest.net/viewtopic.php?id=8890
|
|||||||
|
|
||||||
Changelog:
|
Changelog:
|
||||||
|
|
||||||
|
- 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
|
- 0.7 - Added support for stairsplus so that stairs are registered properly
|
||||||
- 0.6 - Added 3 new flowers and a new grass that are used for missing dyes
|
- 0.6 - Added 3 new flowers and a new grass that are used for missing dyes
|
||||||
- 0.5 - Now using minecraft recipe to colour baked clay (8x baked clay, 1x dye in centre)
|
- 0.5 - Now using minecraft recipe to colour baked clay (8x baked clay, 1x dye in centre)
|
||||||
@ -15,4 +17,4 @@ Changelog:
|
|||||||
- 0.2 - Any colour of baked clay can be re-dyed into another colour
|
- 0.2 - Any colour of baked clay can be re-dyed into another colour
|
||||||
- 0.1 - Initial Release
|
- 0.1 - Initial Release
|
||||||
|
|
||||||
Lucky Blocks: 8
|
Lucky Blocks: 9
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
default
|
default
|
||||||
stairs
|
stairs
|
||||||
moreblocks?
|
moreblocks?
|
||||||
lucky_block?
|
lucky_block?
|
||||||
|
technic_cnc?
|
||||||
|
60
init.lua
60
init.lua
@ -2,6 +2,7 @@
|
|||||||
-- Baked Clay by TenPlus1
|
-- Baked Clay by TenPlus1
|
||||||
|
|
||||||
local clay = {
|
local clay = {
|
||||||
|
{"natural", "Natural"},
|
||||||
{"white", "White"},
|
{"white", "White"},
|
||||||
{"grey", "Grey"},
|
{"grey", "Grey"},
|
||||||
{"black", "Black"},
|
{"black", "Black"},
|
||||||
@ -19,6 +20,7 @@ local clay = {
|
|||||||
{"dark_green", "Dark Green"},
|
{"dark_green", "Dark Green"},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local techcnc_mod = minetest.get_modpath("technic_cnc")
|
||||||
local stairs_mod = minetest.get_modpath("stairs")
|
local stairs_mod = minetest.get_modpath("stairs")
|
||||||
local stairsplus_mod = minetest.get_modpath("moreblocks")
|
local stairsplus_mod = minetest.get_modpath("moreblocks")
|
||||||
and minetest.global_exists("stairsplus")
|
and minetest.global_exists("stairsplus")
|
||||||
@ -35,15 +37,16 @@ for _, clay in pairs(clay) do
|
|||||||
})
|
})
|
||||||
|
|
||||||
-- craft from dye and any baked clay
|
-- craft from dye and any baked clay
|
||||||
|
if clay[1] ~= "natural" then
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "bakedclay:" .. clay[1] .. " 8",
|
output = "bakedclay:" .. clay[1] .. " 8",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"group:bakedclay", "group:bakedclay", "group:bakedclay"},
|
{"group:bakedclay", "group:bakedclay", "group:bakedclay"},
|
||||||
{"group:bakedclay", "dye:" .. clay[1], "group:bakedclay"},
|
{"group:bakedclay", "dye:" .. clay[1], "group:bakedclay"},
|
||||||
{"group:bakedclay", "group:bakedclay", "group:bakedclay"}
|
{"group:bakedclay", "group:bakedclay", "group:bakedclay"}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
-- register stairsplus stairs if found
|
-- register stairsplus stairs if found
|
||||||
if stairsplus_mod then
|
if stairsplus_mod then
|
||||||
@ -78,13 +81,22 @@ for _, clay in pairs(clay) do
|
|||||||
clay[2] .. " Baked Clay Slab",
|
clay[2] .. " Baked Clay Slab",
|
||||||
default.node_sound_stone_defaults())
|
default.node_sound_stone_defaults())
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- register bakedclay for use in technic_cnc mod
|
||||||
|
if techcnc_mod then
|
||||||
|
|
||||||
|
technic_cnc.register_all("bakedclay:" .. clay[1],
|
||||||
|
{cracky = 3, not_in_creative_inventory = 1},
|
||||||
|
{"baked_clay_" .. clay[1] .. ".png"},
|
||||||
|
clay[2] .. " Baked Clay")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- cook clay block into white baked clay
|
-- cook clay block into white baked clay
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "cooking",
|
type = "cooking",
|
||||||
output = "bakedclay:white",
|
output = "bakedclay:natural",
|
||||||
recipe = "default:clay",
|
recipe = "default:clay",
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -221,17 +233,35 @@ lucky_block:add_blocks({
|
|||||||
{"dro", {"bakedclay:"}, 10, true},
|
{"dro", {"bakedclay:"}, 10, true},
|
||||||
{"fal", {p.."black", p.."blue", p.."brown", p.."cyan", p.."dark_green",
|
{"fal", {p.."black", p.."blue", p.."brown", p.."cyan", p.."dark_green",
|
||||||
p.."dark_grey", p.."green", p.."grey", p.."magenta", p.."orange",
|
p.."dark_grey", p.."green", p.."grey", p.."magenta", p.."orange",
|
||||||
p.."pink", p.."red", p.."violet", p.."white", p.."yellow"}, 0},
|
p.."pink", p.."red", p.."violet", p.."white", p.."yellow", p.."natural"}, 0},
|
||||||
{"fal", {p.."black", p.."blue", p.."brown", p.."cyan", p.."dark_green",
|
{"fal", {p.."black", p.."blue", p.."brown", p.."cyan", p.."dark_green",
|
||||||
p.."dark_grey", p.."green", p.."grey", p.."magenta", p.."orange",
|
p.."dark_grey", p.."green", p.."grey", p.."magenta", p.."orange",
|
||||||
p.."pink", p.."red", p.."violet", p.."white", p.."yellow"}, 0, true},
|
p.."pink", p.."red", p.."violet", p.."white", p.."yellow", p.."natural"}, 0, true},
|
||||||
{"dro", {p.."delphinium"}, 5},
|
{"dro", {p.."delphinium"}, 5},
|
||||||
{"dro", {p.."lazarus"}, 5},
|
{"dro", {p.."lazarus"}, 5},
|
||||||
{"dro", {p.."mannagrass"}, 5},
|
{"dro", {p.."mannagrass"}, 5},
|
||||||
{"dro", {p.."thistle"}, 6},
|
{"dro", {p.."thistle"}, 6},
|
||||||
{"flo", 5, {p.."black", p.."blue", p.."brown", p.."cyan", p.."dark_green",
|
{"flo", 5, {p.."natural", p.."black", p.."blue", p.."brown", p.."cyan",
|
||||||
p.."dark_grey", p.."green", p.."grey", p.."magenta", p.."orange",
|
p.."dark_green", p.."dark_grey", p.."green", p.."grey", p.."magenta",
|
||||||
p.."pink", p.."red", p.."violet", p.."white", p.."yellow"}, 2},
|
p.."orange", p.."pink", p.."red", p.."violet", p.."white", p.."yellow"}, 2},
|
||||||
|
{"nod", "default:chest", 0, {
|
||||||
|
{name = p.."natural", max = 30},
|
||||||
|
{name = p.."black", max = 30},
|
||||||
|
{name = p.."blue", max = 30},
|
||||||
|
{name = p.."brown", max = 30},
|
||||||
|
{name = p.."cyan", max = 30},
|
||||||
|
{name = p.."dark_green", max = 30},
|
||||||
|
{name = p.."dark_grey", max = 30},
|
||||||
|
{name = p.."green", max = 30},
|
||||||
|
{name = p.."grey", max = 30},
|
||||||
|
{name = p.."magenta", max = 30},
|
||||||
|
{name = p.."orange", max = 30},
|
||||||
|
{name = p.."pink", max = 30},
|
||||||
|
{name = p.."red", max = 30},
|
||||||
|
{name = p.."violet", max = 30},
|
||||||
|
{name = p.."white", max = 30},
|
||||||
|
{name = p.."yellow", max = 30},
|
||||||
|
}},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
BIN
textures/baked_clay_natural.png
Normal file
BIN
textures/baked_clay_natural.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 296 B |
Loading…
Reference in New Issue
Block a user