From 8abb6444d3c669a6e977d1ea33c74804aac3021d Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Sun, 9 Jun 2019 22:29:59 +0200 Subject: [PATCH] basalt glass added --- init.lua | 10 ++++++---- {basic_machines => nodes}/basalt.lua | 20 ++++++++++++++++++++ textures/techage_basalt_glass.png | Bin 0 -> 491 bytes 3 files changed, 26 insertions(+), 4 deletions(-) rename {basic_machines => nodes}/basalt.lua (82%) create mode 100644 textures/techage_basalt_glass.png diff --git a/init.lua b/init.lua index ddf9f31..dc890c9 100644 --- a/init.lua +++ b/init.lua @@ -41,7 +41,7 @@ else dofile(MP.."/tools/trowel.lua") dofile(MP.."/tools/repairkit.lua") - -- Nodes + -- Nodes1 dofile(MP.."/nodes/baborium.lua") dofile(MP.."/nodes/usmium.lua") @@ -93,9 +93,6 @@ else dofile(MP.."/basic_machines/autocrafter.lua") dofile(MP.."/basic_machines/forceload.lua") dofile(MP.."/basic_machines/electronic_fab.lua") - if techage.basalt_stone_enabled then - dofile(MP.."/basic_machines/basalt.lua") - end -- Coal power station dofile(MP.."/coal_power_station/help.lua") @@ -121,6 +118,11 @@ else dofile(MP.."/oil/drillbox.lua") dofile(MP.."/oil/pumpjack.lua") + -- Nodes2 + if techage.basalt_stone_enabled then + dofile(MP.."/nodes/basalt.lua") + end + --dofile(MP.."/test/generator.lua") --dofile(MP.."/test/lamp.lua") diff --git a/basic_machines/basalt.lua b/nodes/basalt.lua similarity index 82% rename from basic_machines/basalt.lua rename to nodes/basalt.lua index f61c5a4..0b12472 100644 --- a/basic_machines/basalt.lua +++ b/nodes/basalt.lua @@ -63,6 +63,19 @@ minetest.register_node("techage:sieved_basalt_gravel", { sounds = default.node_sound_gravel_defaults(), }) +minetest.register_node("techage:basalt_glass", { + description = "Basalt Glass", + drawtype = "glasslike_framed_optional", + tiles = {"techage_basalt_glass.png"}, + use_texture_alpha = true, + paramtype = "light", + paramtype2 = "glasslikeliquidlevel", + sunlight_propagates = true, + is_ground_content = false, + groups = {cracky = 3, oddly_breakable_by_hand = 3}, + sounds = default.node_sound_glass_defaults(), +}) + minetest.register_craft({ output = "techage:basalt_stone_brick 4", recipe = { @@ -71,6 +84,13 @@ minetest.register_craft({ } }) +minetest.register_craft({ + type = "cooking", + output = "techage:basalt_glass", + recipe = "techage:sieved_basalt_gravel", + cooktime = 4, +}) + minetest.register_craft({ output = "techage:basalt_stone_block 9", recipe = { diff --git a/textures/techage_basalt_glass.png b/textures/techage_basalt_glass.png new file mode 100644 index 0000000000000000000000000000000000000000..7e30d29b2b0f74ede04cac339c43df732f9cbed5 GIT binary patch literal 491 zcmVPx#32;bRa{vGf6951U69E94oEQKA03J|GR7Kx`h8i_-fz*d z3G`HlQ+iGYMAZPdNVq#~ab)Kh3ekWLD+ocNfSSOIg3gn3F$R%c;KP?HY9PcI#YOj& z40sKp5*6*5ss;HWWLlY|&J6`(glOdz-bRtb{}nzp?pRf)I2S5QGET%}*2 zzPAIc|5ZU%%j$r)0@O_}B(o~OX-%_r7vQO3R#zonrl^V0STfy?+( hf78_GY3_4>{sE8JO9