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 0000000..7e30d29 Binary files /dev/null and b/textures/techage_basalt_glass.png differ