# Factory machines and conveyors (design 7.2 and 7.3, step 29b). Read at startup by the game and
# the server (src/sim/factory/Machines.cpp). Their power is in power.txt.
#
# A machine's buffer is its slots: inputs first, then outputs, then a fuel slot if it burns fuel.
# Conveyors move items into the block in front of a run of them (a machine's inputs, or a crate).
# They take items only from a machine that feeds belts, laid out of its front (design 7.2): the
# drill rig's through its pad's output block, and the smelter's out of its chute. Other machines
# and crates don't feed belts.
#
# [network Settings]
#   tick              seconds between a factory's steps near a player
#   far tick          seconds between its steps with nobody near, while its system is live (29c)
#   near              metres from a player that count as near
#   conveyor rate     items a run of conveyor moves each second
#   filter items      items each of a filter's three exits can be set to take (design 7.2)
#   lift speed        metres a second an item lift's car rises or falls
#   lift items        items its car carries at once
#   lift wait         seconds its car waits at an end for more before it sets off
#   lift height       cells a lift's shaft may be at most
#   belt item range   metres from the player that games draw items riding belts (a game's
#                     picture of what each run carries; further belts keep their scrolling texture)
#   belt item cap     items drawn at most
#   belt item spacing metres between them along a belt
#
# [machine TYPE]      a machine by its block type (as assets/data/world names them)
#   inputs, outputs   slots of each
#   fuel              yes: a slot for fuel (fuel canisters, crystal, sulfur), burned at the values
#                     ships use
#   burn              fuel units it burns each second while burning
#   speed             how many times faster than by hand it runs a recipe
#   recipes           the recipes it may run, by what they make (the smelter: plates from ore).
#                     None listed: any field or fabricator recipe a player sets (the assembler)
#   seconds per block a drill rig: seconds to bore out one block
#   depth             a drill rig: how far down it bores at most (it stops at bedrock first)
#   swing             a claw: seconds its arm takes to swing one way (a round trip moves one item)
#   feeds belts       yes: it pushes its outputs onto a belt laid out of its front (its model
#                     shows an output chute or port there; only machines that face a way)

[network Settings]
tick = 0.25
far tick = 1
near = 300
conveyor rate = 2
filter items = 4
lift speed = 2
lift items = 4
lift wait = 1.5
lift height = 32
belt item range = 40
belt item cap = 800
belt item spacing = 0.5

[machine DrillRig]
outputs = 4
feeds belts = yes
seconds per block = 1.5
depth = 256

[machine Smelter]
inputs = 2
outputs = 2
fuel = yes
burn = 0.5
speed = 2
recipes = iron_plate, copper_plate, titanium_plate
feeds belts = yes

[machine Assembler]
inputs = 4
outputs = 2
speed = 1

[machine CombustionGenerator]
fuel = yes
burn = 0.5

# A reactor on a base burns fuel for its bars too, far more slowly: a canister (100 units) lasts
# over an hour. (A ship's reactors burn its tank: assets/data/power.txt.)
[machine Reactor]
fuel = yes
burn = 0.02

# A printer (step 31c) builds its owner's nearest ghost within reach, a block at a time, layer by
# layer, from its own slots and the crates of its network.
#   blocks per second   how fast it places
#   reach               metres from the printer to the ghost it builds
[machine Printer]
inputs = 9
blocks per second = 3
reach = 48

# A claw (design 7.2) moves items one at a time from the block behind it to the block in front: out
# of a machine's outputs, any slot of a crate, or off a belt running past; into a machine, a crate,
# a filter or onto a belt. Its one slot is what it holds. Its power is in power.txt.
[machine Claw]
outputs = 1
swing = 0.6
