mirror of
https://codeberg.org/tenplus1/bakedclay.git
synced 2024-11-07 00:40:22 +01:00
added stairsplus support so stairs are registered properly
This commit is contained in:
parent
e4e72c437c
commit
93212e8fd8
|
@ -7,6 +7,7 @@ https://forum.minetest.net/viewtopic.php?id=8890
|
|||
|
||||
Changelog:
|
||||
|
||||
- 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.5 - Now using minecraft recipe to colour baked clay (8x baked clay, 1x dye in centre)
|
||||
- 0.4 - Code tweak and tidy
|
||||
|
|
15
init.lua
15
init.lua
|
@ -1,5 +1,5 @@
|
|||
|
||||
-- Baked Clay (0.6) by TenPlus1
|
||||
-- Baked Clay by TenPlus1
|
||||
|
||||
local clay = {
|
||||
{"white", "White"},
|
||||
|
@ -41,9 +41,18 @@ for _, clay in pairs(clay) do
|
|||
},
|
||||
})
|
||||
|
||||
-- register stair and slab (unless stairs redo active)
|
||||
-- register stairsplus stairs if found
|
||||
if minetest.global_exists("stairsplus") then
|
||||
|
||||
if stairs and not stairs.mod then
|
||||
stairsplus:register_all("bakedclay", clay[1], "bakedclay:" .. clay[1], {
|
||||
description = clay[2] .. " Baked Clay",
|
||||
tiles = {"baked_clay_" .. clay[1] .. ".png"},
|
||||
groups = {cracky = 3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
-- register stair and slab (unless stairs redo active)
|
||||
elseif stairs and not stairs.mod then
|
||||
|
||||
stairs.register_stair_and_slab("bakedclay_".. clay[1], "bakedclay:".. clay[1],
|
||||
{cracky = 3},
|
||||
|
|
Loading…
Reference in New Issue
Block a user