| | |
| | | minetest.register_craft({ |
| | | output = 'technic:mining_drill', |
| | | recipe = { |
| | | {'moreores:tin_ingot', 'technic:diamond_drill_head', 'moreores:tin_ingot'}, |
| | | {'technic:stainless_steel_ingot', 'technic:motor', 'technic:stainless_steel_ingot'}, |
| | | {'default:tin_ingot', 'technic:diamond_drill_head', 'default:tin_ingot'}, |
| | | {'technic:stainless_steel_ingot', 'basic_materials:motor', 'technic:stainless_steel_ingot'}, |
| | | {'', 'technic:red_energy_crystal', 'default:copper_ingot'}, |
| | | } |
| | | }) |
| | |
| | | end |
| | | |
| | | local function drill_dig_it2 (pos,player) |
| | | drill_dig_it0 (pos,player) |
| | | pos.z=pos.z+1 |
| | | drill_dig_it0 (pos,player) |
| | | pos.z=pos.z-2 |
| | | drill_dig_it0 (pos,player) |
| | | pos.z=pos.z+1 |
| | | pos.y=pos.y+1 |
| | | drill_dig_it0 (pos,player) |
| | | pos.z=pos.z+1 |
| | |
| | | pos.z=pos.z-2 |
| | | drill_dig_it0 (pos,player) |
| | | pos.z=pos.z+1 |
| | | pos.y=pos.y-2 |
| | | pos.y=pos.y-1 |
| | | drill_dig_it0 (pos,player) |
| | | pos.z=pos.z+1 |
| | | drill_dig_it0 (pos,player) |
| | | pos.z=pos.z-2 |
| | | drill_dig_it0 (pos,player) |
| | | pos.z=pos.z+1 |
| | | pos.y=pos.y-1 |
| | | drill_dig_it0 (pos,player) |
| | | pos.z=pos.z+1 |
| | | drill_dig_it0 (pos,player) |
| | |
| | | end |
| | | |
| | | local function drill_dig_it3 (pos,player) |
| | | drill_dig_it0 (pos,player) |
| | | pos.x=pos.x+1 |
| | | drill_dig_it0 (pos,player) |
| | | pos.x=pos.x-2 |
| | | drill_dig_it0 (pos,player) |
| | | pos.x=pos.x+1 |
| | | pos.y=pos.y+1 |
| | | drill_dig_it0 (pos,player) |
| | | pos.x=pos.x+1 |
| | |
| | | pos.x=pos.x-2 |
| | | drill_dig_it0 (pos,player) |
| | | pos.x=pos.x+1 |
| | | pos.y=pos.y-2 |
| | | pos.y=pos.y-1 |
| | | drill_dig_it0 (pos,player) |
| | | pos.x=pos.x+1 |
| | | drill_dig_it0 (pos,player) |
| | | pos.x=pos.x-2 |
| | | drill_dig_it0 (pos,player) |
| | | pos.x=pos.x+1 |
| | | pos.y=pos.y-1 |
| | | drill_dig_it0 (pos,player) |
| | | pos.x=pos.x+1 |
| | | drill_dig_it0 (pos,player) |
| | |
| | | mode=mode+1 |
| | | if mode>=5 then mode=1 end |
| | | minetest.chat_send_player(player_name, S("Mining Drill Mk%d Mode %d"):format(2, mode)..": "..mining_drill_mode_text[mode][1]) |
| | | item["name"]="technic:mining_drill_mk2_"..mode |
| | | itemstack:set_name("technic:mining_drill_mk2_"..mode); |
| | | meta["mode"]=mode |
| | | item["metadata"]=minetest.serialize(meta) |
| | | itemstack:replace(item) |
| | | itemstack:set_metadata(minetest.serialize(meta)) |
| | | return itemstack |
| | | end |
| | | |
| | |
| | | mode=mode+1 |
| | | if mode>=6 then mode=1 end |
| | | minetest.chat_send_player(player_name, S("Mining Drill Mk%d Mode %d"):format(3, mode)..": "..mining_drill_mode_text[mode][1]) |
| | | item["name"]="technic:mining_drill_mk3_"..mode |
| | | itemstack:set_name("technic:mining_drill_mk3_"..mode); |
| | | meta["mode"]=mode |
| | | item["metadata"]=minetest.serialize(meta) |
| | | itemstack:replace(item) |
| | | itemstack:set_metadata(minetest.serialize(meta)) |
| | | return itemstack |
| | | end |
| | | |