mirror of
https://codeberg.org/tenplus1/bakedclay.git
synced 2024-11-07 00:40:22 +01:00
technic_cnc support
This commit is contained in:
parent
9ec581dbf2
commit
3af99b27c9
|
@ -7,6 +7,7 @@ https://forum.minetest.net/viewtopic.php?id=8890
|
|||
|
||||
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.6 - Added 3 new flowers and a new grass that are used for missing dyes
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
default
|
||||
stairs
|
||||
moreblocks?
|
||||
lucky_block?
|
||||
lucky_block?
|
||||
technic_cnc?
|
||||
|
|
10
init.lua
10
init.lua
|
@ -20,6 +20,7 @@ local clay = {
|
|||
{"dark_green", "Dark Green"},
|
||||
}
|
||||
|
||||
local techcnc_mod = minetest.get_modpath("technic_cnc")
|
||||
local stairs_mod = minetest.get_modpath("stairs")
|
||||
local stairsplus_mod = minetest.get_modpath("moreblocks")
|
||||
and minetest.global_exists("stairsplus")
|
||||
|
@ -80,6 +81,15 @@ for _, clay in pairs(clay) do
|
|||
clay[2] .. " Baked Clay Slab",
|
||||
default.node_sound_stone_defaults())
|
||||
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
|
||||
|
||||
-- cook clay block into white baked clay
|
||||
|
|
Loading…
Reference in New Issue
Block a user