| | |
| | | }) |
| | | |
| | | minetest.register_tool("technic:template_tool",{ |
| | | description = S("Template tool"), |
| | | description = S("Template Tool"), |
| | | inventory_image = "technic_template_tool.png", |
| | | on_use = function(itemstack, puncher, pointed_thing) |
| | | local pos = pointed_thing.under |
| | | if pos == nil or (minetest.is_protected and minetest.is_protected(pos, placer:get_player_name())) then |
| | | if pos == nil or (minetest.is_protected and minetest.is_protected(pos, puncher:get_player_name())) then |
| | | return nil |
| | | end |
| | | local node = minetest.get_node(pos) |
| | |
| | | end |
| | | |
| | | minetest.register_node("technic:template_motor",{ |
| | | description = S("Template motor"), |
| | | description = S("Template Motor"), |
| | | tiles = {"pipeworks_filter_top.png^[transformR90", "technic_lv_cable.png", "technic_lv_cable.png", |
| | | "technic_lv_cable.png", "technic_lv_cable.png", "technic_lv_cable.png"}, |
| | | groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2,mesecon=2}, |
| | |
| | | output = 'technic:frame_motor', |
| | | recipe = { |
| | | {'', 'technic:frame_111111', ''}, |
| | | {'group:mesecons_conductor_craftable', 'technic:motor', 'group:mesecons_conductor_craftable'}, |
| | | {'group:mesecon_conductor_craftable', 'technic:motor', 'group:mesecon_conductor_craftable'}, |
| | | {'', 'technic:frame_111111', ''}, |
| | | } |
| | | }) |
| | |
| | | output = 'technic:template_motor', |
| | | recipe = { |
| | | {'', 'technic:template', ''}, |
| | | {'group:mesecons_conductor_craftable', 'technic:motor', 'group:mesecons_conductor_craftable'}, |
| | | {'group:mesecon_conductor_craftable', 'technic:motor', 'group:mesecon_conductor_craftable'}, |
| | | {'', 'technic:template', ''}, |
| | | } |
| | | }) |