%s Grinder = Amoladora %s
%s Generator = Generador %s
%s Solar Array = Panel Solar %s
+Injector =
+Constructor Mk%d =
+Frame =
+Frame Motor =
+Template =
+Template (replacing) =
+Template Motor =
+Template Tool =
Supply Converter = Convertidor de Alimentacion
Switching Station = Estacion de Conmutacion
Battery Box = Caja de Baterias
Music Player = Reproductor de Musica
Extractor = Extractor
Coal Alloy Furnace = Horno de Aleacion a Carbon
-Tool WorkShop = Taller de Herramientas
+Tool Workshop = Taller de Herramientas
Forcefield = Campo de Fuerza
Forcefield Emitter = Emisor de Campo de Fuerza
Compressor = Compresor
Zinc = Zinc
## Tools
+RE Battery =
Water Can = Bidon de Agua
Lava Can = Bidon de Lava
Chainsaw = Motosierra
%s Grinder = %s Tritatutto
%s Generator = %s Generatore
%s Solar Array = %s Pannello Solare
+Injector =
+Constructor Mk%d =
+Frame =
+Frame Motor =
+Template =
+Template (replacing) =
+Template Motor =
+Template Tool =
Battery Box = Box batterie
Supply Converter = Trasformatore
Switching Station = Stazione di controllo
Geothermal Generator = Generatore Geotermico
Music Player = Music Player
Water Mill = Turbina Elettrica
-Tool WorkShop = Officina per attrezzi
+Tool Workshop = Officina per attrezzi
Wind Mill = Generatore eolico
Wind Mill Frame = Pala eolica
Forcefield Emitter = Emettitore di campo di forza
Zinc = Zinco
## Tools
+RE Battery =
Water Can = Serbatoio d'acqua
Lava Can = Serbatoio di lava
Chainsaw = Motosega
%s Grinder =
%s Generator =
%s Solar Array =
+Injector =
+Constructor Mk%d =
+Frame =
+Frame Motor =
+Template =
+Template (replacing) =
+Template Motor =
+Template Tool =
Battery Box =
Supply Converter =
Switching Station =
Geothermal Generator =
Music Player =
Water Mill =
-Tool WorkShop =
+Tool Workshop =
Wind Mill =
Wind Mill Frame =
Forcefield Emitter =
Zinc =
## Tools
+RE Battery =
Water Can =
Lava Can =
Chainsaw =
--- LV Battery box and some other nodes...
-
-technic.register_power_tool("technic:battery", 10000)
-technic.register_power_tool("technic:red_energy_crystal", 100000)
-technic.register_power_tool("technic:green_energy_crystal", 250000)
-technic.register_power_tool("technic:blue_energy_crystal", 500000)
-
-minetest.register_craft({
- output = 'technic:battery',
- recipe = {
- {'group:wood', 'default:copper_ingot', 'group:wood'},
- {'group:wood', 'moreores:tin_ingot', 'group:wood'},
- {'group:wood', 'default:copper_ingot', 'group:wood'},
- }
-})
-
-minetest.register_tool("technic:battery", {
- description = "RE Battery",
- inventory_image = "technic_battery.png",
- tool_capabilities = {
- charge = 0,
- max_drop_level = 0,
- groupcaps = {
- fleshy = {times={}, uses=10000, maxlevel=0}
- }
- }
-})
minetest.register_craft({
output = 'technic:lv_battery_box0',
+local S = technic.getter
+
minetest.register_craft({
type = "shapeless",
output = 'technic:constructor_mk1_off 1',
minetest.register_node("technic:constructor_mk1_off", {
- description = "Constructor MK1",
+ description = S("Constructor Mk%d"):format(1),
tile_images = {"technic_constructor_mk1_top_off.png","technic_constructor_mk1_bottom_off.png","technic_constructor_mk1_side2_off.png","technic_constructor_mk1_side1_off.png",
"technic_constructor_back.png","technic_constructor_front_off.png"},
is_ground_content = true,
local meta = minetest.get_meta(pos)
meta:set_string("formspec",
"invsize[8,9;]"..
- "label[0,0;Constructor MK1]"..
+ "label[0,0;"..S("Constructor Mk%d"):format(1).."]"..
"label[5,0;Slot 1]"..
"list[current_name;slot1;6,0;1,1;]"..
"list[current_player;main;0,5;8,4;]")
- meta:set_string("infotext", "Constructor MK1")
+ meta:set_string("infotext", S("Constructor Mk%d"):format(1))
local inv = meta:get_inventory()
inv:set_size("slot1", 1)
end,
})
minetest.register_node("technic:constructor_mk1_on", {
- description = "Constructor MK1",
+ description = S("Constructor Mk%d"):format(3),
tile_images = {"technic_constructor_mk1_top_on.png","technic_constructor_mk1_bottom_on.png","technic_constructor_mk1_side2_on.png","technic_constructor_mk1_side1_on.png",
"technic_constructor_back.png","technic_constructor_front_on.png"},
paramtype2 = "facedir",
})
---Constructor MK2
+--Constructor Mk2
mk2_on = function(pos, node)
local meta = minetest.get_meta(pos)
end
minetest.register_node("technic:constructor_mk2_off", {
- description = "Constructor MK2",
+ description = S("Constructor Mk%d"):format(2),
tile_images = {"technic_constructor_mk2_top_off.png","technic_constructor_mk2_bottom_off.png","technic_constructor_mk2_side2_off.png","technic_constructor_mk2_side1_off.png",
"technic_constructor_back.png","technic_constructor_front_off.png"},
is_ground_content = true,
local meta = minetest.get_meta(pos)
meta:set_string("formspec",
"invsize[8,9;]"..
- "label[0,0;Constructor MK2]"..
+ "label[0,0;"..S("Constructor Mk%d"):format(2).."]"..
"label[5,0;Slot 1]"..
"list[current_name;slot1;6,0;1,1;]"..
"label[5,1;Slot 2]"..
"list[current_name;slot2;6,1;1,1;]"..
"list[current_player;main;0,5;8,4;]")
- meta:set_string("infotext", "Constructor MK2")
+ meta:set_string("infotext", S("Constructor Mk%d"):format(2))
local inv = meta:get_inventory()
inv:set_size("slot1", 1)
inv:set_size("slot2", 1)
})
minetest.register_node("technic:constructor_mk2_on", {
- description = "Constructor MK2",
+ description = S("Constructor Mk%d"):format(2),
tile_images = {"technic_constructor_mk2_top_on.png","technic_constructor_mk2_bottom_on.png","technic_constructor_mk2_side2_on.png","technic_constructor_mk2_side1_on.png",
"technic_constructor_back.png","technic_constructor_front_on.png"},
is_ground_content = true,
})
--- Constructor MK3
+-- Constructor Mk3
mk3_on = function(pos, node)
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()
end
minetest.register_node("technic:constructor_mk3_off", {
- description = "Constructor MK3",
+ description = S("Constructor Mk%d"):format(3),
tile_images = {"technic_constructor_mk3_top_off.png","technic_constructor_mk3_bottom_off.png","technic_constructor_mk3_side2_off.png","technic_constructor_mk3_side1_off.png",
"technic_constructor_back.png","technic_constructor_front_off.png"},
paramtype2 = "facedir",
local meta = minetest.get_meta(pos)
meta:set_string("formspec",
"invsize[8,9;]"..
- "label[0,0;Constructor MK2]"..
+ "label[0,0;"..S("Constructor Mk%d"):format(3).."]"..
"label[5,0;Slot 1]"..
"list[current_name;slot1;6,0;1,1;]"..
"label[5,1;Slot 2]"..
"label[5,3;Slot 4]"..
"list[current_name;slot4;6,3;1,1;]"..
"list[current_player;main;0,5;8,4;]")
- meta:set_string("infotext", "Constructor MK3")
+ meta:set_string("infotext", S("Constructor Mk%d"):format(3))
local inv = meta:get_inventory()
inv:set_size("slot1", 1)
inv:set_size("slot2", 1)
})
minetest.register_node("technic:constructor_mk3_on", {
- description = "Constructor MK3",
+ description = S("Constructor Mk%d"):format(3),
tile_images = {"technic_constructor_mk3_top_on.png","technic_constructor_mk3_bottom_on.png","technic_constructor_mk3_side2_on.png","technic_constructor_mk3_side1_on.png",
"technic_constructor_back.png","technic_constructor_front_on.png"},
is_ground_content = true,
+
+local S = technic.getter
+
frames = {}
-- Helpers
minetest.register_node("technic:frame_"..nameext,{
- description = "Frame",
+ description = S("Frame"),
tiles = {"technic_frame.png"},
groups=groups,
drawtype = "nodebox",
end
minetest.register_node("technic:frame_motor",{
- description = "Frame motor",
+ description = S("Frame 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},
end
minetest.register_node("technic:template",{
- description = "Template",
+ description = S("Template"),
tiles = {"technic_mv_cable.png"},
drop = "",
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
})
minetest.register_node("technic:template_disabled",{
- description = "Template",
+ description = S("Template"),
tiles = {"technic_hv_cable.png"},
drop = "",
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2,not_in_creative_inventory=1},
})
minetest.register_node("technic:template_connector",{
- description = "Template",
+ description = S("Template"),
tiles = {"technic_lv_cable.png"},
drop = "",
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2,not_in_creative_inventory=1},
})
minetest.register_craftitem("technic:template_replacer",{
- description = "Template (replacing)",
+ description = S("Template (replacing)"),
inventory_image = "technic_template_replacer.png",
on_place = function(itemstack, placer, pointed_thing)
local p = pointed_thing.under
})
minetest.register_tool("technic:template_tool",{
- description = "Template tool",
+ description = S("Template tool"),
inventory_image = "technic_template_tool.png",
on_use = function(itemstack, puncher, pointed_thing)
local pos = pointed_thing.under
end
minetest.register_node("technic:template_motor",{
- description = "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},
+local S = technic.getter
+
minetest.register_craft({
output = 'technic:injector 1',
recipe = {
})
minetest.register_node("technic:injector", {
- description = "Injector",
+ description = S("Injector"),
tiles = {"technic_injector_top.png", "technic_injector_bottom.png", "technic_injector_side.png",
"technic_injector_side.png", "technic_injector_side.png", "technic_injector_side.png"},
groups = chest_groups1,
local meta = minetest.env:get_meta(pos)
meta:set_string("formspec",
"invsize[8,9;]"..
- "label[0,0;Injector]"..
+ "label[0,0;"..S("Injector").."]"..
"button[0,1;.8,.8;mode;]"..
"label[.8,1;Mode: single items]"..
"list[current_name;main;0,2;8,2;]"..
"list[current_player;main;0,5;8,4;]")
- meta:set_string("infotext", "Injector")
+ meta:set_string("infotext", S("Injector"))
local inv = meta:get_inventory()
inv:set_size("main", 8*4)
meta:set_string("mode","single items")
end
meta:set_string("formspec",
"invsize[8,9;]"..
- "label[0,0;Injector]"..
+ "label[0,0;"..S("Injector").."]"..
"button[0,1;.8,.8;mode;]"..
"label[.8,1;Mode: "..mode.."]"..
"list[current_name;main;0,2;8,2;]"..
local S = technic.getter
+technic.register_power_tool("technic:battery", 10000)
+technic.register_power_tool("technic:red_energy_crystal", 100000)
+technic.register_power_tool("technic:green_energy_crystal", 250000)
+technic.register_power_tool("technic:blue_energy_crystal", 500000)
+
+minetest.register_craft({
+ output = 'technic:battery',
+ recipe = {
+ {'group:wood', 'default:copper_ingot', 'group:wood'},
+ {'group:wood', 'moreores:tin_ingot', 'group:wood'},
+ {'group:wood', 'default:copper_ingot', 'group:wood'},
+ }
+})
+
+minetest.register_tool("technic:battery", {
+ description = S("RE Battery"),
+ inventory_image = "technic_battery.png",
+ tool_capabilities = {
+ charge = 0,
+ max_drop_level = 0,
+ groupcaps = {
+ fleshy = {times={}, uses=10000, maxlevel=0}
+ }
+ }
+})
+
+
function technic.register_battery_box(data)
local tier = data.tier
local ltier = string.lower(tier)