diff options
Diffstat (limited to 'plasticbox')
-rw-r--r-- | plasticbox/depends.txt | 2 | ||||
-rw-r--r-- | plasticbox/init.lua | 14 |
2 files changed, 9 insertions, 7 deletions
diff --git a/plasticbox/depends.txt b/plasticbox/depends.txt index 7910ab9..23702ac 100644 --- a/plasticbox/depends.txt +++ b/plasticbox/depends.txt @@ -1,3 +1,3 @@ homedecor -moreblocks +moreblocks? unifieddyes diff --git a/plasticbox/init.lua b/plasticbox/init.lua index e83f4a9..c8a1672 100644 --- a/plasticbox/init.lua +++ b/plasticbox/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", |