From 9a9e4e3d0cc1c5e6c515ff9d7c8bb6c7a536325a Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Sat, 18 Apr 2020 19:42:49 +0200 Subject: [PATCH] support for circular saw partially attends to https://github.com/pandorabox-io/pandorabox.io/issues/491 --- .luacheckrc | 2 +- marble.lua | 19 +++++++++++++++++++ mod.conf | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/.luacheckrc b/.luacheckrc index cee9996..4341b8c 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -17,5 +17,5 @@ read_globals = { "dump", "VoxelArea", -- Deps - "default", "gravity_manager", "bamboo" + "default", "gravity_manager", "bamboo", "stairsplus" } diff --git a/marble.lua b/marble.lua index dfc5262..6044a03 100644 --- a/marble.lua +++ b/marble.lua @@ -50,4 +50,23 @@ for _, color in ipairs({"red", "blue", "black"}) do y_max = planet_mars.y_start + planet_mars.y_height, y_min = planet_mars.y_start, }) + + stairsplus:register_all("planet_mars", color .. "marble", "planet_mars:" .. color .. "marble", { + description = color .. " marble", + tiles = {"planet_mars_" .. color .. "marble.png"}, + groups = {cracky=3} + }) + + stairsplus:register_all("planet_mars", color .. "marble_bricks", "planet_mars:" .. color .. "marble_bricks", { + description = color .. " marble bricks", + tiles = {"planet_mars_" .. color .. "marble_bricks.png"}, + groups = {cracky=3} + }) + + stairsplus:register_all("planet_mars", color .. "marble_polished", "planet_mars:" .. color .. "marble_polished", { + description = color .. " marble polished", + tiles = {"planet_mars_" .. color .. "marble_polished.png"}, + groups = {cracky=3} + }) + end diff --git a/mod.conf b/mod.conf index 8813307..2119ed8 100644 --- a/mod.conf +++ b/mod.conf @@ -1,3 +1,3 @@ name = planet_mars depends = default -optional_depends = vacuum, bedrock, skybox, gravity_manager +optional_depends = vacuum, bedrock, skybox, gravity_manager, moreblocks