aboutsummaryrefslogtreecommitdiff
path: root/stairsplus
diff options
context:
space:
mode:
authorFixer <Fixer-007@users.noreply.github.com>2017-03-15 07:13:16 +0200
committerAuke Kok <sofar+github@foo-projects.org>2017-03-14 22:13:16 -0700
commitfbfb079f54e90618a0578ff33092c97c8b015cb9 (patch)
tree7c55efc9c54f9c7630008cf43b5317bce9116506 /stairsplus
parente9c6cef4dd6090b561c55268114c832cd0ccfe0e (diff)
downloadmoreblocks-fbfb079f54e90618a0578ff33092c97c8b015cb9.tar.gz
moreblocks-fbfb079f54e90618a0578ff33092c97c8b015cb9.tar.bz2
moreblocks-fbfb079f54e90618a0578ff33092c97c8b015cb9.zip
Make wool sawable (#72)
* Make wool sawable Based on my simple research https://github.com/minetest-mods/moreblocks/issues/71 enabling wool should not cause major slowdowns. Code pasted from gloopblocks * List wool as optional dependancy * Added check for wool dependancy * Make life easier for translators
Diffstat (limited to 'stairsplus')
-rw-r--r--stairsplus/registrations.lua37
1 files changed, 37 insertions, 0 deletions
diff --git a/stairsplus/registrations.lua b/stairsplus/registrations.lua
index be08b43..065bc9d 100644
--- a/stairsplus/registrations.lua
+++ b/stairsplus/registrations.lua
@@ -74,3 +74,40 @@ for _, name in pairs(default_nodes) do
})
end
end
+
+-- wool registrations
+
+if minetest.get_modpath("wool") then
+
+ local colorlist = {
+ {"white", "White Wool"},
+ {"grey", "Grey Wool"},
+ {"black", "Black Wool"},
+ {"red", "Red Wool"},
+ {"yellow", "Yellow Wool"},
+ {"green", "Green Wool"},
+ {"cyan", "Cyan Wool"},
+ {"blue", "Blue Wool"},
+ {"magenta", "Magenta Wool"},
+ {"orange", "Orange Wool"},
+ {"violet", "Violet Wool"},
+ {"brown", "Brown Wool"},
+ {"pink", "Pink Wool"},
+ {"dark_grey", "Dark Grey Wool"},
+ {"dark_green", "Dark Green Wool"},
+ }
+
+ for i in ipairs(colorlist) do
+ local color = colorlist[i][1]
+ local colordesc = colorlist[i][2]
+
+ stairsplus:register_all("wool", color, "wool:"..color, {
+ description = colordesc,
+ tiles = {"wool_"..color..".png"},
+ groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,
+ flammable=3,wool=1,not_in_creative_inventory=1},
+ sounds = default.node_sound_defaults(),
+ sunlight_propagates = true,
+ })
+ end
+end