From f8a3c25fbcbe7ac160c48f11becf37e7fd6a29f6 Mon Sep 17 00:00:00 2001 From: dhunt Date: Mon, 14 Oct 2013 11:29:37 -0700 Subject: [PATCH] increment --- craftitems.lua | 26 +++++++++++++++++++--- nodedefs.lua | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++ refinery.lua | 4 ++-- 3 files changed, 84 insertions(+), 5 deletions(-) create mode 100644 nodedefs.lua diff --git a/craftitems.lua b/craftitems.lua index 053d2ca..877002b 100644 --- a/craftitems.lua +++ b/craftitems.lua @@ -6,6 +6,9 @@ minetest.register_craftitem(":bitumen:bitumen", { on_place_on_ground = minetest.craftitem_place_item, }) + + + @@ -68,7 +71,6 @@ minetest.register_craftitem(":bitumen:lpg_regulator", { on_place_on_ground = minetest.craftitem_place_item, }) - -- these may need to just be tools minetest.register_craftitem(":bitumen:small_lpg_bottle", { description = "Small LPG Bottle", @@ -85,8 +87,26 @@ minetest.register_craftitem(":bitumen:gas_can", { +minetest.register_craftitem(":bitumen:brass_ingot", { + description = "Brass Ingot", + inventory_image = "bitumen_brass_ingot.png", + on_place_on_ground = minetest.craftitem_place_item, +}) +minetest.register_craftitem(":bitumen:brass_dust", { + description = "Brass Dust", + inventory_image = "bitumen_brass_dust.png", + on_place_on_ground = minetest.craftitem_place_item, +}) - - +minetest.register_craftitem(":bitumen:carbon_steel_ingot", { + description = "Carbon Steel Ingot", + inventory_image = "bitumen_carbon_steel_ingot.png", + on_place_on_ground = minetest.craftitem_place_item, +}) +minetest.register_craftitem(":bitumen:carbon_steel_dust", { + description = "Carbon Steel Dust", + inventory_image = "bitumen_carbon_steel_dust.png", + on_place_on_ground = minetest.craftitem_place_item, +}) diff --git a/nodedefs.lua b/nodedefs.lua new file mode 100644 index 0000000..dc28c50 --- /dev/null +++ b/nodedefs.lua @@ -0,0 +1,59 @@ + +minetest.register_node("bitumen:brass_pipe", { +-- paramtype = "light", + description = "Small Brass Pipe", + tiles = {"bitumen_brass_pipe.png", "bitumen_brass_pipe.png", "bitumen_brass_pipe.png", + "bitumen_brass_pipe.png", "bitumen_brass_pipe.png", "bitumen_brass_pipe.png"}, + + groups = {cracky=3,oddly_breakable_by_hand=3}, + legacy_facedir_simple = true, + sounds = default.node_sound_wood_defaults(), + on_construct = function(pos) + + end, +}) + + + +minetest.register_node("bitumen:carbon_steel_pipe", { +-- paramtype = "light", + description = "Carbon Steel Pipe", + tiles = {"bitumen_carbon_steel_pipe.png", "bitumen_carbon_steel_pipe.png", "bitumen_carbon_steel_pipe.png", + "bitumen_carbon_steel_pipe.png", "bitumen_carbon_steel_pipe.png", "bitumen_carbon_steel_pipe.png"}, + + groups = {cracky=3,oddly_breakable_by_hand=3}, + legacy_facedir_simple = true, + sounds = default.node_sound_wood_defaults(), + on_construct = function(pos) + + end, +}) + +minetest.register_node("bitumen:medium_pipeline_segment", { +-- paramtype = "light", + description = "Medium Pipeline Segment", + tiles = {"bitumen_medium_pipeline_segment.png", "bitumen_medium_pipeline_segment.png", "bitumen_medium_pipeline_segment.png", + "bitumen_medium_pipeline_segment.png", "bitumen_medium_pipeline_segment.png", "bitumen_medium_pipeline_segment.png"}, + + groups = {cracky=3,oddly_breakable_by_hand=3}, + legacy_facedir_simple = true, + sounds = default.node_sound_wood_defaults(), + on_construct = function(pos) + + end, +}) + +minetest.register_node("bitumen:medium_pipeline_elbow", { +-- paramtype = "light", + description = "Medium Pipeline Elbow", + tiles = {"bitumen_medium_pipeline_elbow.png", "bitumen_medium_pipeline_elbow.png", "bitumen_medium_pipeline_elbow.png", + "bitumen_medium_pipeline_elbow.png", "bitumen_medium_pipeline_elbow.png", "bitumen_medium_pipeline_elbow.png"}, + + groups = {cracky=3,oddly_breakable_by_hand=3}, + legacy_facedir_simple = true, + sounds = default.node_sound_wood_defaults(), + on_construct = function(pos) + + end, +}) + diff --git a/refinery.lua b/refinery.lua index 7114d5c..13bc946 100644 --- a/refinery.lua +++ b/refinery.lua @@ -203,8 +203,8 @@ minetest.register_abm({ }) --[[ minetest.register_abm({ - nodenames = {"bitumen:cracking_boiler", "bitumen:cracking_boiler_active"}, - interval = 1, + nodenames = {"bitumen:cracking_boiler_active"}, + interval = 10, chance = 1, action = function(pos, node, active_object_count, active_object_count_wider) -- The machine will automatically shut down if disconnected from power in some fashion.