diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2015-08-28 20:27:06 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2015-08-28 20:27:06 +0100 |
commit | 3e0471d0419dd5dc45e07231655b34b795577500 (patch) | |
tree | c16e73789e0f00f4bf58df83bf5a0d2013a267a7 | |
parent | 793c12cbc55bfec42c7dc039c59568d8676cb65e (diff) |
Tidied code
-rw-r--r-- | init.lua | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1,8 +1,6 @@ -- Baked Clay (0.4) by TenPlus1 -local clay = {} - -clay.dyes = { +local clay = { {"white", "White", "basecolor_white"}, {"grey", "Grey", "basecolor_grey"}, {"black", "Black", "basecolor_black"}, @@ -20,13 +18,13 @@ clay.dyes = { {"dark_green", "Dark Green", "unicolor_dark_green"}, } -minetest.register_craft({
- type = "cooking",
- output = "bakedclay:white",
+minetest.register_craft({ + type = "cooking", + output = "bakedclay:white", recipe = "default:clay", }) -for _, row in ipairs(clay.dyes) do +for _, row in ipairs(clay) do -- node definition minetest.register_node("bakedclay:" .. row[1], { @@ -44,12 +42,14 @@ for _, row in ipairs(clay.dyes) do }) -- register stair and slab + if stairs and not stairs.mod then stairs.register_stair_and_slab("bakedclay_".. row[1], "bakedclay:".. row[1], {cracky=3}, {"baked_clay_" .. row[1] .. ".png"}, "Baked Clay " .. row[2] .. " Stair", "Baked Clay " .. row[2] .. " Slab", default.node_sound_stone_defaults()) + end end -- register a few extra dye colour options |