Fix trailing whitespace (#482)
Trim all trailing whitespace characters,
| | |
| | | License |
| | | ------- |
| | | |
| | | Unless otherwise stated, all components of this modpack are licensed under the |
| | | Unless otherwise stated, all components of this modpack are licensed under the |
| | | LGPL, V2 or later. See also the individual mod folders for their |
| | | secondary/alternate licenses, if any. |
| | |
| | | --Minetest 0.4.7 mod: concrete |
| | | --Minetest 0.4.7 mod: concrete |
| | | --(c) 2013 by RealBadAngel <mk@realbadangel.pl> |
| | | |
| | | local technic = rawget(_G, "technic") or {} |
| | |
| | | groups={cracky=1, level=2}, |
| | | sounds = default.node_sound_stone_defaults(), |
| | | paramtype = "light", |
| | | drawtype = "nodebox", |
| | | drawtype = "nodebox", |
| | | node_box = { |
| | | type = "fixed", |
| | | fixed = {box_platform} |
| | | }, |
| | | on_place = function (itemstack, placer, pointed_thing) |
| | | local node = minetest.get_node(pointed_thing.under) |
| | | if node.name ~= "technic:concrete_post" then |
| | | return minetest.item_place_node(itemstack, placer, pointed_thing) |
| | | if node.name ~= "technic:concrete_post" then |
| | | return minetest.item_place_node(itemstack, placer, pointed_thing) |
| | | end |
| | | minetest.set_node(pointed_thing.under, {name="technic:concrete_post_with_platform"}) |
| | | itemstack:take_item() |
| | |
| | | minetest.register_alias(modname .. ":panel_" .. origname .. "_vertical", newmod..":panel_" .. newname .. "_vertical") |
| | | minetest.register_alias(modname .. ":micro_" .. origname .. "_bottom", newmod..":micro_" .. newname .. "_bottom") |
| | | minetest.register_alias(modname .. ":micro_" .. origname .. "_top", newmod..":micro_" .. newname .. "_top") |
| | | end |
| | | end |
| | | |
| | | register_technic_stairs_alias("stairsplus", "concrete", "technic", "concrete") |
| | | register_technic_stairs_alias("stairsplus", "marble", "technic", "marble") |
| | |
| | | * pipeworks, which supports the automation of item transport |
| | | * moreores, which provides some additional ore types |
| | | |
| | | This manual doesn't explain how to use these other modpacks, which have |
| | | This manual doesn't explain how to use these other modpacks, which have |
| | | their own manuals: |
| | | |
| | | * [Minetest Game Documentation](https://wiki.minetest.net/Main_Page) |
| | |
| | | be the material that most limits your activity. |
| | | |
| | | Tin is part of the basic Minetest game (having migrated there from |
| | | moreores). It is found from elevation +8 downwards, with no |
| | | elevation-dependent variations in abundance beyond that point. |
| | | It is a common metal. Its main use in pure form is as a component |
| | | moreores). It is found from elevation +8 downwards, with no |
| | | elevation-dependent variations in abundance beyond that point. |
| | | It is a common metal. Its main use in pure form is as a component |
| | | of electrical batteries. Apart from that its main purpose is |
| | | as the secondary ingredient in bronze (the base being copper), but bronze |
| | | is itself little used. Its abundance is well in excess of its usage, |
| | |
| | | -- Helper functions |
| | | dofile(modpath.."/helpers.lua") |
| | | |
| | | -- Items |
| | | -- Items |
| | | dofile(modpath.."/items.lua") |
| | | |
| | | -- Craft recipes for items |
| | | -- Craft recipes for items |
| | | dofile(modpath.."/crafts.lua") |
| | | |
| | | -- Register functions |
| | |
| | | fleshy = {times={}, uses=10000, maxlevel=0} |
| | | } |
| | | } |
| | | }) |
| | | }) |
| | | |
| | | minetest.register_tool("technic:green_energy_crystal", { |
| | | description = S("Green Energy Crystal"), |
| | |
| | | fleshy = {times={}, uses=10000, maxlevel=0} |
| | | } |
| | | } |
| | | }) |
| | | }) |
| | | |
| | | minetest.register_tool("technic:red_energy_crystal", { |
| | | description = S("Red Energy Crystal"), |
| | |
| | | fleshy = {times={}, uses=10000, maxlevel=0} |
| | | } |
| | | } |
| | | }) |
| | | }) |
| | | |
| | | minetest.register_craftitem("technic:copper_coil", { |
| | | description = S("Copper Coil"), |
| | |
| | | Composite Plate = Verbundplatte |
| | | Copper Plate = Kupferplatte |
| | | Carbon Plate = Kohlefaserplatte |
| | | Graphite = Graphit |
| | | Graphite = Graphit |
| | | Carbon Cloth = Kohlefasergewebe |
| | | Raw Latex = Rohlatex |
| | | Rubber Fiber = Gummifaser |
| | |
| | | %s Enabled = |
| | | %s Idle = %s ist bereit |
| | | %s Improperly Placed = %s ist falsch plaziert |
| | | %s Unpowered = %s hat keine Stromversorgung |
| | | %s Unpowered = %s hat keine Stromversorgung |
| | | %s Out Of Fuel = %s hat keinen Brennstoff |
| | | %s Has Bad Cabling = %s ist falsch verkabelt |
| | | %s Has No Network = %s hat kein Netzwerk |
| | |
| | | %s Cable = %s Kabel |
| | | %s Compressor = %s Kompressor |
| | | %s Extractor = %s Extraktor |
| | | %s Forcefield Emitter = %s Kraftfeld-Emitter |
| | | %s Forcefield Emitter = %s Kraftfeld-Emitter |
| | | %s Furnace = %s Ofen |
| | | %s Grinder = %s Schleifmaschine |
| | | %s Music Player = %s Musikspieler |
| | |
| | | Charge = Aufladen |
| | | Discharge = Entladen |
| | | Power level = Energiestufe |
| | | # $1: Tier $2: current_charge $3: max_charge |
| | | # $1: Tier $2: current_charge $3: max_charge |
| | | @1 Battery Box: @2/@3 = @1 Batteriebox: @2/@3 |
| | | # $1: Machine name $2: Supply $3: Demand |
| | | @1. Supply: @2 Demand: @3 = @1. Versorgung: @2 Bedarf: @3 |
| | |
| | | Charge = Cargar |
| | | Discharge = Descargar |
| | | Power level = Nivel de Poder |
| | | # $1: Tier $2: current_charge $3: max_charge |
| | | # $1: Tier $2: current_charge $3: max_charge |
| | | @1 Battery Box: @2/@3 = Caja de Bateria @1: @2/@3 |
| | | # $1: Machine name $2: Supply $3: Demand |
| | | @1. Supply: @2 Demand: @3 = @1. Alimentacion: @2 Demanda: @3 |
| | |
| | | Charge = |
| | | Discharge = |
| | | Power level = |
| | | # $1: Tier $2: current_charge $3: max_charge |
| | | # $1: Tier $2: current_charge $3: max_charge |
| | | @1 Battery Box: @2/@3 = |
| | | # $1: Machine name $2: Supply $3: Demand |
| | | @1. Supply: @2 Demand: @3 = |
| | |
| | | {'technic:mv_cable', 'technic:mv_cable', 'technic:mv_cable'}, |
| | | {'homedecor:plastic_sheeting', 'homedecor:plastic_sheeting', 'homedecor:plastic_sheeting'}, |
| | | } |
| | | }) |
| | | }) |
| | | |
| | | technic.register_cable("HV", 3/16) |
| | | |
| | |
| | | {'default:copper_ingot', 'default:copper_ingot', 'default:copper_ingot'}, |
| | | {'default:paper', 'default:paper', 'default:paper'}, |
| | | } |
| | | }) |
| | | }) |
| | | |
| | | technic.register_cable("LV", 2/16) |
| | | |
| | |
| | | |
| | | minetest.register_craftitem("technic:geothermal", { |
| | | description = S("Geothermal %s Generator"):format("LV"), |
| | | }) |
| | | }) |
| | | |
| | | local check_node_around = function(pos) |
| | | local node = minetest.get_node(pos) |
| | |
| | | {'technic:lv_cable', 'technic:lv_cable', 'technic:lv_cable'}, |
| | | {'technic:rubber', 'technic:rubber', 'technic:rubber'}, |
| | | } |
| | | }) |
| | | }) |
| | | |
| | | technic.register_cable("MV", 2.5/16) |
| | | |
| | |
| | | end |
| | | |
| | | --- |
| | | -- 10 times better than LV hydro because of 2 extra water mills and 4 stainless steel, a transformer and whatnot ;P. |
| | | -- 10 times better than LV hydro because of 2 extra water mills and 4 stainless steel, a transformer and whatnot ;P. |
| | | -- Man hydro turbines are tough and long lasting. So, give it some value :) |
| | | local run = function(pos, node) |
| | | local meta = minetest.get_meta(pos) |
| | |
| | | local dirs2 = {9, 18, 7, 12} |
| | | |
| | | local technic_homedecor_rotate_and_place = function(itemstack, placer, pointed_thing) |
| | | if not technic_homedecor_node_is_owned(pointed_thing.under, placer) |
| | | if not technic_homedecor_node_is_owned(pointed_thing.under, placer) |
| | | and not technic_homedecor_node_is_owned(pointed_thing.above, placer) then |
| | | local node = minetest.get_node(pointed_thing.under) |
| | | if not minetest.registered_nodes[node.name] or not minetest.registered_nodes[node.name].on_rightclick then |
| | |
| | | |
| | | if not minetest.registered_nodes[minetest.get_node(pos1).name]["buildable_to"] then return end |
| | | |
| | | if iswall then |
| | | if iswall then |
| | | minetest.add_node(pos1, {name = wield_name, param2 = dirs2[fdir+1] }) -- place wall variant |
| | | elseif isceiling then |
| | | minetest.add_node(pos1, {name = wield_name, param2 = 20 }) -- place upside down variant |
| | |
| | | local tube_entry = "^pipeworks_tube_connection_metallic.png" |
| | | |
| | | local function inject_items (pos) |
| | | local meta=minetest.get_meta(pos) |
| | | local meta=minetest.get_meta(pos) |
| | | local inv = meta:get_inventory() |
| | | local mode=meta:get_string("mode") |
| | | if mode=="single items" then |
| | |
| | | i=i+1 |
| | | if stack then |
| | | local item0=stack:to_table() |
| | | if item0 then |
| | | if item0 then |
| | | item0["count"] = "1" |
| | | technic.tube_inject_item(pos, pos, vector.new(0, -1, 0), item0) |
| | | stack:take_item(1) |
| | |
| | | i=i+1 |
| | | if stack then |
| | | local item0=stack:to_table() |
| | | if item0 then |
| | | if item0 then |
| | | technic.tube_inject_item(pos, pos, vector.new(0, -1, 0), item0) |
| | | stack:clear() |
| | | inv:set_stack("main", i, stack) |
| | |
| | | chance = 1, |
| | | action = function(pos, node, active_object_count, active_object_count_wider) |
| | | local pos1 = vector.add(pos, vector.new(0, -1, 0)) |
| | | local node1 = minetest.get_node(pos1) |
| | | local node1 = minetest.get_node(pos1) |
| | | if minetest.get_item_group(node1.name, "tubedevice") > 0 then |
| | | inject_items(pos) |
| | | end |
| | |
| | | {"technic:silicon_wafer", "technic:gold_dust", "technic:doped_silicon_wafer"}, |
| | | -- from https://en.wikipedia.org/wiki/Carbon_black |
| | | -- The highest volume use of carbon black is as a reinforcing filler in rubber products, especially tires. |
| | | -- "[Compounding a] pure gum vulcanizate … with 50% of its weight of carbon black improves its tensile strength and wear resistance …" |
| | | -- "[Compounding a] pure gum vulcanizate … with 50% of its weight of carbon black improves its tensile strength and wear resistance …" |
| | | {"technic:raw_latex 4", "technic:coal_dust 2", "technic:rubber 6", 2}, |
| | | } |
| | | |
| | |
| | | local temp_itemstack = ItemStack(itemstack) |
| | | temp_itemstack:set_name(node.name) |
| | | local original_count = temp_itemstack:get_count() |
| | | temp_itemstack = |
| | | temp_itemstack = |
| | | minetest.item_place(temp_itemstack, placer, pointed, node.param2) or |
| | | temp_itemstack |
| | | -- Remove the same number of items from the real itemstack |
| | |
| | | output_name = "dst" |
| | | end |
| | | |
| | | local meta = minetest.get_meta(pos) |
| | | local meta = minetest.get_meta(pos) |
| | | local inv = meta:get_inventory() |
| | | local i = 0 |
| | | for _, stack in ipairs(inv:get_list(output_name)) do |
| | | i = i + 1 |
| | | if stack then |
| | | local item0 = stack:to_table() |
| | | if item0 then |
| | | if item0 then |
| | | item0["count"] = "1" |
| | | technic.tube_inject_item(pos, pos, vector.new(x_velocity, 0, z_velocity), item0) |
| | | stack:take_item(1) |
| | |
| | | if node.param2 == 0 then pos1.x = pos1.x + 1 x_velocity = 1 end |
| | | |
| | | local output_tube_connected = false |
| | | local node1 = minetest.get_node(pos1) |
| | | local node1 = minetest.get_node(pos1) |
| | | if minetest.get_item_group(node1.name, "tubedevice") > 0 then |
| | | output_tube_connected = true |
| | | end |
| | |
| | | -- Burn another piece of fuel |
| | | if burn_time == 0 then |
| | | local inv = meta:get_inventory() |
| | | if not inv:is_empty("src") then |
| | | if not inv:is_empty("src") then |
| | | local fuellist = inv:get_list("src") |
| | | local fuel |
| | | local afterfuel |
| | |
| | | } |
| | | )..pipeworks.button_label |
| | | end |
| | | meta:set_string("formspec", |
| | | meta:set_string("formspec", |
| | | "size[8, 9]".. |
| | | "label[0, 0;"..minetest.formspec_escape(desc).."]".. |
| | | "list[current_name;src;3, 1;1, 1;]".. |
| | |
| | | "technic_"..ltier.."_generator_side.png"..tentry, |
| | | "technic_"..ltier.."_generator_side.png"..tentry, |
| | | "technic_"..ltier.."_generator_front.png" |
| | | }, |
| | | }, |
| | | paramtype2 = "facedir", |
| | | groups = groups, |
| | | connect_sides = {"bottom", "back", "left", "right"}, |
| | |
| | | } |
| | | )..pipeworks.button_label |
| | | end |
| | | meta:set_string("formspec", |
| | | meta:set_string("formspec", |
| | | "size[8, 9]".. |
| | | "label[0, 0;"..minetest.formspec_escape(desc).."]".. |
| | | "list[current_name;src;3, 1;1, 1;]".. |
| | |
| | | local burn_time = meta:get_int("burn_time") |
| | | local percent = math.floor(burn_time / burn_totaltime * 100) |
| | | |
| | | meta:set_string("formspec", |
| | | meta:set_string("formspec", |
| | | "size[8, 9]".. |
| | | "label[0, 0;"..minetest.formspec_escape(desc).."]".. |
| | | "list[current_name;src;3, 1;1, 1;]".. |
| | |
| | | minetest.register_node("technic:"..ltier.."_"..machine_name, { |
| | | description = machine_desc:format(tier), |
| | | tiles = { |
| | | "technic_"..ltier.."_"..machine_name.."_top.png"..tentry, |
| | | "technic_"..ltier.."_"..machine_name.."_top.png"..tentry, |
| | | "technic_"..ltier.."_"..machine_name.."_bottom.png"..tentry, |
| | | "technic_"..ltier.."_"..machine_name.."_side.png"..tentry, |
| | | "technic_"..ltier.."_"..machine_name.."_side.png"..tentry, |
| | |
| | | technic.register_power_tool("technic:flashlight", flashlight_max_charge) |
| | | |
| | | minetest.register_alias("technic:light_off", "air") |
| | | |
| | | |
| | | minetest.register_tool("technic:flashlight", { |
| | | description = S("Flashlight"), |
| | | inventory_image = "technic_flashlight.png", |
| | |
| | | |
| | | local function drill_dig_it1 (player) |
| | | local dir=player:get_look_dir() |
| | | if math.abs(dir.x)>math.abs(dir.z) then |
| | | if math.abs(dir.x)>math.abs(dir.z) then |
| | | if dir.x>0 then return 0 end |
| | | return 1 |
| | | end |
| | |
| | | "label[0,7.5;Accuracy:]".. |
| | | "label[0,8;98%]") |
| | | return |
| | | end, |
| | | end, |
| | | }) |
| | | |
| | | minetest.register_on_player_receive_fields(function(user, formname, fields) |
| | |
| | | user:set_wielded_item(toolstack) |
| | | return true |
| | | end) |
| | | |
| | | |
| | | minetest.register_craft({ |
| | | output = "technic:prospector", |
| | | recipe = { |
| | |
| | | return itemstack |
| | | end, |
| | | }) |
| | | |
| | | |
| | | minetest.register_craft({ |
| | | output = "technic:sonic_screwdriver", |
| | | recipe = { |
| | |
| | | |
| | | sdzen (Elise Staudter) modified by VanessaE (CC BY-SA 3.0): |
| | | * copper, iron, silver, gold, mithril chest textures 16x16 |
| | | |
| | | |
| | | RealBadAngel: (WTFPL) |
| | | * Everything else. |
| | | |
| | |
| | | # Turkish translation |
| | | # mahmutelmas06@hotmail.com |
| | | # mahmutelmas06@hotmail.com |
| | | # Türkçe çeviri |
| | | |
| | | %s Chest = %s Sandık |
| | |
| | | # technic_worldgen translation template |
| | | |
| | | ###crafts.lua |
| | | Uranium Lump = |
| | | Uranium Ingot = |
| | | Chromium Lump = |
| | | Chromium Ingot = |
| | | Zinc Lump = |
| | | Zinc Ingot = |
| | | Brass Ingot = |
| | | Uranium Lump = |
| | | Uranium Ingot = |
| | | Chromium Lump = |
| | | Chromium Ingot = |
| | | Zinc Lump = |
| | | Zinc Ingot = |
| | | Brass Ingot = |
| | | Wrought Iron Ingot = |
| | | Cast Iron Ingot = |
| | | Carbon Steel Ingot = |
| | | Stainless Steel Ingot = |
| | | Stainless Steel Ingot = |
| | | Iron = |
| | | |
| | | ###nodes.lua |
| | | Uranium Ore = |
| | | Chromium Ore = |
| | | Zinc Ore = |
| | | Granite = |
| | | Marble = |
| | | Marble Bricks = |
| | | Uranium Block = |
| | | Chromium Block = |
| | | Zinc Block = |
| | | Uranium Ore = |
| | | Chromium Ore = |
| | | Zinc Ore = |
| | | Granite = |
| | | Marble = |
| | | Marble Bricks = |
| | | Uranium Block = |
| | | Chromium Block = |
| | | Zinc Block = |
| | | Wrought Iron Block = |
| | | Cast Iron Block = |
| | | Carbon Steel Block = |
| | | Stainless Steel Block = |
| | | Brass Block = |
| | | Stainless Steel Block = |
| | | Brass Block = |
| | | Wrought Iron = |
| | | |
| | | ###rubber.lua |
| | | Rubber Tree Sapling = |
| | | Rubber Tree = |
| | | Rubber Tree Sapling = |
| | | Rubber Tree = |
| | |
| | | # Turkish translation |
| | | # mahmutelmas06@hotmail.com |
| | | # mahmutelmas06@hotmail.com |
| | | # Türkçe çeviri |
| | | |
| | | ###crafts.lua |
| | | Uranium Lump = Uranyum yığını |
| | | Uranium Lump = Uranyum yığını |
| | | Uranium Ingot = Uranyum külçesi |
| | | Chromium Lump = Krom yığını |
| | | Chromium Ingot = Krom külçesi |
| | | Zinc Lump = Çinko yığını |
| | | Zinc Ingot = Çünko külçesi |
| | | Brass Ingot = Pirinç yığını |
| | | Brass Ingot = Pirinç yığını |
| | | Wrought Iron Ingot = İşlenmiş demir yığını |
| | | Cast Iron Ingot = Döküm demir yığını |
| | | Carbon Steel Ingot = Karbon çelik külçe |
| | | Stainless Steel Ingot =Paslanmaz çelik külçe |
| | | Carbon Steel Ingot = Karbon çelik külçe |
| | | Stainless Steel Ingot =Paslanmaz çelik külçe |
| | | Iron = Demir |
| | | |
| | | ###nodes.lua |
| | | Uranium Ore = Uranyum madeni |
| | | Chromium Ore = Krom madeni |
| | | Zinc Ore = Çinko madeni |
| | | Uranium Ore = Uranyum madeni |
| | | Chromium Ore = Krom madeni |
| | | Zinc Ore = Çinko madeni |
| | | Granite = Granit |
| | | Marble = Mermer |
| | | Marble Bricks = Mermer tuğla |
| | | Uranium Block = Uranyum blok |
| | | Chromium Block = Karbon blok |
| | | Zinc Block = Çinko blok |
| | | Marble Bricks = Mermer tuğla |
| | | Uranium Block = Uranyum blok |
| | | Chromium Block = Karbon blok |
| | | Zinc Block = Çinko blok |
| | | Wrought Iron Block = İşlenmiş demir blok |
| | | Cast Iron Block = Döküm demir blok |
| | | Carbon Steel Block = Karbon çelik blok |
| | | Stainless Steel Block = Paslanmaz çelik blok |
| | | Stainless Steel Block = Paslanmaz çelik blok |
| | | Brass Block = Pirinç blok |
| | | Wrought Iron = İşlenmiş demir |
| | | |
| | | ###rubber.lua |
| | | Rubber Tree Sapling = Kauçuk ağacı fidanı |
| | | Rubber Tree = Kauçuk ağacı |
| | | Rubber Tree = Kauçuk ağacı |
| | |
| | | groups = {cracky=3, radioactive=1}, |
| | | sounds = default.node_sound_stone_defaults(), |
| | | drop = "technic:uranium_lump", |
| | | }) |
| | | }) |
| | | |
| | | minetest.register_node( ":technic:mineral_chromium", { |
| | | description = S("Chromium Ore"), |
| | |
| | | groups = {cracky=3}, |
| | | sounds = default.node_sound_stone_defaults(), |
| | | drop = "technic:chromium_lump", |
| | | }) |
| | | }) |
| | | |
| | | minetest.register_node( ":technic:mineral_zinc", { |
| | | description = S("Zinc Ore"), |
| | |
| | | is_ground_content = true, |
| | | groups = {cracky=1}, |
| | | sounds = default.node_sound_stone_defaults(), |
| | | }) |
| | | }) |
| | | |
| | | minetest.register_node( ":technic:marble", { |
| | | description = S("Marble"), |
| | |
| | | is_ground_content = true, |
| | | groups = {cracky=3, marble=1}, |
| | | sounds = default.node_sound_stone_defaults(), |
| | | }) |
| | | }) |
| | | |
| | | minetest.register_node( ":technic:marble_bricks", { |
| | | description = S("Marble Bricks"), |
| | |
| | | is_ground_content = true, |
| | | groups = {cracky=3}, |
| | | sounds = default.node_sound_stone_defaults(), |
| | | }) |
| | | }) |
| | | |
| | | minetest.register_node(":technic:uranium_block", { |
| | | description = S("Uranium Block"), |
| | |
| | | store_meta_always = true, |
| | | } |
| | | owned - nodes that are protected by owner requirements (Ex. locked chests) |
| | | store_meta_always - when nodes are broken this ensures metadata and |
| | | store_meta_always - when nodes are broken this ensures metadata and |
| | | inventory is always stored (Ex. active state for machines) |
| | | --]] |
| | | |
| | |
| | | wrench.META_TYPE_FLOAT = 1 |
| | | wrench.META_TYPE_STRING = 2 |
| | | |
| | | local INT, STRING, FLOAT = |
| | | local INT, STRING, FLOAT = |
| | | wrench.META_TYPE_INT, |
| | | wrench.META_TYPE_STRING, |
| | | wrench.META_TYPE_FLOAT |
| | |
| | | |
| | | local INT, STRING, FLOAT = |
| | | local INT, STRING, FLOAT = |
| | | wrench.META_TYPE_INT, |
| | | wrench.META_TYPE_STRING, |
| | | wrench.META_TYPE_FLOAT |
| | |
| | | |
| | | local chest_mark_colors = { |
| | | '_black', |
| | | '_blue', |
| | | '_blue', |
| | | '_brown', |
| | | '_cyan', |
| | | '_dark_green', |