10 Commits

28 changed files with 49 additions and 195 deletions

View File

@@ -647,7 +647,7 @@ end
-- \returns nil -- \returns nil
industrialtest.api.registerResourceDust=function(name,displayName,resources,color,registerMaceratorRecipe) industrialtest.api.registerResourceDust=function(name,displayName,resources,color,registerMaceratorRecipe)
minetest.register_craftitem("industrialtest:"..name.."_dust",{ minetest.register_craftitem("industrialtest:"..name.."_dust",{
description=S("@1 Dust", displayName), description=S(displayName.." Dust"),
inventory_image="industrialtest_dust.png", inventory_image="industrialtest_dust.png",
color=color color=color
}) })
@@ -693,7 +693,7 @@ industrialtest.api.registerStorageCell=function(name,displayName,node,modname)
modname="industrialtest" modname="industrialtest"
end end
minetest.register_craftitem("industrialtest:"..name.."_cell",{ minetest.register_craftitem("industrialtest:"..name.."_cell",{
description=S("@1 Cell", displayName), description=S(displayName.." Cell"),
inventory_image=modname.."_"..name.."_cell.png", inventory_image=modname.."_"..name.."_cell.png",
on_place=function(itemstack,user,pointed) on_place=function(itemstack,user,pointed)
if pointed.type~="node" or not user or not user:is_player() then if pointed.type~="node" or not user or not user:is_player() then

View File

@@ -47,7 +47,7 @@ end
local function registerCable(name,displayName,size,flow,registerInsulated) local function registerCable(name,displayName,size,flow,registerInsulated)
local definition={ local definition={
description=S("@1 Cable", displayName), description=S(displayName.." Cable"),
inventory_image="industrialtest_"..name.."_cable_inv.png", inventory_image="industrialtest_"..name.."_cable_inv.png",
tiles={"industrialtest_"..name.."_cable.png"}, tiles={"industrialtest_"..name.."_cable.png"},
wield_image="industrialtest_"..name.."_cable_inv.png", wield_image="industrialtest_"..name.."_cable_inv.png",
@@ -142,7 +142,7 @@ local function registerCable(name,displayName,size,flow,registerInsulated)
minetest.register_node("industrialtest:"..name.."_cable",definition) minetest.register_node("industrialtest:"..name.."_cable",definition)
if registerInsulated then if registerInsulated then
definition=table.copy(definition) definition=table.copy(definition)
definition.description=S("Insulated @1 Cable", displayName) definition.description=S("Insulated "..displayName.." Cable")
definition.inventory_image="industrialtest_insulated_"..name.."_cable_inv.png" definition.inventory_image="industrialtest_insulated_"..name.."_cable_inv.png"
definition.tiles={"industrialtest_insulated_"..name.."_cable.png"} definition.tiles={"industrialtest_insulated_"..name.."_cable.png"}
definition.wield_image="industrialtest_insulated_"..name.."_cable_inv.png" definition.wield_image="industrialtest_insulated_"..name.."_cable_inv.png"

View File

@@ -93,6 +93,7 @@ override={
if meta:get_int("meseconPowered")==1 then if meta:get_int("meseconPowered")==1 then
return return
end end
if meta:contains("chambers") then
local chambers=minetest.deserialize(meta:get_string("chambers")) local chambers=minetest.deserialize(meta:get_string("chambers"))
for _,chamber in ipairs(chambers) do for _,chamber in ipairs(chambers) do
local chamberMeta=minetest.get_meta(chamber) local chamberMeta=minetest.get_meta(chamber)
@@ -100,6 +101,7 @@ override={
return return
end end
end end
end
meta:set_int("enabled",0) meta:set_int("enabled",0)
meta:set_int("stateChanged",1) meta:set_int("stateChanged",1)

View File

@@ -94,15 +94,15 @@ end
if industrialtest.mclAvailable then if industrialtest.mclAvailable then
industrialtest.internal.registerMetal=function(name,displayName,oreBlastResistance,oreHardness,rawBlockBlastResistance,rawBlockHardness,blockBlastResistance,blockHardness) industrialtest.internal.registerMetal=function(name,displayName,oreBlastResistance,oreHardness,rawBlockBlastResistance,rawBlockHardness,blockBlastResistance,blockHardness)
minetest.register_craftitem("industrialtest:raw_"..name,{ minetest.register_craftitem("industrialtest:raw_"..name,{
description=S("Raw @1", displayName), description=S("Raw "..displayName),
inventory_image="industrialtest_mcl_raw_"..name..".png" inventory_image="industrialtest_mcl_raw_"..name..".png"
}) })
minetest.register_craftitem("industrialtest:"..name.."_ingot",{ minetest.register_craftitem("industrialtest:"..name.."_ingot",{
description=S("@1 Ingot", displayName), description=S(displayName.." Ingot"),
inventory_image="industrialtest_mcl_"..name.."_ingot.png" inventory_image="industrialtest_mcl_"..name.."_ingot.png"
}) })
minetest.register_node("industrialtest:stone_with_"..name,{ minetest.register_node("industrialtest:stone_with_"..name,{
description=S("@1 Ore", displayName), description=S(displayName.." Ore"),
tiles={"default_stone.png^industrialtest_mcl_stone_with_"..name..".png"}, tiles={"default_stone.png^industrialtest_mcl_stone_with_"..name..".png"},
sounds=mcl_sounds.node_sound_stone_defaults(), sounds=mcl_sounds.node_sound_stone_defaults(),
drop="industrialtest:raw_"..name, drop="industrialtest:raw_"..name,
@@ -114,7 +114,7 @@ if industrialtest.mclAvailable then
_mcl_fortune_drop = mcl_core.fortune_drop_ore, _mcl_fortune_drop = mcl_core.fortune_drop_ore,
}) })
minetest.register_node("industrialtest:deepslate_with_"..name,{ minetest.register_node("industrialtest:deepslate_with_"..name,{
description=S("Deepslate with @1", displayName), description=S("Deepslate with "..displayName),
tiles={"mcl_deepslate_top.png^industrialtest_mcl_stone_with_"..name..".png","mcl_deepslate_top.png^industrialtest_mcl_stone_with_"..name..".png","mcl_deepslate.png^industrialtest_mcl_stone_with_"..name..".png"}, tiles={"mcl_deepslate_top.png^industrialtest_mcl_stone_with_"..name..".png","mcl_deepslate_top.png^industrialtest_mcl_stone_with_"..name..".png","mcl_deepslate.png^industrialtest_mcl_stone_with_"..name..".png"},
sounds=mcl_sounds.node_sound_stone_defaults(), sounds=mcl_sounds.node_sound_stone_defaults(),
drop="industrialtest:raw_"..name, drop="industrialtest:raw_"..name,
@@ -128,7 +128,7 @@ if industrialtest.mclAvailable then
_mcl_fortune_drop = mcl_core.fortune_drop_ore, _mcl_fortune_drop = mcl_core.fortune_drop_ore,
}) })
minetest.register_node("industrialtest:raw_"..name.."_block",{ minetest.register_node("industrialtest:raw_"..name.."_block",{
description=S("Raw @1 Block", displayName), description=S("Raw "..displayName.." Block"),
tiles={"industrialtest_mcl_raw_"..name.."_block.png"}, tiles={"industrialtest_mcl_raw_"..name.."_block.png"},
groups={pickaxey=2,building_block=1,blast_furnace_smeltable=1}, groups={pickaxey=2,building_block=1,blast_furnace_smeltable=1},
sounds=mcl_sounds.node_sound_metal_defaults(), sounds=mcl_sounds.node_sound_metal_defaults(),
@@ -136,7 +136,7 @@ if industrialtest.mclAvailable then
_mcl_hardness=rawBlockHardness, _mcl_hardness=rawBlockHardness,
}) })
minetest.register_node("industrialtest:"..name.."_block",{ minetest.register_node("industrialtest:"..name.."_block",{
description=S("Block of @1", displayName), description=S("Block of "..displayName),
tiles={"industrialtest_"..name.."_block.png"}, tiles={"industrialtest_"..name.."_block.png"},
groups={pickaxey=2,building_block=1}, groups={pickaxey=2,building_block=1},
sounds=mcl_sounds.node_sound_metal_defaults(), sounds=mcl_sounds.node_sound_metal_defaults(),
@@ -192,7 +192,7 @@ if industrialtest.mclAvailable then
end end
industrialtest.registerToolset=function(material,materialItem,materialDisplayName,config) industrialtest.registerToolset=function(material,materialItem,materialDisplayName,config)
minetest.register_tool("industrialtest:"..material.."_pickaxe",{ minetest.register_tool("industrialtest:"..material.."_pickaxe",{
description=S("@1 Pickaxe", materialDisplayName), description=S(materialDisplayName.." Pickaxe"),
inventory_image="industrialtest_mcl_"..material.."_pickaxe.png", inventory_image="industrialtest_mcl_"..material.."_pickaxe.png",
groups={tool=1,pickaxe=1,dig_speed_class=config.digSpeedClass}, groups={tool=1,pickaxe=1,dig_speed_class=config.digSpeedClass},
tool_capabilities={ tool_capabilities={
@@ -208,7 +208,7 @@ if industrialtest.mclAvailable then
} }
}) })
minetest.register_tool("industrialtest:"..material.."_shovel",{ minetest.register_tool("industrialtest:"..material.."_shovel",{
description=S("@1 Shovel", materialDisplayName), description=S(materialDisplayName.." Shovel"),
inventory_image="industrialtest_mcl_"..material.."_shovel.png", inventory_image="industrialtest_mcl_"..material.."_shovel.png",
groups={tool=1,shovel=1,dig_speed_class=config.digSpeedClass}, groups={tool=1,shovel=1,dig_speed_class=config.digSpeedClass},
tool_capabilities={ tool_capabilities={
@@ -253,14 +253,14 @@ if industrialtest.mclAvailable then
return itemstack return itemstack
end, end,
sound={breaks="default_tool_breaks"}, sound={breaks="default_tool_breaks"},
_repair_material="industrialtest:"..material, _repair_material="industrialtest:"..materialItem,
_mcl_toollike_wield=true, _mcl_toollike_wield=true,
_mcl_diggroups={ _mcl_diggroups={
shovely={speed=config.speed,level=config.level,uses=config.uses} shovely={speed=config.speed,level=config.level,uses=config.uses}
} }
}) })
minetest.register_tool("industrialtest:"..material.."_axe",{ minetest.register_tool("industrialtest:"..material.."_axe",{
description=S("@1 Axe", materialDisplayName), description=S(materialDisplayName.." Axe"),
inventory_image="industrialtest_mcl_"..material.."_axe.png", inventory_image="industrialtest_mcl_"..material.."_axe.png",
groups={tool=1,axe=1,dig_speed_class=config.digSpeedClass}, groups={tool=1,axe=1,dig_speed_class=config.digSpeedClass},
tool_capabilities={ tool_capabilities={
@@ -270,14 +270,14 @@ if industrialtest.mclAvailable then
}, },
on_place=industrialtest.internal.mclMakeStrippedTrunk, on_place=industrialtest.internal.mclMakeStrippedTrunk,
sound={breaks="default_tool_breaks"}, sound={breaks="default_tool_breaks"},
_repair_material="industrialtest:"..material, _repair_material="industrialtest:"..materialItem,
_mcl_toollike_wield=true, _mcl_toollike_wield=true,
_mcl_diggroups={ _mcl_diggroups={
axey={speed=config.speed,level=config.level,uses=config.uses} axey={speed=config.speed,level=config.level,uses=config.uses}
} }
}) })
minetest.register_tool("industrialtest:"..material.."_sword",{ minetest.register_tool("industrialtest:"..material.."_sword",{
description=S("@1 Sword", materialDisplayName), description=S(materialDisplayName.." Sword"),
inventory_image="industrialtest_mcl_"..material.."_sword.png", inventory_image="industrialtest_mcl_"..material.."_sword.png",
groups={weapon=1,sword=1,dig_speed_class=config.digSpeedClass}, groups={weapon=1,sword=1,dig_speed_class=config.digSpeedClass},
tool_capabilities={ tool_capabilities={
@@ -286,7 +286,7 @@ if industrialtest.mclAvailable then
damage_groups={fleshy=config.damage+2}, damage_groups={fleshy=config.damage+2},
}, },
sound={breaks="default_tool_breaks"}, sound={breaks="default_tool_breaks"},
_repair_material="industrialtest:"..material, _repair_material="industrialtest:"..materialItem,
_mcl_toollike_wield=true, _mcl_toollike_wield=true,
_mcl_diggroups={ _mcl_diggroups={
swordy={speed=config.speed,level=config.level,uses=config.uses}, swordy={speed=config.speed,level=config.level,uses=config.uses},
@@ -294,7 +294,7 @@ if industrialtest.mclAvailable then
} }
}) })
minetest.register_tool("industrialtest:"..material.."_hoe",{ minetest.register_tool("industrialtest:"..material.."_hoe",{
description=S("@1 Hoe", materialDisplayName), description=S(materialDisplayName.." Hoe"),
inventory_image="industrialtest_mcl_"..material.."_hoe.png", inventory_image="industrialtest_mcl_"..material.."_hoe.png",
groups={tool=1,hoe=1}, groups={tool=1,hoe=1},
tool_capabilities={ tool_capabilities={
@@ -349,7 +349,7 @@ if industrialtest.mclAvailable then
return itemstack return itemstack
end end
end, end,
_repair_material="industrialtest:"..material, _repair_material="industrialtest:"..materialItem,
_mcl_toollike_wield=true, _mcl_toollike_wield=true,
_mcl_diggroups={ _mcl_diggroups={
hoey={speed=config.speed,level=config.level,uses=config.uses} hoey={speed=config.speed,level=config.level,uses=config.uses}
@@ -358,15 +358,9 @@ if industrialtest.mclAvailable then
mcl_armor.register_set({ mcl_armor.register_set({
name=material, name=material,
description=materialDisplayName, description=materialDisplayName,
descriptions = {
head = "Helmet",
torso = "Chestplate",
legs = "Leggings",
feet = "Boots",
},
durability=config.uses, durability=config.uses,
points=config.armorPoints, points=config.armorPoints,
craft_material="industrialtest:"..material, craft_material="industrialtest:"..materialItem,
cook_material=config.armorCookMaterial, cook_material=config.armorCookMaterial,
sound_equip=config.armorEquipSound, sound_equip=config.armorEquipSound,
sound_unequip=config.armorUnequipSound, sound_unequip=config.armorUnequipSound,
@@ -558,7 +552,7 @@ if industrialtest.mclAvailable then
} }
}) })
industrialtest.elementKeys.bronzeIngot="industrialtest:bronze_ingot" industrialtest.elementKeys.bronzeIngot="industrialtest:bronze_ingot"
industrialtest.registerToolset("bronze","bronze_ingot",S("Bronze"),{ industrialtest.registerToolset("bronze","bronze_ingot","Bronze",{
digSpeedClass=4, digSpeedClass=4,
dropLevel=4, dropLevel=4,
speed=6, speed=6,
@@ -623,22 +617,22 @@ elseif industrialtest.mtgAvailable then
industrialtest.internal.registerMetal=function(name,displayName,hardness) industrialtest.internal.registerMetal=function(name,displayName,hardness)
minetest.register_craftitem("industrialtest:"..name.."_lump",{ minetest.register_craftitem("industrialtest:"..name.."_lump",{
description=S("@1 Lump", displayName), description=S(displayName.." Lump"),
inventory_image="industrialtest_mtg_"..name.."_lump.png" inventory_image="industrialtest_mtg_"..name.."_lump.png"
}) })
minetest.register_craftitem("industrialtest:"..name.."_ingot",{ minetest.register_craftitem("industrialtest:"..name.."_ingot",{
description=S("@1 Ingot", displayName), description=S(displayName.." Ingot"),
inventory_image="industrialtest_mtg_"..name.."_ingot.png" inventory_image="industrialtest_mtg_"..name.."_ingot.png"
}) })
minetest.register_node("industrialtest:stone_with_"..name,{ minetest.register_node("industrialtest:stone_with_"..name,{
description=S("@1 Ore", displayName), description=S(displayName.." Ore"),
tiles={"default_stone.png^industrialtest_mtg_stone_with_"..name..".png"}, tiles={"default_stone.png^industrialtest_mtg_stone_with_"..name..".png"},
sounds=default.node_sound_stone_defaults(), sounds=default.node_sound_stone_defaults(),
drop="industrialtest:"..name.."_lump", drop="industrialtest:"..name.."_lump",
groups={cracky=hardness}, groups={cracky=hardness},
}) })
minetest.register_node("industrialtest:"..name.."_block",{ minetest.register_node("industrialtest:"..name.."_block",{
description=S("Block of @1", displayName), description=S("Block of "..displayName),
tiles={"industrialtest_"..name.."_block.png"}, tiles={"industrialtest_"..name.."_block.png"},
groups={cracky=hardness,level=2}, groups={cracky=hardness,level=2},
sounds=default.node_sound_metal_defaults(), sounds=default.node_sound_metal_defaults(),

View File

@@ -1,140 +0,0 @@
# textdomain: industrialtest
@1@n@2 / @3 EU=
@1@n@2 / @3 mB=
@1 Dust=
@1 Cell=
@1 Cable=
Insulated @1 Cable=
Raw @1=
@1 Ingot=
@1 Ore=
Deepslate with @1=
Raw @1 Block=
Block of @1=
@1 Pickaxe=
@1 Shovel=
@1 Axe=
@1 Sword=
@1 Hoe=
Bronze Ingot=
Bronze Nugget=
Bronze=
Block of Bronze=
@1 Lump=
RE-Battery=
Advanced RE-Battery=
Energy Crystal=
Lapotron Crystal=
Refined Iron Ingot=
Mixed Metal Ingot=
Sticky Resin=
Rubber=
Raw Carbon Fibre=
Raw Carbon Mesh=
Hydrated Coal Dust=
Hydrated Coal=
Bronze Plate=
Copper Plate=
Advanced Alloy=
Carbon Plate=
Tin Plate=
Lead Plate=
Empty Cell=
Uranium Cell=
Coolant Cell=
Bio Cell=
Biofuel Cell=
Hydrated Coal Cell=
Coalfuel Cell=
Electronic Circuit=
Advanced Electronic Circuit=
Scrap=
UU-Matter=
Plantball=
Compressed Plantball=
Fuel Can=
Cable Former=
Canning Machine=
BatBox Chargepad=
CESU Chargepad=
MFE Chargepad=
MFSU Chargepad=
Charge=
Discharge=
Compressor=
Electric Furnace=
Extractor=
Geothermal Generator=
Water Mill=
Generator=
Heat: @1 %=
Induction Furnace=
Iron Furnace=
Macerator=
Mass Fabricator=
Start=
Stop=
Nuclear Reactor=
Nuclear Reactor Chamber=
BatBox=
CESU=
MFE=
MFSU=
Recycler=
Don't maintain speed=
Maintain speed=
Speed: @1=
Rotary Macerator=
Solar Panel=
LV Solar Array=
MV Solar Array=
HV Solar Array=
Tool Workshop=
LV Transformer=
MV Transformer=
HV Transformer=
EV Transformer=
Wind Mill=
Machine Block=
Advanced Machine Block=
Rubber Wood=
Rubber Leaves=
Rubber Sapling=
BatPack=
LapPack=
Electric Chainsaw=
Diamond Electric Chainsaw=
Electric Drill=
Diamond Electric Drill=
Electric Hoe=
Diamond Electric Hoe=
Electric Saber=
Diamond Electric Saber=
Jetpack=
Electric Jetpack=
Mining Laser (Mode @1)=
Mining Laser (Mode 1)=
Nano Helmet=
Nano Bodyarmor=
Nano Leggings=
Nano Boots=
Solar Helmet=
Static Boots=
Treetap=
Electric Treetap=
Wrench=
Electric Wrench=
Overclocker Upgrade=
Transformer Upgrade=
Power Storage Upgrade=
Power Storage Inspector=
Power Capacity: @1=
Power Flow: @1=
Power Amount: @1=
Power IO Config: @1=
Power Capacity=
Power Flow=
Power Amount=
Power IO Config=
Update=
Connections:=

View File

@@ -39,7 +39,7 @@ if industrialtest.mtgAvailable then
y_min=-31000 y_min=-31000
}) })
industrialtest.internal.registerMetal("iridium","Iridium",4) industrialtest.internal.registerMetal("iridium","Iridium",3)
minetest.register_ore({ minetest.register_ore({
ore_type="scatter", ore_type="scatter",
ore="industrialtest:stone_with_iridium", ore="industrialtest:stone_with_iridium",

View File

@@ -379,7 +379,6 @@ if not industrialtest.mods.mclRubber then
end end
end end
}) })
if mcl_dye.register_on_bone_meal_apply then
mcl_dye.register_on_bone_meal_apply(function(pointed) mcl_dye.register_on_bone_meal_apply(function(pointed)
local node=minetest.get_node(pointed.under) local node=minetest.get_node(pointed.under)
if node.name~="industrialtest:rubber_sapling" then if node.name~="industrialtest:rubber_sapling" then
@@ -398,7 +397,6 @@ if not industrialtest.mods.mclRubber then
end end
end) end)
end end
end
definition.groups.attached_node=1 definition.groups.attached_node=1
definition.groups.dig_immediate=3 definition.groups.dig_immediate=3
definition.groups.sapling=1 definition.groups.sapling=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 771 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 858 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 720 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 963 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 960 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 682 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 641 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 667 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 424 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 359 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB