The 4 optional WireConnectionDefinition fields are listed as uint, but they should be defines.circuit_connector_id or defines.wire_connection_id.
The wire_id fields should also refer to copper wire instead of circuits.
- wire :: defines.wire_type: Wire color, either defines.wire_type.red or defines.wire_type.green.
- target_entity :: LuaEntity: The entity to (dis)connect the source entity with.
- source_circuit_id :: defines.circuit_connector_id (optional): Mandatory if the source entity has more than one circuit connector and using circuit wire.
- target_circuit_id :: defines.circuit_connector_id (optional): Mandatory if the target entity has more than one circuit connector and using circuit wire.
- source_wire_id :: defines.wire_connection_id (optional): Mandatory if the source entity has more than one wire connection and using copper wire.
- target_wire_id :: defines.wire_connection_id (optional): Mandatory if the target entity has more than one wire connection and using copper wire.
-> Thanks a lot for the detailed notes, fixed for the next release.
- wire :: defines.wire_type: Wire color, either defines.wire_type.red or defines.wire_type.green.
- target_entity :: LuaEntity
- source_circuit_id :: defines.circuit_connector_id
- target_circuit_id :: defines.circuit_connector_id