diff options
author | h-v-smacker <hans-von-smacker+github@gmail.com> | 2018-09-23 06:34:28 +0300 |
---|---|---|
committer | h-v-smacker <hans-von-smacker+github@gmail.com> | 2018-09-23 06:34:28 +0300 |
commit | 321bb966b5cbc55640f8f835ba93dd6802ae952f (patch) | |
tree | 642cba1e04fd5126827096942825df18e10d27fe | |
parent | 3a58629cdddf2de6a8aae37da9c1cc13644edd8e (diff) |
fluorescent blocks
-rw-r--r-- | technic/machines/register/alloy_recipes.lua | 5 | ||||
-rw-r--r-- | technic/tools/spray_painter.lua | 21 |
2 files changed, 23 insertions, 3 deletions
diff --git a/technic/machines/register/alloy_recipes.lua b/technic/machines/register/alloy_recipes.lua index 209d376..30f3b38 100644 --- a/technic/machines/register/alloy_recipes.lua +++ b/technic/machines/register/alloy_recipes.lua @@ -47,6 +47,11 @@ if minetest.get_modpath("ethereal") then end end +if minetest.get_modpath("moreblocks") then + table.insert(recipes, {"default:stone", "default:steel_ingot", "moreblocks:iron_stone 4", 3}) + table.insert(recipes, {"default:stone", "default:coal_lump", "moreblocks:coal_stone 4", 3}) +end + if minetest.get_modpath("bakedclay") then local clay = {"white", "grey", "black", "red", "yellow", diff --git a/technic/tools/spray_painter.lua b/technic/tools/spray_painter.lua index ff7ce04..bbdcd7a 100644 --- a/technic/tools/spray_painter.lua +++ b/technic/tools/spray_painter.lua @@ -67,7 +67,18 @@ if minetest.get_modpath("ehlphabet") then paramtype = "light", paramtype2 = "colorwallmounted", palette = "technic_paint_palette.png", -}) + }) + + minetest.register_node(":ehlphabet:block_color_fluorescent", { + description = S("Ehlphabet Block (colored)"), + tiles = {"ehlphabet_000.png"}, + groups = {cracky = 3, not_in_creative_inventory = 1}, + light_source = 7, + drop = "ehlphabet:block", + paramtype = "light", + paramtype2 = "colorwallmounted", + palette = "technic_paint_palette.png", + }) end @@ -146,10 +157,14 @@ local function spray_paint(itemstack, user, pointed_thing, ptype) if target then -- if pointing at ehlphabet block (regular or colored) - if (target.name == "ehlphabet:block" or target.name == "ehlphabet:block_color") then + if (target.name == "ehlphabet:block" or target.name == "ehlphabet:block_color" or target.name == "ehlphabet:block_color_fluorescent") then if target.name == "ehlphabet:block" then - minetest.swap_node(pointed_thing.under, { name = "ehlphabet:block_color" }) + if not ptype then + minetest.swap_node(pointed_thing.under, { name = "ehlphabet:block_color" }) + else + minetest.swap_node(pointed_thing.under, { name = "ehlphabet:block_color_fluorescent" }) + end target = minetest.get_node_or_nil(pointed_thing.under) end |