Compare commits
2 Commits
fad7a690ae
...
a9be76866f
| Author | SHA1 | Date | |
|---|---|---|---|
| a9be76866f | |||
| 9b0792f1ff |
147
guide.lua
147
guide.lua
@ -60,8 +60,9 @@ end
|
||||
-- \brief Creates table with machine information while providing few shortcuts for common fields
|
||||
-- \param fields table
|
||||
-- \param machineName string
|
||||
-- \param num (optional) number
|
||||
-- \returns string
|
||||
local function createMachineInformationTable(fields,machineName)
|
||||
local function createMachineInformationTable(fields,machineName,num)
|
||||
local fieldLabels={
|
||||
inputVoltage="Input voltage level",
|
||||
outputVoltage="Output voltage level",
|
||||
@ -81,7 +82,7 @@ local function createMachineInformationTable(fields,machineName)
|
||||
})
|
||||
end
|
||||
|
||||
return createTable(rows,false,string.format("Figure 1. Machine information for %s",machineName))
|
||||
return createTable(rows,false,string.format("Figure %d. Machine information for %s",(num or 1),machineName))
|
||||
end
|
||||
|
||||
local pages={
|
||||
@ -660,6 +661,148 @@ local pages={
|
||||
<left>||Picture 2. Nuclear Reactor with some <item name="industrialtest:nuclear_reactor_chamber" height="{{ITEM_HEIGHT}}"> <b>Nuclear Reactor Chamber</b>.||</left>
|
||||
]]
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
name="powerStorage",
|
||||
title=S("Power storage"),
|
||||
icon="industrialtest:batbox",
|
||||
content={
|
||||
[[
|
||||
<big>||Power storage||</big>
|
||||
<left>
|
||||
||This mod introduces a few nodes which allow for storing energy in them. It is useful in case some energy deficit happens or to charge electric items in them. Each of those have power input on each side except one marked with connector which is the output. Those are following:||
|
||||
</left>
|
||||
<mono>
|
||||
</mono>
|
||||
<left>
|
||||
<item name="industrialtest:batbox" height="{{ITEM_HEIGHT}}"> <b>||BatBox||</b>
|
||||
</left>
|
||||
]],
|
||||
createMachineInformationTable({
|
||||
{
|
||||
name="inputVoltage",
|
||||
value="LV"
|
||||
},
|
||||
{
|
||||
name="outputVoltage",
|
||||
value="LV"
|
||||
},
|
||||
{
|
||||
name="powerCapacity",
|
||||
value=string.format("%d EU",industrialtest.BatBox.capacity)
|
||||
}
|
||||
},S("BatBox")),
|
||||
[[
|
||||
<mono></mono>
|
||||
<left>
|
||||
<item name="industrialtest:cesu" height="{{ITEM_HEIGHT}}"> <b>||CESU||</b>
|
||||
</left>
|
||||
]],
|
||||
createMachineInformationTable({
|
||||
{
|
||||
name="inputVoltage",
|
||||
value="MV"
|
||||
},
|
||||
{
|
||||
name="outputVoltage",
|
||||
value="MV"
|
||||
},
|
||||
{
|
||||
name="powerCapacity",
|
||||
value=string.format("%d EU",industrialtest.CESU.capacity)
|
||||
}
|
||||
},S("CESU"),2),
|
||||
[[
|
||||
<mono></mono>
|
||||
<left>
|
||||
<item name="industrialtest:mfe" height="{{ITEM_HEIGHT}}"> <b>||MFE||</b>
|
||||
</left>
|
||||
]],
|
||||
createMachineInformationTable({
|
||||
{
|
||||
name="inputVoltage",
|
||||
value="HV"
|
||||
},
|
||||
{
|
||||
name="outputVoltage",
|
||||
value="HV"
|
||||
},
|
||||
{
|
||||
name="powerCapacity",
|
||||
value=string.format("%d EU",industrialtest.MFE.capacity)
|
||||
}
|
||||
},S("MFE"),3),
|
||||
[[
|
||||
<mono></mono>
|
||||
<left>
|
||||
<item name="industrialtest:mfsu" height="{{ITEM_HEIGHT}}"> <b>||MFSU||</b>
|
||||
</left>
|
||||
]],
|
||||
createMachineInformationTable({
|
||||
{
|
||||
name="inputVoltage",
|
||||
value="EV"
|
||||
},
|
||||
{
|
||||
name="outputVoltage",
|
||||
value="EV"
|
||||
},
|
||||
{
|
||||
name="powerCapacity",
|
||||
value=string.format("%d EU",industrialtest.MFSU.capacity)
|
||||
}
|
||||
},S("MFSU"),4),
|
||||
[[
|
||||
<mono></mono>
|
||||
<img name="industrialtest_guide_batbox.png" width="{{IMAGE_WIDTH}}">
|
||||
<left>||Picture 1. BatBox with some energy.||</left>
|
||||
]]
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
name="pump",
|
||||
title=S("Pump"),
|
||||
icon="industrialtest:pump",
|
||||
content={
|
||||
[[
|
||||
<big>||Pump||</big>
|
||||
<left>
|
||||
||Pump is used to pump fluids under it into internal fluid storage. It is later possible to move that fluid into some item, for example <item name="industrialtest:empty_cell" height="{{ITEM_HEIGHT}}"> <b>Empty Cell</b>. Pump when used together with <item name="industrialtest:miner" height="{{ITEM_HEIGHT}}"> <b>Miner</b> can pump fluids found.||
|
||||
</left>
|
||||
]],
|
||||
createMachineInformationTable({
|
||||
{
|
||||
name="inputVoltage",
|
||||
value="LV"
|
||||
},
|
||||
{
|
||||
name="powerCapacity",
|
||||
value=string.format("%d EU",industrialtest.Pump.capacity)
|
||||
},
|
||||
{
|
||||
name="opPower",
|
||||
value=string.format("%d EU",industrialtest.Pump._opPower)
|
||||
},
|
||||
{
|
||||
name="Fluid capacity",
|
||||
value=string.format("%d mB",industrialtest.Pump._fluidCapacity)
|
||||
},
|
||||
{
|
||||
name="Pump time",
|
||||
value=string.format("%d seconds",industrialtest.Pump._pumpTime)
|
||||
}
|
||||
},S("Pump")),
|
||||
[[
|
||||
<img name="industrialtest_guide_pump_formspec.png" width="{{IMAGE_WIDTH}}">
|
||||
<left>||Picture 1. Pump with some fluid.||</left>
|
||||
<mono>
|
||||
</mono>
|
||||
<img name="industrialtest_guide_pump.png">
|
||||
<left>||Picture 1. Pump attached to <item name="industrialtest:miner" height="{{ITEM_HEIGHT}}"> <b>Miner</b>.||</left>
|
||||
]]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
BIN
textures/industrialtest_guide_batbox.png
Normal file
BIN
textures/industrialtest_guide_batbox.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.4 KiB |
BIN
textures/industrialtest_guide_pump.png
Normal file
BIN
textures/industrialtest_guide_pump.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 215 KiB |
BIN
textures/industrialtest_guide_pump_formspec.png
Normal file
BIN
textures/industrialtest_guide_pump_formspec.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.3 KiB |
Loading…
x
Reference in New Issue
Block a user