summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2017-07-09 09:54:33 +0200
committercheapie <no-email-for-you@example.com>2017-07-09 02:54:33 -0500
commit9eadebe6de71c43812ce053e37e6efc5bf69346c (patch)
tree9b6241d06c200940aabccb5d6f94e36476e0b768 /init.lua
parent977810d324ae60e8883a470aec8184d1fcbc3c32 (diff)
downloadplasticbox-9eadebe6de71c43812ce053e37e6efc5bf69346c.tar
plasticbox-9eadebe6de71c43812ce053e37e6efc5bf69346c.tar.gz
plasticbox-9eadebe6de71c43812ce053e37e6efc5bf69346c.tar.bz2
plasticbox-9eadebe6de71c43812ce053e37e6efc5bf69346c.tar.xz
plasticbox-9eadebe6de71c43812ce053e37e6efc5bf69346c.zip
make moreblocks optional (#8)
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua14
1 files changed, 8 insertions, 6 deletions
diff --git a/init.lua b/init.lua
index e83f4a9..c8a1672 100644
--- a/init.lua
+++ b/init.lua
@@ -12,12 +12,14 @@ minetest.register_node("plasticbox:plasticbox", {
after_place_node = unifieddyes.recolor_on_place,
})
-stairsplus:register_all("plasticbox", "plasticbox", "plasticbox:plasticbox", {
- description = "Plastic",
- tiles = {"plasticbox_white.png"},
- groups = {choppy=1, snappy=1, oddly_breakable_by_hand=1},
- sounds = default.node_sound_stone_defaults(),
-})
+if minetest.global_exists("stairsplus") then
+ stairsplus:register_all("plasticbox", "plasticbox", "plasticbox:plasticbox", {
+ description = "Plastic",
+ tiles = {"plasticbox_white.png"},
+ groups = {choppy=1, snappy=1, oddly_breakable_by_hand=1},
+ sounds = default.node_sound_stone_defaults(),
+ })
+end
minetest.register_craft( {
output = "plasticbox:plasticbox 4",